Skip to contentSkip to conversation

ARM, arm64: dts: renesas: Use R-Car SATA Gen[23] fallback compat strings

PATCH Superseded Simon Horman 3 participants 6 messages Aug 8, 2017 – Aug 9, 2017

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover ARM, arm64: dts: renesas: Use R-Car SATA Gen[23] fallback compat strings

Use newly added R-Car SATA Gen 2 and 3 fallback compat strings.

This should have no run-time effect as the driver matches against the per-SoC compat string before considering the fallback compat string.

Based on renesas-devel-20170807-v4.13-rc4

Simon Horman (3):
ARM: dts: r8a7790: Use R-Car GPIO Gen2 fallback compat string
ARM: dts: r8a7791: Use R-Car GPIO Gen2 fallback compat string
arm64: dts: r8a7795: Use R-Car GPIO Gen3 fallback compat string

 arch/arm/boot/dts/r8a7790.dtsi           | 4 ++--
 arch/arm/boot/dts/r8a7791.dtsi           | 4 ++--
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)
Signature · 1 line
2.1.4
#1 lore raw

PATCH 1/3 ARM: dts: r8a7790: Use R-Car GPIO Gen2 fallback compat string

Use newly added R-Car GPIO Gen2 fallback compat string in the DT of the r8a7790 SoC.

This should have no run-time effect as the driver matches against the per-SoC compat string before the fallback compat string is considered.

---
 arch/arm/boot/dts/r8a7790.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/r8a7790.dtsi +2 -2
index 167fd57aea68..16358bf8d1db 100644
@@ -873,7 +873,7 @@
 	};
 
 	sata0: sata at ee300000 {
-		compatible = "renesas,sata-r8a7790";
+		compatible = "renesas,sata-r8a7790", "renesas,rcar-gen2-sata";
 		reg = <0 0xee300000 0 0x2000>;
 		interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&mstp8_clks R8A7790_CLK_SATA0>;
@@ -882,7 +882,7 @@
 	};
 
 	sata1: sata at ee500000 {
-		compatible = "renesas,sata-r8a7790";
+		compatible = "renesas,sata-r8a7790", "renesas,rcar-gen2-sata";
 		reg = <0 0xee500000 0 0x2000>;
 		interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&mstp8_clks R8A7790_CLK_SATA1>;
Signature · 1 line
2.1.4
#2 lore raw

PATCH 2/3 ARM: dts: r8a7791: Use R-Car GPIO Gen2 fallback compat string

In reply to Simon Horman

Use newly added R-Car GPIO Gen2 fallback compat string in the DT of the r8a7791 SoC.

This should have no run-time effect as the driver matches against the per-SoC compat string before the fallback compat string is considered.

---
 arch/arm/boot/dts/r8a7791.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/boot/dts/r8a7791.dtsi +2 -2
index ea4a8147d995..f1d1a9772153 100644
@@ -933,7 +933,7 @@
 	};
 
 	sata0: sata at ee300000 {
-		compatible = "renesas,sata-r8a7791";
+		compatible = "renesas,sata-r8a7791", "renesas,rcar-gen2-sata";
 		reg = <0 0xee300000 0 0x2000>;
 		interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&mstp8_clks R8A7791_CLK_SATA0>;
@@ -942,7 +942,7 @@
 	};
 
 	sata1: sata at ee500000 {
-		compatible = "renesas,sata-r8a7791";
+		compatible = "renesas,sata-r8a7791", "renesas,rcar-gen2-sata";
 		reg = <0 0xee500000 0 0x2000>;
 		interrupts = <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&mstp8_clks R8A7791_CLK_SATA1>;
Signature · 1 line
2.1.4
#3 lore raw

PATCH 3/3 arm64: dts: r8a7795: Use R-Car GPIO Gen3 fallback compat string

In reply to Simon Horman

Use newly added R-Car GPIO Gen3 fallback compat string in the DT of the r8a7795 SoC.

This should have no run-time effect as the driver matches against the per-SoC compat string before the fallback compat string is considered.

---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +2 -1
index a87ae76880ab..c9f2b87e7ee3 100644
@@ -1451,7 +1451,8 @@
 		};
 
 		sata: sata at ee300000 {
-			compatible = "renesas,sata-r8a7795";
+			compatible = "renesas,sata-r8a7795",
+				     "renesas,rcar-gen3-sata";
 			reg = <0 0xee300000 0 0x200000>;
 			interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
 			clocks = <&cpg CPG_MOD 815>;
Signature · 1 line
2.1.4
maintainer
#4 lore raw

PATCH 3/3 arm64: dts: r8a7795: Use R-Car GPIO Gen3 fallback compat string

Hi Simon,

Quoted 26 lines · Simon Horman

Use newly added R-Car GPIO Gen3 fallback compat string in the DT of the r8a7795 SoC.

This should have no run-time effect as the driver matches against the per-SoC compat string before the fallback compat string is considered.

---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +2 -2
index a87ae76880ab..c9f2b87e7ee3 100644
@@ -1451,7 +1451,8 @@
                };
 
                sata: sata at ee300000 {
-                       compatible = "renesas,sata-r8a7795";
+                       compatible = "renesas,sata-r8a7795",
+                                    "renesas,rcar-gen3-sata";
                        reg = <0 0xee300000 0 0x200000>;
                        interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cpg CPG_MOD 815>;
--
Quoted 1 line

2.1.4

This patch looks odd. The subject and patch description says GPIO but the hunk above modifies SATA...?

Cheers,

/ magnus

#5 lore raw

PATCH 3/3 arm64: dts: r8a7795: Use R-Car GPIO Gen3 fallback compat string

Quoted 21 lines · Magnus Damm

Hi Simon,

Quoted 18 lines · Simon Horman

Use newly added R-Car GPIO Gen3 fallback compat string in the DT of the r8a7795 SoC.

This should have no run-time effect as the driver matches against the per-SoC compat string before the fallback compat string is considered.

---
 arch/arm64/boot/dts/renesas/r8a7795.dtsi | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm64/boot/dts/renesas/r8a7795.dtsi +0 -0
index a87ae76880ab..c9f2b87e7ee3 100644
@@ -1451,7 +1451,8 @@
                };
 
Quoted 12 lines
Quoted 9 lines
arch/arm64/boot/dts/renesas/r8a7795.dtsi +2 -2
                sata: sata at ee300000 {
-                       compatible = "renesas,sata-r8a7795";
+                       compatible = "renesas,sata-r8a7795",
+                                    "renesas,rcar-gen3-sata";
                        reg = <0 0xee300000 0 0x200000>;
                        interrupts = <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>;
                        clocks = <&cpg CPG_MOD 815>;
--

2.1.4

This patch looks odd. The subject and patch description says GPIO but the hunk above modifies SATA...?

Yes, it looks like I have made a cut-and-paste error there. I'll repost.