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

Configure Feed

Select the types of activity you want to include in your feed.

dt-bindings: thermal: Convert brcm,sr-thermal to DT schema

Convert the brcm,sr-thermal binding to DT schema format. It's a
straight-forward conversion. "polling-delay", "thermal-sensors", and
"temperature" all apply to the thermal zones, not the sensor node.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://patch.msgid.link/20251013215810.783006-1-robh@kernel.org
Signed-off-by: Rob Herring (Arm) <robh@kernel.org>

+121 -105
-105
Documentation/devicetree/bindings/thermal/brcm,sr-thermal.txt
··· 1 - * Broadcom Stingray Thermal 2 - 3 - This binding describes thermal sensors that is part of Stingray SoCs. 4 - 5 - Required properties: 6 - - compatible : Must be "brcm,sr-thermal" 7 - - reg : Memory where tmon data will be available. 8 - - brcm,tmon-mask: A one cell bit mask of valid TMON sources. 9 - Each bit represents single TMON source. 10 - - #thermal-sensor-cells : Thermal sensor phandler 11 - - polling-delay: Max number of milliseconds to wait between polls. 12 - - thermal-sensors: A list of thermal sensor phandles and specifier. 13 - specifier value is tmon ID and it should be 14 - in correspond with brcm,tmon-mask. 15 - - temperature: trip temperature threshold in millicelsius. 16 - 17 - Example: 18 - tmons { 19 - compatible = "simple-bus"; 20 - #address-cells = <1>; 21 - #size-cells = <1>; 22 - ranges = <0x0 0x0 0x8f100000 0x100>; 23 - 24 - tmon: tmon@0 { 25 - compatible = "brcm,sr-thermal"; 26 - reg = <0x0 0x40>; 27 - brcm,tmon-mask = <0x3f>; 28 - #thermal-sensor-cells = <1>; 29 - }; 30 - }; 31 - 32 - thermal-zones { 33 - ihost0_thermal: ihost0-thermal { 34 - polling-delay-passive = <0>; 35 - polling-delay = <1000>; 36 - thermal-sensors = <&tmon 0>; 37 - trips { 38 - cpu-crit { 39 - temperature = <105000>; 40 - hysteresis = <0>; 41 - type = "critical"; 42 - }; 43 - }; 44 - }; 45 - ihost1_thermal: ihost1-thermal { 46 - polling-delay-passive = <0>; 47 - polling-delay = <1000>; 48 - thermal-sensors = <&tmon 1>; 49 - trips { 50 - cpu-crit { 51 - temperature = <105000>; 52 - hysteresis = <0>; 53 - type = "critical"; 54 - }; 55 - }; 56 - }; 57 - ihost2_thermal: ihost2-thermal { 58 - polling-delay-passive = <0>; 59 - polling-delay = <1000>; 60 - thermal-sensors = <&tmon 2>; 61 - trips { 62 - cpu-crit { 63 - temperature = <105000>; 64 - hysteresis = <0>; 65 - type = "critical"; 66 - }; 67 - }; 68 - }; 69 - ihost3_thermal: ihost3-thermal { 70 - polling-delay-passive = <0>; 71 - polling-delay = <1000>; 72 - thermal-sensors = <&tmon 3>; 73 - trips { 74 - cpu-crit { 75 - temperature = <105000>; 76 - hysteresis = <0>; 77 - type = "critical"; 78 - }; 79 - }; 80 - }; 81 - crmu_thermal: crmu-thermal { 82 - polling-delay-passive = <0>; 83 - polling-delay = <1000>; 84 - thermal-sensors = <&tmon 4>; 85 - trips { 86 - cpu-crit { 87 - temperature = <105000>; 88 - hysteresis = <0>; 89 - type = "critical"; 90 - }; 91 - }; 92 - }; 93 - nitro_thermal: nitro-thermal { 94 - polling-delay-passive = <0>; 95 - polling-delay = <1000>; 96 - thermal-sensors = <&tmon 5>; 97 - trips { 98 - cpu-crit { 99 - temperature = <105000>; 100 - hysteresis = <0>; 101 - type = "critical"; 102 - }; 103 - }; 104 - }; 105 - };
+121
Documentation/devicetree/bindings/thermal/brcm,sr-thermal.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/thermal/brcm,sr-thermal.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Broadcom Stingray Thermal Sensors 8 + 9 + maintainers: 10 + - Ray Jui <rjui@broadcom.com> 11 + - Scott Branden <sbranden@broadcom.com> 12 + 13 + allOf: 14 + - $ref: thermal-sensor.yaml# 15 + 16 + properties: 17 + compatible: 18 + const: brcm,sr-thermal 19 + 20 + reg: 21 + maxItems: 1 22 + 23 + brcm,tmon-mask: 24 + description: 25 + A one-cell bit mask of valid TMON sources. Each bit represents a single 26 + TMON source. 27 + $ref: /schemas/types.yaml#/definitions/uint32 28 + 29 + '#thermal-sensor-cells': 30 + const: 1 31 + 32 + required: 33 + - compatible 34 + - reg 35 + - brcm,tmon-mask 36 + 37 + additionalProperties: false 38 + 39 + examples: 40 + - | 41 + tmon: thermal-sensor@0 { 42 + compatible = "brcm,sr-thermal"; 43 + reg = <0x0 0x40>; 44 + brcm,tmon-mask = <0x3f>; 45 + #thermal-sensor-cells = <1>; 46 + }; 47 + 48 + thermal-zones { 49 + ihost0_thermal: ihost0-thermal { 50 + polling-delay-passive = <0>; 51 + polling-delay = <1000>; 52 + thermal-sensors = <&tmon 0>; 53 + trips { 54 + cpu-crit { 55 + temperature = <105000>; 56 + hysteresis = <0>; 57 + type = "critical"; 58 + }; 59 + }; 60 + }; 61 + ihost1_thermal: ihost1-thermal { 62 + polling-delay-passive = <0>; 63 + polling-delay = <1000>; 64 + thermal-sensors = <&tmon 1>; 65 + trips { 66 + cpu-crit { 67 + temperature = <105000>; 68 + hysteresis = <0>; 69 + type = "critical"; 70 + }; 71 + }; 72 + }; 73 + ihost2_thermal: ihost2-thermal { 74 + polling-delay-passive = <0>; 75 + polling-delay = <1000>; 76 + thermal-sensors = <&tmon 2>; 77 + trips { 78 + cpu-crit { 79 + temperature = <105000>; 80 + hysteresis = <0>; 81 + type = "critical"; 82 + }; 83 + }; 84 + }; 85 + ihost3_thermal: ihost3-thermal { 86 + polling-delay-passive = <0>; 87 + polling-delay = <1000>; 88 + thermal-sensors = <&tmon 3>; 89 + trips { 90 + cpu-crit { 91 + temperature = <105000>; 92 + hysteresis = <0>; 93 + type = "critical"; 94 + }; 95 + }; 96 + }; 97 + crmu_thermal: crmu-thermal { 98 + polling-delay-passive = <0>; 99 + polling-delay = <1000>; 100 + thermal-sensors = <&tmon 4>; 101 + trips { 102 + cpu-crit { 103 + temperature = <105000>; 104 + hysteresis = <0>; 105 + type = "critical"; 106 + }; 107 + }; 108 + }; 109 + nitro_thermal: nitro-thermal { 110 + polling-delay-passive = <0>; 111 + polling-delay = <1000>; 112 + thermal-sensors = <&tmon 5>; 113 + trips { 114 + cpu-crit { 115 + temperature = <105000>; 116 + hysteresis = <0>; 117 + type = "critical"; 118 + }; 119 + }; 120 + }; 121 + };