Skip to content

Commit 5ad72c2

Browse files
krzkdlezcano
authored andcommitted
dt-bindings: thermal: Correct indentation and style in DTS example
DTS example in the bindings should be indented with 2- or 4-spaces and aligned with opening '- |', so correct any differences like 3-spaces or mixtures 2- and 4-spaces in one binding. No functional changes here, but saves some comments during reviews of new patches built on existing code. Signed-off-by: Krzysztof Kozlowski <[email protected]> Acked-by: Chen-Yu Tsai <[email protected]> Acked-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 09daf8f commit 5ad72c2

File tree

3 files changed

+48
-48
lines changed

3 files changed

+48
-48
lines changed

Documentation/devicetree/bindings/thermal/allwinner,sun8i-a83t-ths.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -142,38 +142,38 @@ unevaluatedProperties: false
142142
examples:
143143
- |
144144
thermal-sensor@1f04000 {
145-
compatible = "allwinner,sun8i-a83t-ths";
146-
reg = <0x01f04000 0x100>;
147-
interrupts = <0 31 0>;
148-
nvmem-cells = <&ths_calibration>;
149-
nvmem-cell-names = "calibration";
150-
#thermal-sensor-cells = <1>;
145+
compatible = "allwinner,sun8i-a83t-ths";
146+
reg = <0x01f04000 0x100>;
147+
interrupts = <0 31 0>;
148+
nvmem-cells = <&ths_calibration>;
149+
nvmem-cell-names = "calibration";
150+
#thermal-sensor-cells = <1>;
151151
};
152152
153153
- |
154154
thermal-sensor@1c25000 {
155-
compatible = "allwinner,sun8i-h3-ths";
156-
reg = <0x01c25000 0x400>;
157-
clocks = <&ccu 0>, <&ccu 1>;
158-
clock-names = "bus", "mod";
159-
resets = <&ccu 2>;
160-
interrupts = <0 31 0>;
161-
nvmem-cells = <&ths_calibration>;
162-
nvmem-cell-names = "calibration";
163-
#thermal-sensor-cells = <0>;
155+
compatible = "allwinner,sun8i-h3-ths";
156+
reg = <0x01c25000 0x400>;
157+
clocks = <&ccu 0>, <&ccu 1>;
158+
clock-names = "bus", "mod";
159+
resets = <&ccu 2>;
160+
interrupts = <0 31 0>;
161+
nvmem-cells = <&ths_calibration>;
162+
nvmem-cell-names = "calibration";
163+
#thermal-sensor-cells = <0>;
164164
};
165165
166166
- |
167167
thermal-sensor@5070400 {
168-
compatible = "allwinner,sun50i-h6-ths";
169-
reg = <0x05070400 0x100>;
170-
clocks = <&ccu 0>;
171-
clock-names = "bus";
172-
resets = <&ccu 2>;
173-
interrupts = <0 15 0>;
174-
nvmem-cells = <&ths_calibration>;
175-
nvmem-cell-names = "calibration";
176-
#thermal-sensor-cells = <1>;
168+
compatible = "allwinner,sun50i-h6-ths";
169+
reg = <0x05070400 0x100>;
170+
clocks = <&ccu 0>;
171+
clock-names = "bus";
172+
resets = <&ccu 2>;
173+
interrupts = <0 15 0>;
174+
nvmem-cells = <&ths_calibration>;
175+
nvmem-cell-names = "calibration";
176+
#thermal-sensor-cells = <1>;
177177
};
178178
179179
...

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -80,19 +80,19 @@ examples:
8080
#include <dt-bindings/interrupt-controller/arm-gic.h>
8181
8282
efuse@21bc000 {
83-
#address-cells = <1>;
84-
#size-cells = <1>;
85-
compatible = "fsl,imx6sx-ocotp", "syscon";
86-
reg = <0x021bc000 0x4000>;
87-
clocks = <&clks IMX6SX_CLK_OCOTP>;
88-
89-
tempmon_calib: calib@38 {
90-
reg = <0x38 4>;
91-
};
92-
93-
tempmon_temp_grade: temp-grade@20 {
94-
reg = <0x20 4>;
95-
};
83+
#address-cells = <1>;
84+
#size-cells = <1>;
85+
compatible = "fsl,imx6sx-ocotp", "syscon";
86+
reg = <0x021bc000 0x4000>;
87+
clocks = <&clks IMX6SX_CLK_OCOTP>;
88+
89+
tempmon_calib: calib@38 {
90+
reg = <0x38 4>;
91+
};
92+
93+
tempmon_temp_grade: temp-grade@20 {
94+
reg = <0x20 4>;
95+
};
9696
};
9797
9898
anatop@20c8000 {
@@ -103,12 +103,12 @@ examples:
103103
<0 127 IRQ_TYPE_LEVEL_HIGH>;
104104
105105
tempmon {
106-
compatible = "fsl,imx6sx-tempmon";
107-
interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
108-
fsl,tempmon = <&anatop>;
109-
nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
110-
nvmem-cell-names = "calib", "temp_grade";
111-
clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
112-
#thermal-sensor-cells = <0>;
106+
compatible = "fsl,imx6sx-tempmon";
107+
interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
108+
fsl,tempmon = <&anatop>;
109+
nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
110+
nvmem-cell-names = "calib", "temp_grade";
111+
clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
112+
#thermal-sensor-cells = <0>;
113113
};
114114
};

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ examples:
6363
#include <dt-bindings/clock/imx8mm-clock.h>
6464
6565
thermal-sensor@30260000 {
66-
compatible = "fsl,imx8mm-tmu";
67-
reg = <0x30260000 0x10000>;
68-
clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
69-
#thermal-sensor-cells = <0>;
66+
compatible = "fsl,imx8mm-tmu";
67+
reg = <0x30260000 0x10000>;
68+
clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
69+
#thermal-sensor-cells = <0>;
7070
};
7171
7272
...

0 commit comments

Comments
 (0)