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 <krzysztof.kozlowski@linaro.org>
Acked-by: Chen-Yu Tsai <wens@csie.org>
Acked-by: Rob Herring (Arm) <robh@kernel.org>
Link: https://lore.kernel.org/r/20250107131027.246608-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
Krzysztof Kozlowski 2025-01-07 14:10:26 +01:00 committed by Daniel Lezcano
parent 09daf8f0d4
commit 5ad72c2b24
3 changed files with 46 additions and 46 deletions

View File

@ -142,38 +142,38 @@ unevaluatedProperties: false
examples: examples:
- | - |
thermal-sensor@1f04000 { thermal-sensor@1f04000 {
compatible = "allwinner,sun8i-a83t-ths"; compatible = "allwinner,sun8i-a83t-ths";
reg = <0x01f04000 0x100>; reg = <0x01f04000 0x100>;
interrupts = <0 31 0>; interrupts = <0 31 0>;
nvmem-cells = <&ths_calibration>; nvmem-cells = <&ths_calibration>;
nvmem-cell-names = "calibration"; nvmem-cell-names = "calibration";
#thermal-sensor-cells = <1>; #thermal-sensor-cells = <1>;
}; };
- | - |
thermal-sensor@1c25000 { thermal-sensor@1c25000 {
compatible = "allwinner,sun8i-h3-ths"; compatible = "allwinner,sun8i-h3-ths";
reg = <0x01c25000 0x400>; reg = <0x01c25000 0x400>;
clocks = <&ccu 0>, <&ccu 1>; clocks = <&ccu 0>, <&ccu 1>;
clock-names = "bus", "mod"; clock-names = "bus", "mod";
resets = <&ccu 2>; resets = <&ccu 2>;
interrupts = <0 31 0>; interrupts = <0 31 0>;
nvmem-cells = <&ths_calibration>; nvmem-cells = <&ths_calibration>;
nvmem-cell-names = "calibration"; nvmem-cell-names = "calibration";
#thermal-sensor-cells = <0>; #thermal-sensor-cells = <0>;
}; };
- | - |
thermal-sensor@5070400 { thermal-sensor@5070400 {
compatible = "allwinner,sun50i-h6-ths"; compatible = "allwinner,sun50i-h6-ths";
reg = <0x05070400 0x100>; reg = <0x05070400 0x100>;
clocks = <&ccu 0>; clocks = <&ccu 0>;
clock-names = "bus"; clock-names = "bus";
resets = <&ccu 2>; resets = <&ccu 2>;
interrupts = <0 15 0>; interrupts = <0 15 0>;
nvmem-cells = <&ths_calibration>; nvmem-cells = <&ths_calibration>;
nvmem-cell-names = "calibration"; nvmem-cell-names = "calibration";
#thermal-sensor-cells = <1>; #thermal-sensor-cells = <1>;
}; };
... ...

View File

@ -80,19 +80,19 @@ examples:
#include <dt-bindings/interrupt-controller/arm-gic.h> #include <dt-bindings/interrupt-controller/arm-gic.h>
efuse@21bc000 { efuse@21bc000 {
#address-cells = <1>; #address-cells = <1>;
#size-cells = <1>; #size-cells = <1>;
compatible = "fsl,imx6sx-ocotp", "syscon"; compatible = "fsl,imx6sx-ocotp", "syscon";
reg = <0x021bc000 0x4000>; reg = <0x021bc000 0x4000>;
clocks = <&clks IMX6SX_CLK_OCOTP>; clocks = <&clks IMX6SX_CLK_OCOTP>;
tempmon_calib: calib@38 { tempmon_calib: calib@38 {
reg = <0x38 4>; reg = <0x38 4>;
}; };
tempmon_temp_grade: temp-grade@20 { tempmon_temp_grade: temp-grade@20 {
reg = <0x20 4>; reg = <0x20 4>;
}; };
}; };
anatop@20c8000 { anatop@20c8000 {
@ -103,12 +103,12 @@ examples:
<0 127 IRQ_TYPE_LEVEL_HIGH>; <0 127 IRQ_TYPE_LEVEL_HIGH>;
tempmon { tempmon {
compatible = "fsl,imx6sx-tempmon"; compatible = "fsl,imx6sx-tempmon";
interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>;
fsl,tempmon = <&anatop>; fsl,tempmon = <&anatop>;
nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>; nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
nvmem-cell-names = "calib", "temp_grade"; nvmem-cell-names = "calib", "temp_grade";
clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>; clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
#thermal-sensor-cells = <0>; #thermal-sensor-cells = <0>;
}; };
}; };

View File

@ -63,10 +63,10 @@ examples:
#include <dt-bindings/clock/imx8mm-clock.h> #include <dt-bindings/clock/imx8mm-clock.h>
thermal-sensor@30260000 { thermal-sensor@30260000 {
compatible = "fsl,imx8mm-tmu"; compatible = "fsl,imx8mm-tmu";
reg = <0x30260000 0x10000>; reg = <0x30260000 0x10000>;
clocks = <&clk IMX8MM_CLK_TMU_ROOT>; clocks = <&clk IMX8MM_CLK_TMU_ROOT>;
#thermal-sensor-cells = <0>; #thermal-sensor-cells = <0>;
}; };
... ...