[PATCH 1/2] dt-bindings: thermal: amlogic: Add A9 thermal bindings

From: Xianwei Zhao via B4 Relay

Date: Thu Jul 30 2026 - 04:54:06 EST


From: Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>

Document the thermal controller compatibles for the Amlogic A9 SoC.

Describe the required "core" and "plck" clocks, add the optional
"amlogic,hw-reset-temp" property, and update the schema constraints for
A9-specific thermal controllers.

Signed-off-by: Xianwei Zhao <xianwei.zhao@xxxxxxxxxxx>
---
.../bindings/thermal/amlogic,thermal.yaml | 29 +++++++++++++++++++++-
1 file changed, 28 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml b/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml
index 8cfa44dcda58..5f5dc6f12851 100644
--- a/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml
@@ -23,6 +23,7 @@ properties:
- const: amlogic,g12a-thermal
- enum:
- amlogic,a1-cpu-thermal
+ - amlogic,a9-thermal
- amlogic,t7-thermal

reg:
@@ -32,7 +33,13 @@ properties:
maxItems: 1

clocks:
- maxItems: 1
+ minItems: 1
+ maxItems: 2
+
+ clock-names:
+ items:
+ - const: core
+ - const: pclk

power-domains:
maxItems: 1
@@ -52,6 +59,10 @@ properties:
- description: phandle to the secure monitor
- description: sensor index to get specific calibration data

+ amlogic,hw-reset-temp:
+ description: The hardware-controlled reset temperature value.
+ $ref: /schemas/types.yaml#/definitions/uint32
+
required:
- compatible
- reg
@@ -73,6 +84,22 @@ allOf:
required:
- amlogic,secure-monitor

+ - if:
+ properties:
+ compatible:
+ contains:
+ enum:
+ - amlogic,a9-thermal
+ then:
+ required:
+ - clock-names
+ else:
+ properties:
+ clocks:
+ maxItems: 1
+ clocks-names: false
+ amlogic,hw-reset-temp: false
+
unevaluatedProperties: false

examples:

--
2.52.0