Skip to contentSkip to conversation

arm64: dts: allwinner: a64: Add SID node

PATCH Superseded Emmanuel Vadot 2 participants 5 messages Jul 23, 2018 – Jul 24, 2018

Subsystems (3)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 arm64: dts: allwinner: a64: Add SID node

The A64 have a SID controller which consist on EFUSE (starting at 0x200) and three registers to read/write the efuses.

---
 arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi | 5 +++++
 1 file changed, 5 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-a64.dtsi +5 -0
index 1b2ef28c42bd..69c0d9362553 100644
@@ -227,6 +227,11 @@
 			#size-cells = <0>;
 		};
 
+		sid: eeprom at 1c14000 {
+			compatible = "allwinner,sun50i-a64-sid";
+			reg = <0x1c14000 0x400>;
+		};
+
 		usb_otg: usb at 1c19000 {
 			compatible = "allwinner,sun8i-a33-musb";
 			reg = <0x01c19000 0x0400>;
Signature · 1 line
2.17.0
#1 lore raw

PATCH 2/4 ARM: dts: sunxi: h3/h5: Add SID node

Both H3 and H5 and a SID controller at the same address. They are know to be different, the H5 one is the same as the A64 so add a node in the common dtsi and we will override the compatible string in the SoC dts.

---
 arch/arm/boot/dts/sunxi-h3-h5.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/sunxi-h3-h5.dtsi +4 -0
index c3bff1105e5d..2b3c629644a0 100644
@@ -644,6 +644,10 @@
 			status = "disabled";
 		};
 
+		sid: eeprom at 1c14000 {
+			reg = <0x1c14000 0x400>;
+		};
+
 		uart0: serial at 1c28000 {
 			compatible = "snps,dw-apb-uart";
 			reg = <0x01c28000 0x400>;
Signature · 1 line
2.17.0
#2 lore raw

PATCH 3/4 ARM: dts: sun8i: h3: Add SID compatible string

In reply to Emmanuel Vadot

The SID controller on H3 is one of it's kind (at least from what we know).
Add a compatible string for it in the SoC dtsi.

---
 arch/arm/boot/dts/sun8i-h3.dtsi | 4 ++++
 1 file changed, 4 insertions(+)
arch/arm/boot/dts/sun8i-h3.dtsi +4 -0
index 41d57c76f290..f543aa1dc829 100644
@@ -185,3 +185,7 @@
 &pio {
 	compatible = "allwinner,sun8i-h3-pinctrl";
 };
+
+&sid {
+	compatible = "allwinner,sun8i-h3-sid";
+};
Signature · 1 line
2.17.0
#3 lore raw

PATCH 4/4 arm64: dts: allwinner: h5: Add SID for H5

In reply to Emmanuel Vadot

The SID controller on H5 look the same as the one present in the A64. But in case we find some difference one day at a compatible string of it's own and a fallback to the A64 one.

---
 .../devicetree/bindings/nvmem/allwinner,sunxi-sid.txt        | 1 +
 arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi                 | 5 +++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt +1 -0
index e319fe5e205a..99c4ba6a3f61 100644
@@ -7,6 +7,7 @@ Required properties:
   "allwinner,sun8i-a83t-sid"
   "allwinner,sun8i-h3-sid"
   "allwinner,sun50i-a64-sid"
+  "allwinner,sun50i-h5-sid"
 
 - reg: Should contain registers location and length
 
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +5 -0
index 62d646baac3c..28183bf77164 100644
@@ -129,3 +129,8 @@
 		     <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
 	compatible = "allwinner,sun50i-h5-pinctrl";
 };
+
+&sid {
+	compatible = "allwinner,sun50i-h5-sid",
+		     "allwinner,sun50i-a64-sid";
+};
Signature · 1 line
2.17.0
#4 lore raw

Re: [PATCH 4/4] arm64: dts: allwinner: h5: Add SID for H5

Quoted 15 lines · Emmanuel Vadot

The SID controller on H5 look the same as the one present in the A64. But in case we find some difference one day at a compatible string of it's own and a fallback to the A64 one.

---
 .../devicetree/bindings/nvmem/allwinner,sunxi-sid.txt        | 1 +
 arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi                 | 5 +++++
 2 files changed, 6 insertions(+)
Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt +0 -0
index e319fe5e205a..99c4ba6a3f61 100644

Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt Required properties: · line 12

Quoted 6 lines
Documentation/devicetree/bindings/nvmem/allwinner,sunxi-sid.txt +1 -0
@@ -7,6 +7,7 @@ Required properties:
   "allwinner,sun8i-a83t-sid"
   "allwinner,sun8i-h3-sid"
   "allwinner,sun50i-a64-sid"
+  "allwinner,sun50i-h5-sid"
 
 - reg: Should contain registers location and length

Bindings patches should be separate.

arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi line 136

Quoted 13 lines
arch/arm64/boot/dts/allwinner/sun50i-h5.dtsi +5 -0
index 62d646baac3c..28183bf77164 100644
@@ -129,3 +129,8 @@
 		     <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>;
 	compatible = "allwinner,sun50i-h5-pinctrl";
 };
+
+&sid {
+	compatible = "allwinner,sun50i-h5-sid",
+		     "allwinner,sun50i-a64-sid";
+};

I'm not sure doing a split similar to what you're doing here just to save the reg line is worth it.

Maxime

Signature · 10 lines
Maxime Ripard, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20180724/368c7667/attachment.sig>