Skip to contentSkip to conversation

dt-bindings: watchdog: fsl-imx-wdt: Add missing 'big-endian' property

PATCH In review Frank Li 4 participants 6 messages Oct 7, 2024 – Nov 6, 2024

Subsystems (3)
lore
Share & tools
lore

Frank Li

author maintainer
#0 lore raw

PATCH v2 1/1 dt-bindings: watchdog: fsl-imx-wdt: Add missing 'big-endian' property

From: Animesh Agarwal <[email protected]>

Add missing big-endian property in watchdog/fsl-imx-wdt.yaml schema. Only allow big-endian property for ls1012a and ls1043a.

Fix dtbs_check errors. arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dtb: watchdog@2ad0000:
Unevaluated properties are not allowed ('big-endian' was unexpected)

---

Change from v1 to v2:
only allow big endian for layerscape platform.

previous post at:
https://lore.kernel.org/imx/[email protected]/

check spec, and dump watch dog reset value
at ls1043a platform.

0x02A80000: 00 30 00 00 00 10 00 04 00 01 00 00 00 00 00 0

It is big-endian. imx2_wdt.c use regmap which call regmap_get_val_endian() to handle endian.

So this change is corret.

big-endian for wdt is necessary

---
 .../devicetree/bindings/watchdog/fsl-imx-wdt.yaml  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml +14 -0
index 36b836d0620c9..0da953cb71272 100644
@@ -48,6 +48,8 @@ properties:
   clocks:
     maxItems: 1
 
+  big-endian: true
+
   fsl,ext-reset-output:
     $ref: /schemas/types.yaml#/definitions/flag
     description: |
@@ -93,6 +95,18 @@ allOf:
       properties:
         fsl,suspend-in-wait: false
 
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - fsl,ls1012a-wdt
+                - fsl,ls1043a-wdt
+    then:
+      properties:
+        big-endian: false
+
 unevaluatedProperties: false
 
 examples:
Signature · 1 line
2.34.1
Reviewed-by on v2 1/1
#1 lore raw
Quoted 5 lines · Frank Li

From: Animesh Agarwal <[email protected]>

Add missing big-endian property in watchdog/fsl-imx-wdt.yaml schema. Only allow big-endian property for ls1012a and ls1043a.

Quoted 8 lines

Fix dtbs_check errors. arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dtb: watchdog@2ad0000:
Unevaluated properties are not allowed ('big-endian' was unexpected)

---

Best regards,
Krzysztof

author maintainer
#2 lore raw
In reply to Frank Li
Quoted 5 lines · Frank Li

From: Animesh Agarwal <[email protected]>

Add missing big-endian property in watchdog/fsl-imx-wdt.yaml schema. Only allow big-endian property for ls1012a and ls1043a.

Quoted 8 lines

Fix dtbs_check errors. arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dtb: watchdog@2ad0000:
Unevaluated properties are not allowed ('big-endian' was unexpected)

---

Wim Van Sebroeck:

Any update this patch? Kyzy already acked.

Frank

Quoted 57 lines

Change from v1 to v2:
only allow big endian for layerscape platform.

previous post at:
https://lore.kernel.org/imx/[email protected]/

check spec, and dump watch dog reset value
at ls1043a platform.

0x02A80000: 00 30 00 00 00 10 00 04 00 01 00 00 00 00 00 0

It is big-endian. imx2_wdt.c use regmap which call regmap_get_val_endian() to handle endian.

So this change is corret.

big-endian for wdt is necessary

---
 .../devicetree/bindings/watchdog/fsl-imx-wdt.yaml  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml +14 -1
index 36b836d0620c9..0da953cb71272 100644
@@ -48,6 +48,8 @@ properties:
   clocks:
     maxItems: 1
 
+  big-endian: true
+
   fsl,ext-reset-output:
     $ref: /schemas/types.yaml#/definitions/flag
     description: |
@@ -93,6 +95,18 @@ allOf:
       properties:
         fsl,suspend-in-wait: false
 
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - fsl,ls1012a-wdt
+                - fsl,ls1043a-wdt
+    then:
+      properties:
+        big-endian: false
+
 unevaluatedProperties: false
 
 examples:
--

2.34.1

maintainer Acked-by
#3 lore raw

Hi Frank,

Quoted 10 lines · Frank Li
Quoted 9 lines

From: Animesh Agarwal <[email protected]>

Add missing big-endian property in watchdog/fsl-imx-wdt.yaml schema. Only allow big-endian property for ls1012a and ls1043a.

Fix dtbs_check errors. arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dtb: watchdog@2ad0000:
Unevaluated properties are not allowed ('big-endian' was unexpected)

Quoted 9 lines
Quoted 4 lines

---

Wim Van Sebroeck:

Any update this patch? Kyzy already acked.

Via which tree will this go upsteam?

Kind regards,
Wim.

Quoted 61 lines

Frank

Quoted 57 lines

Change from v1 to v2:
only allow big endian for layerscape platform.

previous post at:
https://lore.kernel.org/imx/[email protected]/

check spec, and dump watch dog reset value
at ls1043a platform.

0x02A80000: 00 30 00 00 00 10 00 04 00 01 00 00 00 00 00 0

It is big-endian. imx2_wdt.c use regmap which call regmap_get_val_endian() to handle endian.

So this change is corret.

big-endian for wdt is necessary

---
 .../devicetree/bindings/watchdog/fsl-imx-wdt.yaml  | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
Documentation/devicetree/bindings/watchdog/fsl-imx-wdt.yaml +14 -1
index 36b836d0620c9..0da953cb71272 100644
@@ -48,6 +48,8 @@ properties:
   clocks:
     maxItems: 1
 
+  big-endian: true
+
   fsl,ext-reset-output:
     $ref: /schemas/types.yaml#/definitions/flag
     description: |
@@ -93,6 +95,18 @@ allOf:
       properties:
         fsl,suspend-in-wait: false
 
+  - if:
+      not:
+        properties:
+          compatible:
+            contains:
+              enum:
+                - fsl,ls1012a-wdt
+                - fsl,ls1043a-wdt
+    then:
+      properties:
+        big-endian: false
+
 unevaluatedProperties: false
 
 examples:
--

2.34.1

maintainer
#4 lore raw
Quoted 18 lines · Wim Van Sebroeck

Hi Frank,

Quoted 15 lines · Frank Li
Quoted 13 lines

From: Animesh Agarwal <[email protected]>

Add missing big-endian property in watchdog/fsl-imx-wdt.yaml schema. Only allow big-endian property for ls1012a and ls1043a.

Fix dtbs_check errors. arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dtb: watchdog@2ad0000:
Unevaluated properties are not allowed ('big-endian' was unexpected)

---

Quoted 8 lines
Quoted 4 lines

Wim Van Sebroeck:

Any update this patch? Kyzy already acked.

Via which tree will this go upsteam?

Your tree.

DT bindings go in via $subsystem tree. I only take DT bindings if they don't get picked up by the subsystem maintainer.

Rob

maintainer
#5 lore raw

Hi Frank, Rob,

Quoted 26 lines · Wim Van Sebroeck
Quoted 25 lines

Hi Frank,

Quoted 10 lines · Frank Li
Quoted 9 lines

From: Animesh Agarwal <[email protected]>

Add missing big-endian property in watchdog/fsl-imx-wdt.yaml schema. Only allow big-endian property for ls1012a and ls1043a.

Fix dtbs_check errors. arch/arm64/boot/dts/freescale/fsl-ls1012a-frwy.dtb: watchdog@2ad0000:
Unevaluated properties are not allowed ('big-endian' was unexpected)

Quoted 9 lines
Quoted 4 lines

---

Wim Van Sebroeck:

Any update this patch? Kyzy already acked.

Quoted 8 lines
Quoted 1 line

Via which tree will this go upsteam?

Your tree.

DT bindings go in via $subsystem tree. I only take DT bindings if they don't get picked up by the subsystem maintainer.

Rob

Added.

Kind regards,
Wim.