diff mbox series

[2/2] arm64: dts: r8a77965: salvator-xs: enable SATA

Message ID 20180725193457.3999-3-wsa+renesas@sang-engineering.com (mailing list archive)
State Changes Requested
Headers show
Series arm64: dts: enable SATA on Gen3 boards | expand

Commit Message

Wolfram Sang July 25, 2018, 7:34 p.m. UTC
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>
---
 arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

Comments

Geert Uytterhoeven July 26, 2018, 12:29 p.m. UTC | #1
On Wed, Jul 25, 2018 at 9:35 PM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> 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>

> --- a/arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts
> +++ b/arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts
> @@ -47,3 +47,17 @@
>  &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! */

Weird indentation?

> +&sata {
> +       status = "okay";
> +};

Gr{oetje,eeting}s,

                        Geert
diff mbox series

Patch

diff --git a/arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts b/arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts
index 9de4e3db1621..224c8f68f13b 100644
--- a/arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts
+++ b/arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts
@@ -47,3 +47,17 @@ 
 &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";
+};