Skip to contentSkip to conversation

Enable Security ID for H616

PATCH Applied Martin Botka 3 participants 7 messages Sep 12, 2023 – Sep 24, 2023

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

v3 cover Enable Security ID for H616

Hello,

This patch series enables Security ID (SID) support for AllWinner H616.

SID support is an requirement for few things:
- Thermal sensors
- CPU Binning ID (cpufreq will use this)
- EPhy

This patch series doesn't add support for the consumers. Those will come in the future via their own series.

Cheers,
Martin

---
Changes in v3:
- bindings: Make H616 compatible fallback for a64 using items and enum
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Drop driver changes
- Use fallback compatible in DT
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Martin Botka (2):
dt-bindings: nvmem: SID: Add binding for H616 SID controller
arm64: dts: allwinner: h616: Add SID controller node

 .../devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml         | 4 +++-
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi                     | 7 +++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

---
base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
change-id: 20230811-sid-h616-37b773e59571

Best regards,

Signature · 1 line
Martin Botka <[email protected]>
#1 lore raw

PATCH v3 1/2 dt-bindings: nvmem: SID: Add binding for H616 SID controller

Add binding for the SID controller found in H616 SoC

---
 Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml +3 -1
index 296001e7f498..0928ec408170 100644
@@ -23,7 +23,9 @@ properties:
       - const: allwinner,sun20i-d1-sid
       - const: allwinner,sun50i-a64-sid
       - items:
-          - const: allwinner,sun50i-a100-sid
+          - enum:
+              - allwinner,sun50i-a100-sid
+              - allwinner,sun50i-h616-sid
           - const: allwinner,sun50i-a64-sid
       - const: allwinner,sun50i-h5-sid
       - const: allwinner,sun50i-h6-sid
Signature · 1 line
2.42.0
maintainer Acked-by on v3 1/2
#2 lore raw

Re: [PATCH v3 1/2] dt-bindings: nvmem: SID: Add binding for H616 SID controller

Dne torek, 12. september 2023 ob 14:25:12 CEST je Martin Botka napisal(a):

Quoted 3 lines

Add binding for the SID controller found in H616 SoC

Best regards,
Jernej

Quoted 21 lines
---
 Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 4

+++- 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml b/Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml index 296001e7f498..0928ec408170 100644

Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml +3 -1
@@ -23,7 +23,9 @@ properties:
       - const: allwinner,sun20i-d1-sid
       - const: allwinner,sun50i-a64-sid
       - items:
-          - const: allwinner,sun50i-a100-sid
+          - enum:
+              - allwinner,sun50i-a100-sid
+              - allwinner,sun50i-h616-sid
           - const: allwinner,sun50i-a64-sid
       - const: allwinner,sun50i-h5-sid
       - const: allwinner,sun50i-h6-sid
Acked-by on v3 1/2
#3 lore raw

Re: [PATCH v3 1/2] dt-bindings: nvmem: SID: Add binding for H616 SID controller

In reply to Martin Botka
Quoted 3 lines · Martin Botka

Add binding for the SID controller found in H616 SoC

Thanks,
Conor.

Quoted 23 lines
---
 Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml +3 -1
index 296001e7f498..0928ec408170 100644
@@ -23,7 +23,9 @@ properties:
       - const: allwinner,sun20i-d1-sid
       - const: allwinner,sun50i-a64-sid
       - items:
-          - const: allwinner,sun50i-a100-sid
+          - enum:
+              - allwinner,sun50i-a100-sid
+              - allwinner,sun50i-h616-sid
           - const: allwinner,sun50i-a64-sid
       - const: allwinner,sun50i-h5-sid
       - const: allwinner,sun50i-h6-sid
Signature · 2 lines
-- 
2.42.0
#4 lore raw

PATCH v3 2/2 arm64: dts: allwinner: h616: Add SID controller node

In reply to Martin Botka

Add node for the H616 SID controller

---
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +7 -0
index 74aed0d232a9..d549d277d972 100644
@@ -133,6 +133,13 @@ ccu: clock@3001000 {
 			#reset-cells = <1>;
 		};
 
+		sid: efuse@3006000 {
+			compatible = "allwinner,sun50i-h616-sid", "allwinner,sun50i-a64-sid";
+			reg = <0x03006000 0x1000>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+		};
+
 		watchdog: watchdog@30090a0 {
 			compatible = "allwinner,sun50i-h616-wdt",
 				     "allwinner,sun6i-a31-wdt";
Signature · 1 line
2.42.0
maintainer Acked-by on v3 2/2
#5 lore raw

Re: [PATCH v3 2/2] arm64: dts: allwinner: h616: Add SID controller node

Dne torek, 12. september 2023 ob 14:25:13 CEST je Martin Botka napisal(a):

Quoted 3 lines

Add node for the H616 SID controller

Best regards,
Jernej

Quoted 10 lines
---
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)
(quoted diff) +0 -0

b/arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi index 74aed0d232a9..d549d277d972 100644

arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi ccu: clock@3001000 { · line 137

Quoted 5 lines
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +2 -0
@@ -133,6 +133,13 @@ ccu: clock@3001000 {
 			#reset-cells = <1>;
 		};
 
+		sid: efuse@3006000 {
+			compatible = "allwinner,sun50i-h616-sid", 

"allwinner,sun50i-a64-sid";

Quoted 8 lines
arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi +5 -0
+			reg = <0x03006000 0x1000>;
+			#address-cells = <1>;
+			#size-cells = <1>;
+		};
+
 		watchdog: watchdog@30090a0 {
 			compatible = "allwinner,sun50i-h616-wdt",
 				     "allwinner,sun6i-a31-wdt";
maintainer Applied
#6 lore raw
In reply to Martin Botka

Dne torek, 12. september 2023 ob 14:25:11 CEST je Martin Botka napisal(a):

Quoted 11 lines

Hello,

This patch series enables Security ID (SID) support for AllWinner H616.

SID support is an requirement for few things:
- Thermal sensors
- CPU Binning ID (cpufreq will use this)
- EPhy

This patch series doesn't add support for the consumers. Those will come in the future via their own series.

Applied, thanks!

Best regards,
Jernej

Quoted 29 lines

Cheers,
Martin

---
Changes in v3:
- bindings: Make H616 compatible fallback for a64 using items and enum
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Drop driver changes
- Use fallback compatible in DT
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Martin Botka (2):
dt-bindings: nvmem: SID: Add binding for H616 SID controller
arm64: dts: allwinner: h616: Add SID controller node

 .../devicetree/bindings/nvmem/allwinner,sun4i-a10-sid.yaml         | 4 +++-
 arch/arm64/boot/dts/allwinner/sun50i-h616.dtsi                     | 7 +++++++
 2 files changed, 10 insertions(+), 1 deletion(-)

---
base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
change-id: 20230811-sid-h616-37b773e59571

Best regards,