summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/renesas/salvator-xs.dtsi
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2021-06-07 20:39:03 +0300
committerGeert Uytterhoeven <geert+renesas@glider.be>2021-07-19 11:51:34 +0300
commit90a4ee4ba5cf5aae491bae4ad6fe75e05d28cc22 (patch)
treeabffd0b8c97cd9f40bb60e580faf520303266540 /arch/arm64/boot/dts/renesas/salvator-xs.dtsi
parent8fbb8c334ff13a6afd88c73e85684bc7b82bd775 (diff)
downloadlinux-90a4ee4ba5cf5aae491bae4ad6fe75e05d28cc22.tar.xz
arm64: dts: renesas: salvator-x(s): Factor out SATA parts
Move the common parts related to the SATA interface on Salvator-X(S) boards to salvator-common.dtsi and salvator-xs.dtsi, to reduce current and avoid future duplication of board descriptions. As this interface is not present on all SoCs that can be found on Salvator-X(S), but only on R-Car H3 and M3-N, its descriptions are protected by the preprocessor symbol SOC_HAS_SATA, defined in r8a77951.dtsi and r8a77965.dtsi. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Link: https://lore.kernel.org/r/87f91290ec7b523aa508e920a169ecaddccc9144.1623087028.git.geert+renesas@glider.be
Diffstat (limited to 'arch/arm64/boot/dts/renesas/salvator-xs.dtsi')
-rw-r--r--arch/arm64/boot/dts/renesas/salvator-xs.dtsi13
1 files changed, 13 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/renesas/salvator-xs.dtsi b/arch/arm64/boot/dts/renesas/salvator-xs.dtsi
index 717d42758cbc..3f7f6cf4a333 100644
--- a/arch/arm64/boot/dts/renesas/salvator-xs.dtsi
+++ b/arch/arm64/boot/dts/renesas/salvator-xs.dtsi
@@ -27,3 +27,16 @@
clock-names = "xin";
};
};
+
+#ifdef SOC_HAS_SATA
+&pca9654 {
+ pcie-sata-switch-hog {
+ gpio-hog;
+ gpios = <7 GPIO_ACTIVE_HIGH>;
+ output-low; /* enable SATA by default */
+ line-name = "PCIE/SATA switch";
+ };
+};
+
+/* SW12-7 must be set 'Off' (MD12 set to 1) which is not the default! */
+#endif /* SOC_HAS_SATA */