[PATCH 1/2] dt-bindings: thermal: airoha: Allow sensor indices for EN7581

From: Vitaliy Sochnev

Date: Sat Oct 31 2026 - 10:20:16 EST


Allow either the existing zero-cell form or a sensor index that
selects the main or CPU ADC.

Signed-off-by: Vitaliy Sochnev <sochnev.v.74@xxxxxxxxx>
---
.../devicetree/bindings/thermal/airoha,en7581-thermal.yaml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml b/Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml
index ca0242ef03788..e7be20d1bd1ce 100644
--- a/Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml
+++ b/Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml
@@ -24,7 +24,11 @@ properties:
$ref: /schemas/types.yaml#/definitions/phandle

'#thermal-sensor-cells':
- const: 0
+ description: >
+ With one cell, the phandle argument selects ADC 0 (main) or 1 (CPU).
+ Zero cells remain valid for existing device trees. Only the main ADC
+ has a hardware trip interrupt; CPU ADC zones with trips need polling.
+ enum: [0, 1]

required:
- compatible
--
2.55.0