[PATCH 1/3] dt-bindings: embedded-controller: qcom,hamoa-crd-ec: Add thermal sensors

From: Anvesh Jain P

Date: Mon Sep 28 2026 - 02:37:22 EST


Describe the Hamoa embedded controller as a thermal-sensor provider for
firmware-reported thermistors. The populated channels are discovered from
the EC firmware capability response.

Signed-off-by: Anvesh Jain P <anvesh.p@xxxxxxxxxxxxxxxx>
---
.../bindings/embedded-controller/qcom,hamoa-crd-ec.yaml | 12 ++++++++++++
1 file changed, 12 insertions(+)

diff --git a/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml b/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml
index ac5a08f8f76d..13de6bed8129 100644
--- a/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml
+++ b/Documentation/devicetree/bindings/embedded-controller/qcom,hamoa-crd-ec.yaml
@@ -15,6 +15,9 @@ description:
EC running on different MCU chips. The EC handles things like fan control,
temperature sensors, access to EC internal state changes.

+allOf:
+ - $ref: /schemas/thermal/thermal-sensor.yaml#
+
properties:
compatible:
oneOf:
@@ -32,6 +35,14 @@ properties:
interrupts:
maxItems: 1

+ "#thermal-sensor-cells":
+ description:
+ The EC exposes up to 7 onboard thermistors (indices 0-6). Which
+ indices are physically populated on a given board is discovered at
+ runtime from EC firmware capabilities; a board may reference any index
+ 0-6.
+ const: 1
+
required:
- compatible
- reg
@@ -49,6 +60,7 @@ examples:
embedded-controller@76 {
compatible = "qcom,hamoa-crd-ec";
reg = <0x76>;
+ #thermal-sensor-cells = <1>;

interrupts-extended = <&tlmm 66 IRQ_TYPE_LEVEL_HIGH>;
};

--
2.34.1