Skip to content

Commit

Permalink
rk3588s-roc-pc: remove pcie&sata selection section, add sats0 dtbo
Browse files Browse the repository at this point in the history
  • Loading branch information
chainsx committed May 27, 2024
1 parent 4a6add8 commit 7d5e3af
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 17 deletions.
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 @@ -50,6 +50,7 @@ dtbo-$(CONFIG_ARCH_ROCKCHIP) += \
radxa-cm5-io-sata.dtbo \
radxa-nx5-io-rpi-camera-v2-cam0.dtbo \
radxa-nx5-io-rpi-camera-v2-cam1.dtbo \
rk3588s-roc-pc-sata0.dtbo \
turing-rk1-sata2.dtbo \
mixtile-blade3-sata2.dtbo \
radxa-zero3-rpi-camera-v2.dtbo \
Expand Down
36 changes: 36 additions & 0 deletions arch/arm64/boot/dts/rockchip/overlay/rk3588s-roc-pc-sata0.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
/dts-v1/;
/plugin/;

#include <dt-bindings/pinctrl/rockchip.h>

/ {
fragment@0 {
target = <&sata0>;

__overlay__ {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&sata_reset>;
};
};

fragment@1 {
target = <&pcie2x1l2>;

__overlay__ {
status = "disabled";
};
};

fragment@2 {
target = <&pinctrl>;

__overlay__ {
sata {
sata_reset:sata-reset{
rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
};
};
};
17 changes: 0 additions & 17 deletions arch/arm64/boot/dts/rockchip/rk3588s-roc-pc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include "rk3588-rk806-single.dtsi"
#include "rk3588-linux.dtsi"

#define M2_SATA_OR_PCIE 1

/ {
model = "ROC-RK3588S-PC V12(Linux)";
compatible = "firefly,roc-rk3588s-pc", "firefly,station-m3", "rockchip,rk3588";
Expand Down Expand Up @@ -1008,19 +1006,11 @@
rockchip,primary-plane = <ROCKCHIP_VOP2_ESMART3>;
};

#if M2_SATA_OR_PCIE
&sata0 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&sata_reset>;
};
#else
&pcie2x1l2 {
status = "okay";
reset-gpios = <&gpio3 RK_PD1 GPIO_ACTIVE_HIGH>;
vpcie3v3-supply = <&vcc3v3_pcie20>;
};
#endif

&pinctrl {
leds {
Expand Down Expand Up @@ -1062,13 +1052,6 @@
rockchip,pins = <1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
};
};
#if M2_SATA_OR_PCIE
sata {
sata_reset:sata-reset{
rockchip,pins = <3 RK_PD1 RK_FUNC_GPIO &pcfg_pull_up>;
};
};
#endif
};

// for fan when deep sleep
Expand Down

0 comments on commit 7d5e3af

Please sign in to comment.