* [RFC v2] arm64: dts: r8a7795: salvator-xs: enable SATA
@ 2017-12-22 20:13 Wolfram Sang
2018-07-20 11:47 ` Geert Uytterhoeven
0 siblings, 1 reply; 2+ messages in thread
From: Wolfram Sang @ 2017-12-22 20:13 UTC (permalink / raw)
To: linux-renesas-soc; +Cc: Geert Uytterhoeven, Simon Horman, Wolfram Sang
SATA needs this GPIO hog, so is probably an overlay?
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
Changes since RFC v1:
* add second cell to 'gpios' property
arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts b/arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts
index 7675de5d4f2cb1..c4a893b90e4778 100644
--- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts
+++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts
@@ -101,6 +101,19 @@
};
};
+&pca9654 {
+ pcie_sata_switch {
+ gpio-hog;
+ gpios = <7 0>;
+ output-low;
+ line-name = "PCIE/SATA switch";
+ };
+};
+
+&sata {
+ status = "okay";
+};
+
&usb2_phy2 {
pinctrl-0 = <&usb2_pins>;
pinctrl-names = "default";
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [RFC v2] arm64: dts: r8a7795: salvator-xs: enable SATA
2017-12-22 20:13 [RFC v2] arm64: dts: r8a7795: salvator-xs: enable SATA Wolfram Sang
@ 2018-07-20 11:47 ` Geert Uytterhoeven
0 siblings, 0 replies; 2+ messages in thread
From: Geert Uytterhoeven @ 2018-07-20 11:47 UTC (permalink / raw)
To: Wolfram Sang; +Cc: Linux-Renesas, Simon Horman
Hi Wolfram,
Thanks for your patch!
On Fri, Dec 22, 2017 at 9:13 PM Wolfram Sang
<wsa+renesas@sang-engineering.com> wrote:
> SATA needs this GPIO hog, so is probably an overlay?
IMHO it can be part of the real board DTS, for the following reasons:
1. SATA is multiplexed with PCIE1, but the SATA connector is on-board,
while using PCIE1 requires plugging in an extension board in EXIO
Connector A.
2. PCIE1 is the default, for both MD12 and the PCIE-SATA switch, but I
assume that is only the case because Salvator-XS supports all of R-Car
H3 ES2, M3-W, and M3-N, while M3-W does not have SATA.
Note that for the GPIO hog to survive s2ram, the pca9654 driver needs to
be enhanced to restore its configuration after system resume.
> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Tested-by: Geert Uytterhoeven <geert+renesas@glider.be>
> --- a/arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts
> +++ b/arch/arm64/boot/dts/renesas/r8a7795-salvator-xs.dts
> @@ -101,6 +101,19 @@
> };
> };
>
> +&pca9654 {
Please insert this node just before &pfc, to preserve sort order.
> + pcie_sata_switch {
> + gpio-hog;
> + gpios = <7 0>;
s/0/GPIO_ACTIVE_HIGH/?
> + output-low;
> + line-name = "PCIE/SATA switch";
Perhaps add a comment saying MD12 must be 1 (SW12-7 must be off)?
> + };
> +};
> +
> +&sata {
> + status = "okay";
> +};
> +
> &usb2_phy2 {
> pinctrl-0 = <&usb2_pins>;
> pinctrl-names = "default";
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-07-20 12:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-22 20:13 [RFC v2] arm64: dts: r8a7795: salvator-xs: enable SATA Wolfram Sang
2018-07-20 11:47 ` Geert Uytterhoeven
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.