Skip to content

Commit 819d141

Browse files
krzkWim Van Sebroeck
authored andcommitted
dt-bindings: watchdog: indentation, quotes and white-space cleanup
Minor cleanup without functional impact: 1. Indent DTS examples to preferred four-spaces (more readable for DTS), 2. Drop unneeded quotes, 3. Add/drop blank lines to make the code readable. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Sergio Paracuellos <sergio.paracuellos@gmail.com> Acked-by: Justin Chen <justinpopo6@gmail.com> Acked-by: Neil Armstrong <neil.armstrong@linaro.org> Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20230415095112.51257-2-krzysztof.kozlowski@linaro.org Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
1 parent ab8da07 commit 819d141

13 files changed

Lines changed: 83 additions & 83 deletions

Documentation/devicetree/bindings/watchdog/amlogic,meson-gxbb-wdt.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
# Copyright 2019 BayLibre, SAS
33
%YAML 1.2
44
---
5-
$id: "http://devicetree.org/schemas/watchdog/amlogic,meson-gxbb-wdt.yaml#"
6-
$schema: "http://devicetree.org/meta-schemas/core.yaml#"
5+
$id: http://devicetree.org/schemas/watchdog/amlogic,meson-gxbb-wdt.yaml#
6+
$schema: http://devicetree.org/meta-schemas/core.yaml#
77

88
title: Meson GXBB SoCs Watchdog timer
99

@@ -36,7 +36,7 @@ unevaluatedProperties: false
3636
examples:
3737
- |
3838
watchdog@98d0 {
39-
compatible = "amlogic,meson-gxbb-wdt";
40-
reg = <0x98d0 0x10>;
41-
clocks = <&xtal>;
39+
compatible = "amlogic,meson-gxbb-wdt";
40+
reg = <0x98d0 0x10>;
41+
clocks = <&xtal>;
4242
};

Documentation/devicetree/bindings/watchdog/arm,sbsa-gwdt.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ unevaluatedProperties: false
4040

4141
examples:
4242
- |
43-
4443
watchdog@2a440000 {
4544
compatible = "arm,sbsa-gwdt";
4645
reg = <0x2a440000 0x1000>,

Documentation/devicetree/bindings/watchdog/arm,twd-wdt.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ examples:
4444
#include <dt-bindings/interrupt-controller/arm-gic.h>
4545
4646
watchdog@2c000620 {
47-
compatible = "arm,arm11mp-twd-wdt";
48-
reg = <0x2c000620 0x20>;
49-
interrupts = <GIC_PPI 14 0xf01>;
47+
compatible = "arm,arm11mp-twd-wdt";
48+
reg = <0x2c000620 0x20>;
49+
interrupts = <GIC_PPI 14 0xf01>;
5050
};

Documentation/devicetree/bindings/watchdog/arm-smc-wdt.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ properties:
1616
compatible:
1717
enum:
1818
- arm,smc-wdt
19+
1920
arm,smc-id:
2021
$ref: /schemas/types.yaml#/definitions/uint32
2122
description: |
@@ -30,9 +31,9 @@ unevaluatedProperties: false
3031
examples:
3132
- |
3233
watchdog {
33-
compatible = "arm,smc-wdt";
34-
arm,smc-id = <0x82003D06>;
35-
timeout-sec = <15>;
34+
compatible = "arm,smc-wdt";
35+
arm,smc-id = <0x82003D06>;
36+
timeout-sec = <15>;
3637
};
3738
3839
...

Documentation/devicetree/bindings/watchdog/atmel,sama5d4-wdt.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,13 @@ examples:
6565
#include <dt-bindings/interrupt-controller/irq.h>
6666
6767
watchdog@fc068640 {
68-
compatible = "atmel,sama5d4-wdt";
69-
reg = <0xfc068640 0x10>;
70-
interrupts = <4 IRQ_TYPE_LEVEL_HIGH 5>;
71-
timeout-sec = <10>;
72-
atmel,watchdog-type = "hardware";
73-
atmel,dbg-halt;
74-
atmel,idle-halt;
68+
compatible = "atmel,sama5d4-wdt";
69+
reg = <0xfc068640 0x10>;
70+
interrupts = <4 IRQ_TYPE_LEVEL_HIGH 5>;
71+
timeout-sec = <10>;
72+
atmel,watchdog-type = "hardware";
73+
atmel,dbg-halt;
74+
atmel,idle-halt;
7575
};
7676
7777
...

Documentation/devicetree/bindings/watchdog/brcm,bcm7038-wdt.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ required:
3737
examples:
3838
- |
3939
watchdog@f040a7e8 {
40-
compatible = "brcm,bcm7038-wdt";
41-
reg = <0xf040a7e8 0x16>;
42-
clocks = <&upg_fixed>;
40+
compatible = "brcm,bcm7038-wdt";
41+
reg = <0xf040a7e8 0x16>;
42+
clocks = <&upg_fixed>;
4343
};

Documentation/devicetree/bindings/watchdog/faraday,ftwdt010.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -52,16 +52,16 @@ examples:
5252
- |
5353
#include <dt-bindings/interrupt-controller/irq.h>
5454
watchdog@41000000 {
55-
compatible = "faraday,ftwdt010";
56-
reg = <0x41000000 0x1000>;
57-
interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
58-
timeout-sec = <5>;
55+
compatible = "faraday,ftwdt010";
56+
reg = <0x41000000 0x1000>;
57+
interrupts = <3 IRQ_TYPE_LEVEL_HIGH>;
58+
timeout-sec = <5>;
5959
};
6060
- |
6161
watchdog: watchdog@98500000 {
62-
compatible = "moxa,moxart-watchdog", "faraday,ftwdt010";
63-
reg = <0x98500000 0x10>;
64-
clocks = <&clk_apb>;
65-
clock-names = "PCLK";
62+
compatible = "moxa,moxart-watchdog", "faraday,ftwdt010";
63+
reg = <0x98500000 0x10>;
64+
clocks = <&clk_apb>;
65+
clock-names = "PCLK";
6666
};
6767
...

Documentation/devicetree/bindings/watchdog/mediatek,mt7621-wdt.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ additionalProperties: false
3434
examples:
3535
- |
3636
watchdog@100 {
37-
compatible = "mediatek,mt7621-wdt";
38-
reg = <0x100 0x100>;
39-
mediatek,sysctl = <&sysc>;
37+
compatible = "mediatek,mt7621-wdt";
38+
reg = <0x100 0x100>;
39+
mediatek,sysctl = <&sysc>;
4040
};

Documentation/devicetree/bindings/watchdog/qcom-wdt.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -116,26 +116,26 @@ examples:
116116
#include <dt-bindings/interrupt-controller/arm-gic.h>
117117
118118
watchdog@17c10000 {
119-
compatible = "qcom,apss-wdt-sm8150", "qcom,kpss-wdt";
120-
reg = <0x17c10000 0x1000>;
121-
clocks = <&sleep_clk>;
122-
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
123-
timeout-sec = <10>;
119+
compatible = "qcom,apss-wdt-sm8150", "qcom,kpss-wdt";
120+
reg = <0x17c10000 0x1000>;
121+
clocks = <&sleep_clk>;
122+
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
123+
timeout-sec = <10>;
124124
};
125125
126126
- |
127127
#include <dt-bindings/interrupt-controller/arm-gic.h>
128128
129129
watchdog@200a000 {
130-
compatible = "qcom,kpss-wdt-ipq8064", "qcom,kpss-timer", "qcom,msm-timer";
131-
interrupts = <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
132-
<GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
133-
<GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
134-
<GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
135-
<GIC_PPI 5 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
136-
reg = <0x0200a000 0x100>;
137-
clock-frequency = <25000000>;
138-
clocks = <&sleep_clk>;
139-
clock-names = "sleep";
140-
cpu-offset = <0x80000>;
130+
compatible = "qcom,kpss-wdt-ipq8064", "qcom,kpss-timer", "qcom,msm-timer";
131+
interrupts = <GIC_PPI 1 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
132+
<GIC_PPI 2 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
133+
<GIC_PPI 3 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
134+
<GIC_PPI 4 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>,
135+
<GIC_PPI 5 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_EDGE_RISING)>;
136+
reg = <0x0200a000 0x100>;
137+
clock-frequency = <25000000>;
138+
clocks = <&sleep_clk>;
139+
clock-names = "sleep";
140+
cpu-offset = <0x80000>;
141141
};

Documentation/devicetree/bindings/watchdog/renesas,wdt.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ examples:
177177
#include <dt-bindings/power/r8a7795-sysc.h>
178178
#include <dt-bindings/interrupt-controller/arm-gic.h>
179179
wdt0: watchdog@e6020000 {
180-
compatible = "renesas,r8a7795-wdt", "renesas,rcar-gen3-wdt";
181-
reg = <0xe6020000 0x0c>;
182-
interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
183-
clocks = <&cpg CPG_MOD 402>;
184-
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
185-
resets = <&cpg 402>;
186-
timeout-sec = <60>;
180+
compatible = "renesas,r8a7795-wdt", "renesas,rcar-gen3-wdt";
181+
reg = <0xe6020000 0x0c>;
182+
interrupts = <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>;
183+
clocks = <&cpg CPG_MOD 402>;
184+
power-domains = <&sysc R8A7795_PD_ALWAYS_ON>;
185+
resets = <&cpg 402>;
186+
timeout-sec = <60>;
187187
};

0 commit comments

Comments
 (0)