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

feat: add PCIe2x1 on rock 3a #371

Merged
merged 1 commit into from
Sep 19, 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/overlays/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ dtb-$(CONFIG_CLK_RK3568) += \
rk3568-uart9-m1.dtbo \
rk3568-w1-gpio3-a5.dtbo \
rk3568-w1-gpio3-d1.dtbo \
rock-3a-pice2.dtbo \
rock-3a-radxa-5inch-touchscreen.dtbo \
rock-3a-radxa-25w-poe.dtbo \
rock-3a-sata0.dtbo \
Expand Down
21 changes: 21 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlays/rock-3a-pice2.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// ROCK 3A Pcie M.2 to sata
/dts-v1/;
/plugin/;

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

&pcie2x1 {
status = "okay";
};

&sata2 {
status = "disabled";
};
2 changes: 1 addition & 1 deletion arch/arm64/boot/dts/rockchip/overlays/rock-3a-sata2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/ {
metadata {
title = "Enable SATA2";
compatible = "radxa,rock-3a";
compatible = "radxa,rock-3a-pcie";
category = "misc";
description = "Enable SATA2.
When SATA2 is enabled, PCIe cannot be enabled on the same port.";
Expand Down