Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: thermal: Add support for Airoha EN7581 thermal sensor

Add support for Airoha EN7581 thermal sensor and monitor. This is a
simple sensor for the CPU or SoC Package that provide thermal sensor and
trip point for hot low and critical condition to fire interrupt and
react on the abnormal state.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250511185003.3754495-1-ansuelsmth@gmail.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>

authored by

Christian Marangi and committed by
Daniel Lezcano
fd55708d 3159c96a

+48
+48
Documentation/devicetree/bindings/thermal/airoha,en7581-thermal.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/thermal/airoha,en7581-thermal.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Airoha EN7581 Thermal Sensor and Monitor 8 + 9 + maintainers: 10 + - Christian Marangi <ansuelsmth@gmail.com> 11 + 12 + properties: 13 + compatible: 14 + const: airoha,en7581-thermal 15 + 16 + reg: 17 + maxItems: 1 18 + 19 + interrupts: 20 + maxItems: 1 21 + 22 + airoha,chip-scu: 23 + description: phandle to the chip SCU syscon 24 + $ref: /schemas/types.yaml#/definitions/phandle 25 + 26 + '#thermal-sensor-cells': 27 + const: 0 28 + 29 + required: 30 + - compatible 31 + - reg 32 + - interrupts 33 + - airoha,chip-scu 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/interrupt-controller/arm-gic.h> 40 + 41 + thermal-sensor@1efbd800 { 42 + compatible = "airoha,en7581-thermal"; 43 + reg = <0x1efbd000 0xd5c>; 44 + interrupts = <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>; 45 + airoha,chip-scu = <&chip_scu>; 46 + 47 + #thermal-sensor-cells = <0>; 48 + };