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 8c142af..ba33576 100644 (file)
        };
 };
 
+&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";
        };
 };
 
+/* 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 9de4e3d..45016a0 100644 (file)
 &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";
+};