]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: dts: rockchip: Enable sata support on rock2 square
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Fri, 17 Mar 2017 13:51:17 +0000 (14:51 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Tue, 28 Mar 2017 20:20:14 +0000 (22:20 +0200)
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>
arch/arm/boot/dts/rk3288-rock2-square.dts

index fbf11d410c42550704278ec9698edc01b097be77..a23a94811be8ade1bdc6b8233d875c0483b126d4 100644 (file)
                };
        };
 
+       sata_pwr: sata-prw-regulator {
+               compatible = "regulator-fixed";
+               enable-active-high;
+               gpio = <&gpio0 13 GPIO_ACTIVE_HIGH>;
+               pinctrl-names = "default";
+               pinctrl-0 = <&sata_pwr_en>;
+               /* Always turn on the 5V sata power connector */
+               regulator-always-on;
+               regulator-name = "sata_pwr";
+       };
+
        spdif_out: spdif-out {
                compatible = "linux,spdif-dit";
                #sound-dai-cells = <0>;
                };
        };
 
+       sata {
+               sata_pwr_en: sata-pwr-en {
+                       rockchip,pins = <0 13 RK_FUNC_GPIO &pcfg_pull_none>;
+               };
+       };
+
        sdmmc {
                sdmmc_pwr: sdmmc-pwr {
                        rockchip,pins = <7 11 RK_FUNC_GPIO &pcfg_pull_none>;
 &usb_host0_ehci {
        status = "okay";
 };
+
+&usb_host1 {
+       status = "okay";
+};