]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
arm64: dts: renesas: salvator-xs: enable SATA
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Mon, 30 Jul 2018 07:34:56 +0000 (09:34 +0200)
committerSimon Horman <horms+renesas@verge.net.au>
Thu, 13 Sep 2018 07:47:10 +0000 (09:47 +0200)
Add the nodes to enable SATA. Note that MD12 (SW12-7) must be switched
off for that to work.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts
arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts

index 8c142affee49b7d4a8f14837a97fa433b858dc51..ba3357636fdb0feaa1ee8bc77af44123dd60b3db 100644 (file)
@@ -151,6 +151,15 @@ rsnd_endpoint2: endpoint {
        };
 };
 
+&pca9654 {
+       pcie_sata_switch {
+               gpio-hog;
+               gpios = <7 GPIO_ACTIVE_HIGH>;
+               output-low; /* enable SATA by default */
+               line-name = "PCIE/SATA switch";
+       };
+};
+
 &pfc {
        usb2_pins: usb2 {
                groups = "usb2";
@@ -175,6 +184,11 @@ usb2_ch3_pins: usb2_ch3 {
        };
 };
 
+/* MD12 (SW12-7) must be set 'Off' which is not the default! */
+&sata {
+       status = "okay";
+};
+
 &usb2_phy2 {
        pinctrl-0 = <&usb2_pins>;
        pinctrl-names = "default";
index 9de4e3db1621bd26d566f7a18696e4b77599b240..45016a06fab1cd5d132592b362d7091512a07d8b 100644 (file)
@@ -47,3 +47,17 @@ rcar_dw_hdmi0_out: endpoint {
 &hdmi0_con {
        remote-endpoint = <&rcar_dw_hdmi0_out>;
 };
+
+&pca9654 {
+       pcie_sata_switch {
+               gpio-hog;
+               gpios = <7 GPIO_ACTIVE_HIGH>;
+               output-low; /* enable SATA by default */
+               line-name = "PCIE/SATA switch";
+       };
+};
+
+/* MD12 (SW12-7) must be set 'Off' which is not the default! */
+&sata {
+       status = "okay";
+};