1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/thermal/spacemit,k1-tsensor.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: SpacemiT K1 Thermal Sensor 8 9description: 10 The SpacemiT K1 Thermal Sensor monitors the temperature of the SoC 11 using multiple internal sensors (e.g., soc, package, gpu, clusters). 12 13maintainers: 14 - Shuwei Wu <shuwei.wu@mailbox.org> 15 16$ref: thermal-sensor.yaml# 17 18properties: 19 compatible: 20 const: spacemit,k1-tsensor 21 22 reg: 23 maxItems: 1 24 25 clocks: 26 items: 27 - description: Core clock for thermal sensor 28 - description: Bus clock for thermal sensor 29 30 clock-names: 31 items: 32 - const: core 33 - const: bus 34 35 interrupts: 36 maxItems: 1 37 38 resets: 39 items: 40 - description: Reset for the thermal sensor 41 42 "#thermal-sensor-cells": 43 const: 1 44 description: 45 The first cell indicates the sensor ID. 46 0 = soc 47 1 = package 48 2 = gpu 49 3 = cluster0 50 4 = cluster1 51 52required: 53 - compatible 54 - reg 55 - clocks 56 - clock-names 57 - interrupts 58 - resets 59 - "#thermal-sensor-cells" 60 61additionalProperties: false 62 63examples: 64 - | 65 #include <dt-bindings/clock/spacemit,k1-syscon.h> 66 67 thermal@d4018000 { 68 compatible = "spacemit,k1-tsensor"; 69 reg = <0xd4018000 0x100>; 70 clocks = <&syscon_apbc CLK_TSEN>, 71 <&syscon_apbc CLK_TSEN_BUS>; 72 clock-names = "core", "bus"; 73 interrupts = <61>; 74 resets = <&syscon_apbc RESET_TSEN>; 75 #thermal-sensor-cells = <1>; 76 }; 77