Skip to contentSkip to conversation

Synquacer DT schema fixes

PATCH In review Rob Herring 4 participants 11 messages Dec 6, 2022 – Jan 3, 2023 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

cover Synquacer DT schema fixes

This is a series of DT fixes for the Synquacer. These issues were found running the dtschema tools.

I don't have a board, but Ilias has tested the changes for me. Thanks!

---
Rob Herring (4):
dts: synquacer: Drop CPU 'arm,armv8' compatibles
dts: synquacer: Use generic node names
dts: synquacer: Fix "arm,armv7-timer-mem" node address sizes
dts: synquacer: Fix idle-states 'entry-method' value

 .../dts/synquacer-sc2a11-developerbox-u-boot.dtsi  |  2 +-
 arch/arm/dts/synquacer-sc2a11-developerbox.dts     |  2 +-
 arch/arm/dts/synquacer-sc2a11.dtsi                 | 70 +++++++++++-----------
 3 files changed, 37 insertions(+), 37 deletions(-)

---
base-commit: bebb393b340295edb9ba50a996fc0510cd1b6ac0
change-id: 20221206-synquacer-dts-521500f88a1d

Best regards,

Signature · 1 line
Rob Herring <[email protected]>
#1 lore raw

PATCH 1/4 dts: synquacer: Drop CPU 'arm,armv8' compatibles

'arm,armv8' compatible is for software models only. so drop it from cpu nodes.

---
 arch/arm/dts/synquacer-sc2a11.dtsi | 48 +++++++++++++++++++-------------------
 1 file changed, 24 insertions(+), 24 deletions(-)
arch/arm/dts/synquacer-sc2a11.dtsi +24 -24
index 1fe7d214b9c9..1f8cd9d25780 100644
@@ -41,168 +41,168 @@
 
         CPU0: cpu@0 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x0>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU1: cpu@1 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x1>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU2: cpu@100 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x100>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU3: cpu@101 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x101>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU4: cpu@200 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x200>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU5: cpu@201 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x201>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU6: cpu@300 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x300>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU7: cpu@301 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x301>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU8: cpu@400 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x400>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU9: cpu@401 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x401>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU10: cpu@500 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x500>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU11: cpu@501 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x501>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU12: cpu@600 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x600>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU13: cpu@601 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x601>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU14: cpu@700 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x700>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU15: cpu@701 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x701>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU16: cpu@800 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x800>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU17: cpu@801 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x801>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU18: cpu@900 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x900>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU19: cpu@901 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0x901>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU20: cpu@a00 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0xa00>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU21: cpu@a01 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0xa01>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU22: cpu@b00 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0xb00>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
         };
         CPU23: cpu@b01 {
             device_type = "cpu";
-            compatible = "arm,cortex-a53","arm,armv8";
+            compatible = "arm,cortex-a53";
             reg = <0xb01>;
             enable-method = "psci";
             cpu-idle-states = <&CPU_SLEEP_0 &CLUSTER_SLEEP_0>;
Signature · 1 line
b4 0.11.0-dev
#2 lore raw

Re: [PATCH 1/4] dts: synquacer: Drop CPU 'arm,armv8' compatibles

Quoted 4 lines · Rob Herring

'arm,armv8' compatible is for software models only. so drop it from cpu nodes.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
#3 lore raw

PATCH 2/4 dts: synquacer: Use generic node names

In reply to Rob Herring

DT node names should follow generic names defined in the DT spec. These are also now checked by dtschema tools.

---
 arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi |  2 +-
 arch/arm/dts/synquacer-sc2a11-developerbox.dts         |  2 +-
 arch/arm/dts/synquacer-sc2a11.dtsi                     | 10 +++++-----
 3 files changed, 7 insertions(+), 7 deletions(-)
arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi +1 -1
index 7a56116d6f12..6b85c05458d4 100644
@@ -23,7 +23,7 @@
 		active_clk_edges;
 		chipselect_num = <1>;
 
-		spi-flash@0 {
+		flash@0 {
 			#address-cells = <1>;
 			#size-cells = <1>;
 			compatible = "jedec,spi-nor";
arch/arm/dts/synquacer-sc2a11-developerbox.dts +1 -1
index 42b6cbbb8251..c8087b99a781 100644
@@ -18,7 +18,7 @@
         compatible = "gpio-keys";
         interrupt-parent = <&exiu>;
 
-        power {
+        power-button {
             label = "Power Button";
             linux,code = <KEY_POWER>;
             interrupts = <GIC_SPI 120 IRQ_TYPE_EDGE_FALLING>;
arch/arm/dts/synquacer-sc2a11.dtsi +5 -5
index 1f8cd9d25780..0e1bc164549f 100644
@@ -344,7 +344,7 @@
         interrupt-controller;
         interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_LOW>;
 
-        its: gic-its@30020000 {
+        its: msi-controller@30020000 {
             compatible = "arm,gic-v3-its";
             reg = <0x0 0x30020000 0x0 0x20000>;
             #msi-cells = <1>;
@@ -361,7 +361,7 @@
                      <GIC_PPI 10 IRQ_TYPE_LEVEL_LOW>;   // HYP
     };
 
-    mmio-timer@2a810000 {
+    timer@2a810000 {
         compatible = "arm,armv7-timer-mem";
         reg = <0x0 0x2a810000 0x0 0x10000>;
         #address-cells = <2>;
@@ -398,7 +398,7 @@
         clock-output-names = "apb_pclk";
     };
 
-    soc_uart0: uart@2a400000 {
+    soc_uart0: serial@2a400000 {
         compatible = "arm,pl011", "arm,primecell";
         reg = <0x0 0x2a400000 0x0 0x1000>;
         interrupts = <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>;
@@ -406,7 +406,7 @@
         clock-names = "uartclk", "apb_pclk";
     };
 
-    fuart: uart@51040000 {
+    fuart: serial@51040000 {
         compatible = "snps,dw-apb-uart";
         reg = <0x0 0x51040000 0x0 0x1000>;
         interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
@@ -523,7 +523,7 @@
         clock-output-names = "sd_sd4clk";
     };
 
-    sdhci: sdhci@52300000 {
+    sdhci: mmc@52300000 {
         compatible = "socionext,synquacer-sdhci", "fujitsu,mb86s70-sdhci-3.0";
         reg = <0 0x52300000 0x0 0x1000>;
         interrupts = <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>,
Signature · 1 line
b4 0.11.0-dev
#4 lore raw

Re: [PATCH 2/4] dts: synquacer: Use generic node names

Quoted 4 lines · Rob Herring

DT node names should follow generic names defined in the DT spec. These are also now checked by dtschema tools.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
#5 lore raw

PATCH 3/4 dts: synquacer: Fix "arm, armv7-timer-mem" node address sizes

In reply to Rob Herring

The "arm,armv7-timer-mem" schema defines the address sizes for child nodes to be 32-bit as there's no need for 64-bit offsets and sizes of the child 'frame' nodes.

---
 arch/arm/dts/synquacer-sc2a11.dtsi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
arch/arm/dts/synquacer-sc2a11.dtsi +5 -5
index 0e1bc164549f..049afcb0af8a 100644
@@ -364,13 +364,13 @@
     timer@2a810000 {
         compatible = "arm,armv7-timer-mem";
         reg = <0x0 0x2a810000 0x0 0x10000>;
-        #address-cells = <2>;
-        #size-cells = <2>;
-        ranges;
-        frame@2a830000 {
+        #address-cells = <1>;
+        #size-cells = <1>;
+        ranges = <0x0 0x0 0x2a810000 0x30000>;
+        frame@20000 {
             frame-number = <0>;
             interrupts = <GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH>;
-            reg = <0x0 0x2a830000 0x0 0x10000>;
+            reg = <0x20000 0x10000>;
         };
     };
 
Signature · 1 line
b4 0.11.0-dev
#6 lore raw

Re: [PATCH 3/4] dts: synquacer: Fix "arm, armv7-timer-mem" node address sizes

Quoted 5 lines · Rob Herring

The "arm,armv7-timer-mem" schema defines the address sizes for child nodes to be 32-bit as there's no need for 64-bit offsets and sizes of the child 'frame' nodes.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
#7 lore raw

PATCH 4/4 dts: synquacer: Fix idle-states 'entry-method' value

In reply to Rob Herring

The correct value for 'entry-method' in the idle-states binding is 'psci', not 'arm,psci'. It hasn't mattered because it isn't used by the OS.

---
 arch/arm/dts/synquacer-sc2a11.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/dts/synquacer-sc2a11.dtsi +1 -1
index 049afcb0af8a..0dd2969b5e3c 100644
@@ -309,7 +309,7 @@
     };
 
     idle-states {
-        entry-method = "arm,psci";
+        entry-method = "psci";
 
         CPU_SLEEP_0: cpu-sleep-0 {
             compatible = "arm,idle-state";
Signature · 1 line
b4 0.11.0-dev
#8 lore raw

Re: [PATCH 4/4] dts: synquacer: Fix idle-states 'entry-method' value

Quoted 4 lines · Rob Herring

The correct value for 'entry-method' in the idle-states binding is 'psci', not 'arm,psci'. It hasn't mattered because it isn't used by the OS.

Applied to u-boot/next, thanks!

Signature · 1 line
Tom
Tested-by Reviewed-by on the v1 series
#9 lore raw
In reply to Rob Herring

Hi Rob

Quoted 5 lines · Rob Herring

This is a series of DT fixes for the Synquacer. These issues were found running the dtschema tools.

I don't have a board, but Ilias has tested the changes for me. Thanks!

I did and fwiw for the series

but I'd prefer having someone from Socionext config that. Kojima-san does it look ok to you as well?

Regards
/Ilias

Quoted 21 lines

---
Rob Herring (4):
dts: synquacer: Drop CPU 'arm,armv8' compatibles
dts: synquacer: Use generic node names
dts: synquacer: Fix "arm,armv7-timer-mem" node address sizes
dts: synquacer: Fix idle-states 'entry-method' value

 .../dts/synquacer-sc2a11-developerbox-u-boot.dtsi  |  2 +-
 arch/arm/dts/synquacer-sc2a11-developerbox.dts     |  2 +-
 arch/arm/dts/synquacer-sc2a11.dtsi                 | 70 +++++++++++-----------
 3 files changed, 37 insertions(+), 37 deletions(-)

---
base-commit: bebb393b340295edb9ba50a996fc0510cd1b6ac0
change-id: 20221206-synquacer-dts-521500f88a1d

Best regards,
--
Rob Herring <[email protected]>

#10 lore raw

Hi Rob, Ilias,

Quoted 8 lines · Ilias Apalodimas

Hi Rob

Quoted 4 lines · Rob Herring

This is a series of DT fixes for the Synquacer. These issues were found running the dtschema tools.

Quoted 8 lines
Quoted 1 line

I don't have a board, but Ilias has tested the changes for me. Thanks!

I did and fwiw for the series

but I'd prefer having someone from Socionext config that. Kojima-san does it look ok to you as well?

I have checked and tested this series and everything is fine. Thank you for the modification.

Regards,
Masahisa Kojima

Quoted 24 lines

Regards
/Ilias

Quoted 21 lines

---
Rob Herring (4):
dts: synquacer: Drop CPU 'arm,armv8' compatibles
dts: synquacer: Use generic node names
dts: synquacer: Fix "arm,armv7-timer-mem" node address sizes
dts: synquacer: Fix idle-states 'entry-method' value

 .../dts/synquacer-sc2a11-developerbox-u-boot.dtsi  |  2 +-
 arch/arm/dts/synquacer-sc2a11-developerbox.dts     |  2 +-
 arch/arm/dts/synquacer-sc2a11.dtsi                 | 70 +++++++++++-----------
 3 files changed, 37 insertions(+), 37 deletions(-)

---
base-commit: bebb393b340295edb9ba50a996fc0510cd1b6ac0
change-id: 20221206-synquacer-dts-521500f88a1d

Best regards,
--
Rob Herring <[email protected]>