Skip to contentSkip to conversation

arm64: dts: renesas: salvator-xs: enable SATA

PATCH In review Wolfram Sang 4 participants 6 messages Jul 30, 2018 – Aug 30, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: dts: renesas: salvator-xs: enable SATA

Add the nodes to enable SATA. Note that MD12 (SW12-7) must be switched off for that to work.

---

Changes since v1:
* fixed indentation (Thanks, Geert!)
* merged two patches into one (Thanks, Simon!)
* Added Geert's tag

 arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts  | 14 ++++++++++++++
 arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts | 14 ++++++++++++++
 2 files changed, 28 insertions(+)
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts +14 -0
index 8ded64d0a4d5..368be55eda4e 100644
@@ -152,6 +152,15 @@
 	};
 };
 
+&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";
@@ -176,6 +185,11 @@
 	};
 };
 
+/* MD12 (SW12-7) must be set 'Off' which is not the default! */
+&sata {
+	status = "okay";
+};
+
 &usb2_phy2 {
 	pinctrl-0 = <&usb2_pins>;
 	pinctrl-names = "default";
arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts +14 -0
index 9de4e3db1621..45016a06fab1 100644
@@ -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";
+};
Signature · 1 line
2.11.0
Reviewed-by on v2 1/1
#1 lore raw
Quoted 7 lines · Wolfram Sang

Add the nodes to enable SATA. Note that MD12 (SW12-7) must be switched off for that to work.

---

Quoted 8 lines

Changes since v1:
* fixed indentation (Thanks, Geert!)
* merged two patches into one (Thanks, Simon!)
* Added Geert's tag

 arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts  | 14 ++++++++++++++
 arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts | 14 ++++++++++++++
 2 files changed, 28 insertions(+)

This looks good to me:

But (note to self) depends on:

[PATCH v2] arm64: dts: r8a77965: Add SATA controller node

Quoted 58 lines
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts +14 -0
index 8ded64d0a4d5..368be55eda4e 100644
@@ -152,6 +152,15 @@
 	};
 };
 
+&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";
@@ -176,6 +185,11 @@
 	};
 };
 
+/* MD12 (SW12-7) must be set 'Off' which is not the default! */
+&sata {
+	status = "okay";
+};
+
 &usb2_phy2 {
 	pinctrl-0 = <&usb2_pins>;
 	pinctrl-names = "default";
arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts +14 -0
index 9de4e3db1621..45016a06fab1 100644
@@ -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";
+};
Signature · 1 line
2.11.0
#2 lore raw
Quoted 17 lines · Simon Horman
Quoted 7 lines · Wolfram Sang

Add the nodes to enable SATA. Note that MD12 (SW12-7) must be switched off for that to work.

---

Quoted 8 lines

Changes since v1:
* fixed indentation (Thanks, Geert!)
* merged two patches into one (Thanks, Simon!)
* Added Geert's tag

 arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts  | 14 ++++++++++++++
 arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts | 14 ++++++++++++++
 2 files changed, 28 insertions(+)
Quoted 7 lines

This looks good to me:

But (note to self) depends on:

[PATCH v2] arm64: dts: r8a77965: Add SATA controller node

Both that dependency and that patch applied for v4.20.

#3 lore raw
In reply to Wolfram Sang

Hi Wolfram, Simon,

Quoted 16 lines · Wolfram Sang

Add the nodes to enable SATA. Note that MD12 (SW12-7) must be switched off for that to work.

---

Changes since v1:
* fixed indentation (Thanks, Geert!)
* merged two patches into one (Thanks, Simon!)
* Added Geert's tag

arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts line 188

Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts +1 -0
@@ -176,6 +185,11 @@
        };
 };
 
+/* MD12 (SW12-7) must be set 'Off' which is not the default! */

Upon reading this again, I think this comment is confusing: the 'Off' refers to the switch position, not to the MD12 logic value, while the parentheses suggest otherwise.

What about the following?

SW12-7 must be set 'Off' (MD12 set to 1), which is not the default!

arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts

Quoted 4 lines
arch/arm64/boot/dts/renesas/r8a77965-salvator-xs.dts +1 -0
 
+/* MD12 (SW12-7) must be set 'Off' which is not the default! */

Likewise.

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Acked-by
#4 lore raw
Quoted 10 lines
Quoted 2 lines

+/* MD12 (SW12-7) must be set 'Off' which is not the default! */

Upon reading this again, I think this comment is confusing: the 'Off' refers to the switch position, not to the MD12 logic value, while the parentheses suggest otherwise.

What about the following?

SW12-7 must be set 'Off' (MD12 set to 1), which is not the default!

I'd leave the ',' away but otherwise:

Shall I send an incremental patch or do you want to do it?

#5 lore raw

Hi Wolfram,

Quoted 8 lines · Wolfram Sang
Quoted 8 lines
Quoted 1 line

+/* MD12 (SW12-7) must be set 'Off' which is not the default! */

Upon reading this again, I think this comment is confusing: the 'Off' refers to the switch position, not to the MD12 logic value, while the parentheses suggest otherwise.

What about the following?

Quoted 7 lines
Quoted 1 line

SW12-7 must be set 'Off' (MD12 set to 1), which is not the default!

I'd leave the ',' away but otherwise:

Shall I send an incremental patch or do you want to do it?

Sent, preacked ;-)

Gr{oetje,eeting}s,

Geert

Signature · 5 lines
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- [email protected]

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds