Skip to content

Commit 7301f26

Browse files
sjoerdsimonsmmind
authored andcommitted
ARM: dts: rockchip: Enable sata support on rock2 square
The Rock 2 square board has a USB -> SATA converter hooked up to its usb host1 connection. Enable the usb controller and always turn on the power on the 5V sata power connector (controlled by gpio). Signed-off-by: Sjoerd Simons <[email protected]> Signed-off-by: Heiko Stuebner <[email protected]>
1 parent 94bbdd7 commit 7301f26

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

arch/arm/boot/dts/rk3288-rock2-square.dts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,17 @@
8181
};
8282
};
8383

84+
sata_pwr: sata-prw-regulator {
85+
compatible = "regulator-fixed";
86+
enable-active-high;
87+
gpio = <&gpio0 13 GPIO_ACTIVE_HIGH>;
88+
pinctrl-names = "default";
89+
pinctrl-0 = <&sata_pwr_en>;
90+
/* Always turn on the 5V sata power connector */
91+
regulator-always-on;
92+
regulator-name = "sata_pwr";
93+
};
94+
8495
spdif_out: spdif-out {
8596
compatible = "linux,spdif-dit";
8697
#sound-dai-cells = <0>;
@@ -237,6 +248,12 @@
237248
};
238249
};
239250

251+
sata {
252+
sata_pwr_en: sata-pwr-en {
253+
rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_pull_none>;
254+
};
255+
};
256+
240257
sdmmc {
241258
sdmmc_pwr: sdmmc-pwr {
242259
rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
@@ -265,3 +282,7 @@
265282
&usb_host0_ehci {
266283
status = "okay";
267284
};
285+
286+
&usb_host1 {
287+
status = "okay";
288+
};

0 commit comments

Comments
 (0)