Skip to contentSkip to conversation

dt-bindings: thermal: sun8i: Add A523 THS0/1 controllers

PATCH Andre Przywara 1 participant 1 message Apr 11, 2025 2 messages not in the archive Arm/Allwinner sunXi SoC support

lore
Share & tools
lore
#2 lore raw
In reply to a message not in the archive

On Fri, 11 Apr 2025 00:50:44 +0800
iuncuim <[email protected]> wrote:

Hi Mikhail,

many thanks for sending!

This patch needs to come earlier in the series, before the .dts patches, and I think ideally even before the driver patches.
The repo needs to be clean at any given commit, as it stands right now the DT validation would fail if run on patch 5/6 only.

More below...

Quoted 15 lines

From: Mikhail Kalashnikov <[email protected]>

Add dt-bindings description of the thermal sensors in the A523 processor.

---
 .../bindings/thermal/allwinner,sun8i-a83t-ths.yaml           | 5 +++++
 1 file changed, 5 insertions(+)
Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml +0 -0
index 3e61689f6..70ac395ef 100644
@@ -24,17 +24,21 @@ properties:
       - allwinner,sun50i-h5-ths

Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml properties: · line 34

Quoted 10 lines
Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml +3 -0
       - allwinner,sun50i-h6-ths
       - allwinner,sun50i-h616-ths
+      - allwinner,sun55i-a523-ths0
+      - allwinner,sun55i-a523-ths1
 
   clocks:
     minItems: 1
     items:
       - description: Bus Clock
+      - description: GPADC Clock

The new clock needs to come last, to preserve the order for the existing chips.

Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml properties: · line 41

Quoted 7 lines
Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml +1 -0
       - description: Module Clock
 
   clock-names:
     minItems: 1
     items:
       - const: bus
+      - const: gpadc

Same here, of course.

And don't you need to adjust the number of clocks in the allOf: section below, to require exactly three clocks for the A523?

Cheers,
Andre

Quoted 11 lines
Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml +1 -0
       - const: mod
 
   reg:
@@ -107,6 +111,7 @@ allOf:
             enum:
               - allwinner,sun8i-h3-ths
               - allwinner,sun20i-d1-ths
+              - allwinner,sun55i-a523-ths0
 
     then:
       properties: