diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2017-03-17 09:51:17 -0400 |
---|---|---|
committer | Heiko Stuebner <heiko@sntech.de> | 2017-03-28 16:20:14 -0400 |
commit | 7301f269dd214a42deac9a2c3a07a63d1bfb1e12 (patch) | |
tree | abc913e5ffffedf3b311d03eb45a727c1121d397 | |
parent | 94bbdd77247d8c16eed5f55dddcf1cbc38d06cc4 (diff) |
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 <sjoerd.simons@collabora.co.uk>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
-rw-r--r-- | arch/arm/boot/dts/rk3288-rock2-square.dts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/rk3288-rock2-square.dts b/arch/arm/boot/dts/rk3288-rock2-square.dts index fbf11d410c42..a23a94811be8 100644 --- a/arch/arm/boot/dts/rk3288-rock2-square.dts +++ b/arch/arm/boot/dts/rk3288-rock2-square.dts | |||
@@ -81,6 +81,17 @@ | |||
81 | }; | 81 | }; |
82 | }; | 82 | }; |
83 | 83 | ||
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 | |||
84 | spdif_out: spdif-out { | 95 | spdif_out: spdif-out { |
85 | compatible = "linux,spdif-dit"; | 96 | compatible = "linux,spdif-dit"; |
86 | #sound-dai-cells = <0>; | 97 | #sound-dai-cells = <0>; |
@@ -237,6 +248,12 @@ | |||
237 | }; | 248 | }; |
238 | }; | 249 | }; |
239 | 250 | ||
251 | sata { | ||
252 | sata_pwr_en: sata-pwr-en { | ||
253 | rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_pull_none>; | ||
254 | }; | ||
255 | }; | ||
256 | |||
240 | sdmmc { | 257 | sdmmc { |
241 | sdmmc_pwr: sdmmc-pwr { | 258 | sdmmc_pwr: sdmmc-pwr { |
242 | rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>; | 259 | rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>; |
@@ -265,3 +282,7 @@ | |||
265 | &usb_host0_ehci { | 282 | &usb_host0_ehci { |
266 | status = "okay"; | 283 | status = "okay"; |
267 | }; | 284 | }; |
285 | |||
286 | &usb_host1 { | ||
287 | status = "okay"; | ||
288 | }; | ||