Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

arm64: dts: rock-3a: add overlay to enable sata on m.2 e-key slot #237

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions arch/arm64/boot/dts/rockchip/overlay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
orangepi-5-pro-cam1.dtbo \
orangepi-5-pro-cam2.dtbo \
orangepi-5-pro-disable-leds.dtbo \
rock-3a-sata.dtbo \
rock-5a-hdmi-8k.dtbo \
rock-5a-i2c5-rtc-hym8563.dtbo \
rock-5a-radxa-camera-4k.dtbo \
Expand Down
27 changes: 27 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlay/rock-3a-sata.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// ROCK 3A Pcie M.2 to sata
/dts-v1/;
/plugin/;

/ {
metadata {
title = "Enable SATA2";
compatible = "radxa,rock-3a";
category = "misc";
description = "Enable SATA2.
When SATA2 is enabled, PCIe cannot be enabled on the same port.";
};

fragment@0 {
target = <&pcie2x1>;
__overlay__ {
status = "disabled";
};
};

fragment@1 {
target = <&sata2>;
__overlay__ {
status = "okay";
};
};
};