Skip to content

Commit f062dc5

Browse files
krzkdlezcano
authored andcommitted
dt-bindings: thermal: cleanup examples indentation
Preferred indentation for DTS examples in the bindings is 4-space. It is also preferred not to have redundant/unused labels. No functional change Acked-by: Conor Dooley <[email protected]> Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent bbb4c17 commit f062dc5

File tree

9 files changed

+178
-184
lines changed

9 files changed

+178
-184
lines changed

Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ unevaluatedProperties: false
5050

5151
examples:
5252
- |
53-
cpu_temp: temperature-sensor@ff634800 {
54-
compatible = "amlogic,g12a-cpu-thermal",
55-
"amlogic,g12a-thermal";
56-
reg = <0xff634800 0x50>;
57-
interrupts = <0x0 0x24 0x0>;
58-
clocks = <&clk 164>;
59-
#thermal-sensor-cells = <0>;
60-
amlogic,ao-secure = <&sec_AO>;
61-
};
53+
temperature-sensor@ff634800 {
54+
compatible = "amlogic,g12a-cpu-thermal",
55+
"amlogic,g12a-thermal";
56+
reg = <0xff634800 0x50>;
57+
interrupts = <0x0 0x24 0x0>;
58+
clocks = <&clk 164>;
59+
#thermal-sensor-cells = <0>;
60+
amlogic,ao-secure = <&sec_AO>;
61+
};
6262
...

Documentation/devicetree/bindings/thermal/brcm,avs-ro-thermal.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@ unevaluatedProperties: false
3535

3636
examples:
3737
- |
38-
avs-monitor@7d5d2000 {
39-
compatible = "brcm,bcm2711-avs-monitor",
40-
"syscon", "simple-mfd";
41-
reg = <0x7d5d2000 0xf00>;
42-
43-
thermal: thermal {
44-
compatible = "brcm,bcm2711-thermal";
45-
#thermal-sensor-cells = <0>;
46-
};
38+
avs-monitor@7d5d2000 {
39+
compatible = "brcm,bcm2711-avs-monitor",
40+
"syscon", "simple-mfd";
41+
reg = <0x7d5d2000 0xf00>;
42+
43+
thermal: thermal {
44+
compatible = "brcm,bcm2711-thermal";
45+
#thermal-sensor-cells = <0>;
4746
};
47+
};
4848
...

Documentation/devicetree/bindings/thermal/brcm,avs-tmon.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ required:
4545

4646
examples:
4747
- |
48-
thermal@f04d1500 {
49-
compatible = "brcm,avs-tmon-bcm7445", "brcm,avs-tmon";
50-
reg = <0xf04d1500 0x28>;
51-
interrupts = <0x6>;
52-
interrupt-names = "tmon";
53-
interrupt-parent = <&avs_host_l2_intc>;
54-
#thermal-sensor-cells = <0>;
55-
};
48+
thermal@f04d1500 {
49+
compatible = "brcm,avs-tmon-bcm7445", "brcm,avs-tmon";
50+
reg = <0xf04d1500 0x28>;
51+
interrupts = <0x6>;
52+
interrupt-names = "tmon";
53+
interrupt-parent = <&avs_host_l2_intc>;
54+
#thermal-sensor-cells = <0>;
55+
};

Documentation/devicetree/bindings/thermal/qcom-tsens.yaml

Lines changed: 41 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -296,22 +296,16 @@ unevaluatedProperties: false
296296
examples:
297297
- |
298298
#include <dt-bindings/interrupt-controller/arm-gic.h>
299-
// Example msm9860 based SoC (ipq8064):
300-
gcc: clock-controller {
299+
thermal-sensor {
300+
compatible = "qcom,ipq8064-tsens";
301301
302-
/* ... */
303-
304-
tsens: thermal-sensor {
305-
compatible = "qcom,ipq8064-tsens";
306-
307-
nvmem-cells = <&tsens_calib>, <&tsens_calib_backup>;
308-
nvmem-cell-names = "calib", "calib_backup";
309-
interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
310-
interrupt-names = "uplow";
302+
nvmem-cells = <&tsens_calib>, <&tsens_calib_backup>;
303+
nvmem-cell-names = "calib", "calib_backup";
304+
interrupts = <GIC_SPI 178 IRQ_TYPE_LEVEL_HIGH>;
305+
interrupt-names = "uplow";
311306
312-
#qcom,sensors = <11>;
313-
#thermal-sensor-cells = <1>;
314-
};
307+
#qcom,sensors = <11>;
308+
#thermal-sensor-cells = <1>;
315309
};
316310
317311
- |
@@ -348,66 +342,66 @@ examples:
348342
#include <dt-bindings/interrupt-controller/arm-gic.h>
349343
// Example 1 (legacy: for pre v1 IP):
350344
tsens1: thermal-sensor@4a9000 {
351-
compatible = "qcom,msm8916-tsens", "qcom,tsens-v0_1";
352-
reg = <0x4a9000 0x1000>, /* TM */
353-
<0x4a8000 0x1000>; /* SROT */
345+
compatible = "qcom,msm8916-tsens", "qcom,tsens-v0_1";
346+
reg = <0x4a9000 0x1000>, /* TM */
347+
<0x4a8000 0x1000>; /* SROT */
354348
355-
nvmem-cells = <&tsens_caldata>, <&tsens_calsel>;
356-
nvmem-cell-names = "calib", "calib_sel";
349+
nvmem-cells = <&tsens_caldata>, <&tsens_calsel>;
350+
nvmem-cell-names = "calib", "calib_sel";
357351
358-
interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
359-
interrupt-names = "uplow";
352+
interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
353+
interrupt-names = "uplow";
360354
361-
#qcom,sensors = <5>;
362-
#thermal-sensor-cells = <1>;
355+
#qcom,sensors = <5>;
356+
#thermal-sensor-cells = <1>;
363357
};
364358
365359
- |
366360
#include <dt-bindings/interrupt-controller/arm-gic.h>
367361
// Example 2 (for any platform containing v1 of the TSENS IP):
368362
tsens2: thermal-sensor@4a9000 {
369-
compatible = "qcom,qcs404-tsens", "qcom,tsens-v1";
370-
reg = <0x004a9000 0x1000>, /* TM */
371-
<0x004a8000 0x1000>; /* SROT */
363+
compatible = "qcom,qcs404-tsens", "qcom,tsens-v1";
364+
reg = <0x004a9000 0x1000>, /* TM */
365+
<0x004a8000 0x1000>; /* SROT */
372366
373-
nvmem-cells = <&tsens_caldata>;
374-
nvmem-cell-names = "calib";
367+
nvmem-cells = <&tsens_caldata>;
368+
nvmem-cell-names = "calib";
375369
376-
interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>;
377-
interrupt-names = "uplow";
370+
interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>;
371+
interrupt-names = "uplow";
378372
379-
#qcom,sensors = <10>;
380-
#thermal-sensor-cells = <1>;
373+
#qcom,sensors = <10>;
374+
#thermal-sensor-cells = <1>;
381375
};
382376
383377
- |
384378
#include <dt-bindings/interrupt-controller/arm-gic.h>
385379
// Example 3 (for any platform containing v2 of the TSENS IP):
386380
tsens3: thermal-sensor@c263000 {
387-
compatible = "qcom,sdm845-tsens", "qcom,tsens-v2";
388-
reg = <0xc263000 0x1ff>,
389-
<0xc222000 0x1ff>;
381+
compatible = "qcom,sdm845-tsens", "qcom,tsens-v2";
382+
reg = <0xc263000 0x1ff>,
383+
<0xc222000 0x1ff>;
390384
391-
interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
392-
<GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>;
393-
interrupt-names = "uplow", "critical";
385+
interrupts = <GIC_SPI 506 IRQ_TYPE_LEVEL_HIGH>,
386+
<GIC_SPI 508 IRQ_TYPE_LEVEL_HIGH>;
387+
interrupt-names = "uplow", "critical";
394388
395-
#qcom,sensors = <13>;
396-
#thermal-sensor-cells = <1>;
389+
#qcom,sensors = <13>;
390+
#thermal-sensor-cells = <1>;
397391
};
398392
399393
- |
400394
#include <dt-bindings/interrupt-controller/arm-gic.h>
401395
// Example 4 (for any IPQ8074 based SoC-s):
402396
tsens4: thermal-sensor@4a9000 {
403-
compatible = "qcom,ipq8074-tsens";
404-
reg = <0x4a9000 0x1000>,
405-
<0x4a8000 0x1000>;
397+
compatible = "qcom,ipq8074-tsens";
398+
reg = <0x4a9000 0x1000>,
399+
<0x4a8000 0x1000>;
406400
407-
interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
408-
interrupt-names = "combined";
401+
interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
402+
interrupt-names = "combined";
409403
410-
#qcom,sensors = <16>;
411-
#thermal-sensor-cells = <1>;
404+
#qcom,sensors = <16>;
405+
#thermal-sensor-cells = <1>;
412406
};
413407
...

Documentation/devicetree/bindings/thermal/rcar-gen3-thermal.yaml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -106,48 +106,48 @@ examples:
106106
#include <dt-bindings/power/r8a7795-sysc.h>
107107
108108
tsc: thermal@e6198000 {
109-
compatible = "renesas,r8a7795-thermal";
110-
reg = <0xe6198000 0x100>,
111-
<0xe61a0000 0x100>,
112-
<0xe61a8000 0x100>;
113-
interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
114-
<GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
115-
<GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
116-
clocks = <&cpg CPG_MOD 522>;
117-
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
118-
resets = <&cpg 522>;
119-
#thermal-sensor-cells = <1>;
109+
compatible = "renesas,r8a7795-thermal";
110+
reg = <0xe6198000 0x100>,
111+
<0xe61a0000 0x100>,
112+
<0xe61a8000 0x100>;
113+
interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>,
114+
<GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>,
115+
<GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
116+
clocks = <&cpg CPG_MOD 522>;
117+
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
118+
resets = <&cpg 522>;
119+
#thermal-sensor-cells = <1>;
120120
};
121121
122122
thermal-zones {
123-
sensor_thermal: sensor-thermal {
124-
polling-delay-passive = <250>;
125-
polling-delay = <1000>;
126-
thermal-sensors = <&tsc 0>;
127-
128-
trips {
129-
sensor1_crit: sensor1-crit {
130-
temperature = <90000>;
131-
hysteresis = <2000>;
132-
type = "critical";
133-
};
134-
};
123+
sensor_thermal: sensor-thermal {
124+
polling-delay-passive = <250>;
125+
polling-delay = <1000>;
126+
thermal-sensors = <&tsc 0>;
127+
128+
trips {
129+
sensor1_crit: sensor1-crit {
130+
temperature = <90000>;
131+
hysteresis = <2000>;
132+
type = "critical";
133+
};
135134
};
135+
};
136136
};
137137
- |
138138
#include <dt-bindings/clock/r8a779a0-cpg-mssr.h>
139139
#include <dt-bindings/interrupt-controller/arm-gic.h>
140140
#include <dt-bindings/power/r8a779a0-sysc.h>
141141
142142
tsc_r8a779a0: thermal@e6190000 {
143-
compatible = "renesas,r8a779a0-thermal";
144-
reg = <0xe6190000 0x200>,
145-
<0xe6198000 0x200>,
146-
<0xe61a0000 0x200>,
147-
<0xe61a8000 0x200>,
148-
<0xe61b0000 0x200>;
149-
clocks = <&cpg CPG_MOD 919>;
150-
power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
151-
resets = <&cpg 919>;
152-
#thermal-sensor-cells = <1>;
143+
compatible = "renesas,r8a779a0-thermal";
144+
reg = <0xe6190000 0x200>,
145+
<0xe6198000 0x200>,
146+
<0xe61a0000 0x200>,
147+
<0xe61a8000 0x200>,
148+
<0xe61b0000 0x200>;
149+
clocks = <&cpg CPG_MOD 919>;
150+
power-domains = <&sysc R8A779A0_PD_ALWAYS_ON>;
151+
resets = <&cpg 919>;
152+
#thermal-sensor-cells = <1>;
153153
};

Documentation/devicetree/bindings/thermal/rcar-thermal.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ examples:
9898
# Example (non interrupt support)
9999
- |
100100
thermal@ffc48000 {
101-
compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
102-
reg = <0xffc48000 0x38>;
101+
compatible = "renesas,thermal-r8a7779", "renesas,rcar-thermal";
102+
reg = <0xffc48000 0x38>;
103103
};
104104
105105
# Example (interrupt support)
@@ -109,12 +109,12 @@ examples:
109109
#include <dt-bindings/interrupt-controller/irq.h>
110110
111111
thermal@e61f0000 {
112-
compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal";
113-
reg = <0xe61f0000 0x14>, <0xe61f0100 0x38>,
114-
<0xe61f0200 0x38>, <0xe61f0300 0x38>;
115-
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
116-
clocks = <&mstp5_clks R8A73A4_CLK_THERMAL>;
117-
power-domains = <&pd_c5>;
112+
compatible = "renesas,thermal-r8a73a4", "renesas,rcar-thermal";
113+
reg = <0xe61f0000 0x14>, <0xe61f0100 0x38>,
114+
<0xe61f0200 0x38>, <0xe61f0300 0x38>;
115+
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
116+
clocks = <&mstp5_clks R8A73A4_CLK_THERMAL>;
117+
power-domains = <&pd_c5>;
118118
};
119119
120120
# Example (with thermal-zone)
@@ -124,32 +124,32 @@ examples:
124124
#include <dt-bindings/power/r8a7790-sysc.h>
125125
126126
thermal: thermal@e61f0000 {
127-
compatible = "renesas,thermal-r8a7790",
128-
"renesas,rcar-gen2-thermal",
129-
"renesas,rcar-thermal";
130-
reg = <0xe61f0000 0x10>, <0xe61f0100 0x38>;
131-
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
132-
clocks = <&cpg CPG_MOD 522>;
133-
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
134-
resets = <&cpg 522>;
135-
#thermal-sensor-cells = <0>;
127+
compatible = "renesas,thermal-r8a7790",
128+
"renesas,rcar-gen2-thermal",
129+
"renesas,rcar-thermal";
130+
reg = <0xe61f0000 0x10>, <0xe61f0100 0x38>;
131+
interrupts = <GIC_SPI 69 IRQ_TYPE_LEVEL_HIGH>;
132+
clocks = <&cpg CPG_MOD 522>;
133+
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
134+
resets = <&cpg 522>;
135+
#thermal-sensor-cells = <0>;
136136
};
137137
138138
thermal-zones {
139-
cpu_thermal: cpu-thermal {
140-
polling-delay-passive = <1000>;
141-
polling-delay = <5000>;
142-
143-
thermal-sensors = <&thermal>;
144-
145-
trips {
146-
cpu-crit {
147-
temperature = <115000>;
148-
hysteresis = <0>;
149-
type = "critical";
150-
};
151-
};
152-
cooling-maps {
153-
};
139+
cpu_thermal: cpu-thermal {
140+
polling-delay-passive = <1000>;
141+
polling-delay = <5000>;
142+
143+
thermal-sensors = <&thermal>;
144+
145+
trips {
146+
cpu-crit {
147+
temperature = <115000>;
148+
hysteresis = <0>;
149+
type = "critical";
150+
};
154151
};
152+
cooling-maps {
153+
};
154+
};
155155
};

0 commit comments

Comments
 (0)