Skip to content

Commit 48c926c

Browse files
Marco Franchirobherring
authored andcommitted
dt-bindings: Remove leading zeros from bindings notation
Improve the binding example by removing all the leading zeros to fix the following dtc warnings: Warning (unit_address_format): Node /XXX unit name should not have leading 0s Converted using the following command: perl -p -i -e 's/\@0+([0-9a-f])/\@$1/g' `find ./Documentation/devicetree/bindings "*.txt"` Some unnecessary changes were manually fixed. Signed-off-by: Marco Franchi <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent efb5b43 commit 48c926c

File tree

126 files changed

+172
-172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

126 files changed

+172
-172
lines changed

Documentation/devicetree/bindings/arm/samsung/pmu.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pmu_system_controller: system-controller@10040000 {
6262

6363
Example of clock consumer :
6464

65-
usb3503: usb3503@08 {
65+
usb3503: usb3503@8 {
6666
/* ... */
6767
clock-names = "refclk";
6868
clocks = <&pmu_system_controller 0>;

Documentation/devicetree/bindings/arm/samsung/samsung-boards.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Optional nodes:
7171
- compatible: only "samsung,secure-firmware" is currently supported
7272
- reg: address of non-secure SYSRAM used for communication with firmware
7373

74-
firmware@0203F000 {
74+
firmware@203F000 {
7575
compatible = "samsung,secure-firmware";
7676
reg = <0x0203F000 0x1000>;
7777
};

Documentation/devicetree/bindings/arm/sp810.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Required properties:
3333
property with the highest frequency
3434

3535
Example:
36-
v2m_sysctl: sysctl@020000 {
36+
v2m_sysctl: sysctl@20000 {
3737
compatible = "arm,sp810", "arm,primecell";
3838
reg = <0x020000 0x1000>;
3939
clocks = <&v2m_refclk32khz>, <&v2m_refclk1mhz>, <&smbclk>;

Documentation/devicetree/bindings/arm/vexpress-sysreg.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Example:
3737
compatible = "arm,vexpress-sysreg";
3838
reg = <0x10000000 0x1000>;
3939

40-
v2m_led_gpios: sys_led@08 {
40+
v2m_led_gpios: sys_led@8 {
4141
compatible = "arm,vexpress-sysreg,sys_led";
4242
gpio-controller;
4343
#gpio-cells = <2>;

Documentation/devicetree/bindings/ata/ahci-platform.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Examples:
5656
interrupts = <115>;
5757
};
5858

59-
ahci: sata@01c18000 {
59+
ahci: sata@1c18000 {
6060
compatible = "allwinner,sun4i-a10-ahci";
6161
reg = <0x01c18000 0x1000>;
6262
interrupts = <56>;

Documentation/devicetree/bindings/ata/imx-sata.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Optional properties:
2525

2626
Examples:
2727

28-
sata@02200000 {
28+
sata@2200000 {
2929
compatible = "fsl,imx6q-ahci";
3030
reg = <0x02200000 0x4000>;
3131
interrupts = <0 39 IRQ_TYPE_LEVEL_HIGH>;

Documentation/devicetree/bindings/bus/imx-weim.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Timing property for child nodes. It is mandatory, not optional.
6161

6262
Example for an imx6q-sabreauto board, the NOR flash connected to the WEIM:
6363

64-
weim: weim@021b8000 {
64+
weim: weim@21b8000 {
6565
compatible = "fsl,imx6q-weim";
6666
reg = <0x021b8000 0x4000>;
6767
clocks = <&clks 196>;

Documentation/devicetree/bindings/bus/sunxi-rsb.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ which can normally be found in the datasheet.
2828

2929
Example:
3030

31-
rsb@01f03400 {
31+
rsb@1f03400 {
3232
compatible = "allwinner,sun8i-a23-rsb";
3333
reg = <0x01f03400 0x400>;
3434
interrupts = <0 39 4>;

Documentation/devicetree/bindings/clock/arm-syscon-icst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ syscon: syscon@10000000 {
5959
compatible = "syscon";
6060
reg = <0x10000000 0x1000>;
6161

62-
oscclk0: osc0@0c {
62+
oscclk0: osc0@c {
6363
compatible = "arm,syscon-icst307";
6464
#clock-cells = <0>;
6565
lock-offset = <0x20>;

Documentation/devicetree/bindings/clock/clk-exynos-audss.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Example 3: I2S controller node that consumes the clock generated by the clock
8080
controller. Refer to the standard clock bindings for information
8181
about 'clocks' and 'clock-names' property.
8282

83-
i2s0: i2s@03830000 {
83+
i2s0: i2s@3830000 {
8484
compatible = "samsung,i2s-v5";
8585
reg = <0x03830000 0x100>;
8686
dmas = <&pdma0 10

Documentation/devicetree/bindings/clock/clk-s5pv210-audss.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Example: I2S controller node that consumes the clock generated by the clock
4343
controller. Refer to the standard clock bindings for information
4444
about 'clocks' and 'clock-names' property.
4545

46-
i2s0: i2s@03830000 {
46+
i2s0: i2s@3830000 {
4747
/* ... */
4848
clock-names = "iis", "i2s_opclk0",
4949
"i2s_opclk1";

Documentation/devicetree/bindings/clock/dove-divider-clock.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Required properties:
2121
a size of 8.
2222
- #clock-cells : from common clock binding; shall be set to 1
2323

24-
divider_clk: core-clock@0064 {
24+
divider_clk: core-clock@64 {
2525
compatible = "marvell,dove-divider-clock";
2626
reg = <0x0064 0x8>;
2727
#clock-cells = <1>;

Documentation/devicetree/bindings/clock/imx1-clock.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ ID in its "clocks" phandle cell. See include/dt-bindings/clock/imx1-clock.h
1010
for the full list of i.MX1 clock IDs.
1111

1212
Examples:
13-
clks: ccm@0021b000 {
13+
clks: ccm@21b000 {
1414
#clock-cells = <1>;
1515
compatible = "fsl,imx1-ccm";
1616
reg = <0x0021b000 0x1000>;
1717
};
1818

19-
pwm: pwm@00208000 {
19+
pwm: pwm@208000 {
2020
#pwm-cells = <2>;
2121
compatible = "fsl,imx1-pwm";
2222
reg = <0x00208000 0x1000>;

Documentation/devicetree/bindings/clock/imx6q-clock.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ Examples:
1414

1515
#include <dt-bindings/clock/imx6qdl-clock.h>
1616

17-
clks: ccm@020c4000 {
17+
clks: ccm@20c4000 {
1818
compatible = "fsl,imx6q-ccm";
1919
reg = <0x020c4000 0x4000>;
2020
interrupts = <0 87 0x04 0 88 0x04>;
2121
#clock-cells = <1>;
2222
};
2323

24-
uart1: serial@02020000 {
24+
uart1: serial@2020000 {
2525
compatible = "fsl,imx6q-uart", "fsl,imx21-uart";
2626
reg = <0x02020000 0x4000>;
2727
interrupts = <0 26 0x04>;

Documentation/devicetree/bindings/clock/maxim,max77686.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Example:
4646
/* ... */
4747

4848
Node of the MFD chip
49-
max77686: max77686@09 {
49+
max77686: max77686@9 {
5050
compatible = "maxim,max77686";
5151
interrupt-parent = <&wakeup_eint>;
5252
interrupts = <26 0>;
@@ -71,7 +71,7 @@ Example:
7171
/* ... */
7272

7373
Node of the MFD chip
74-
max77802: max77802@09 {
74+
max77802: max77802@9 {
7575
compatible = "maxim,max77802";
7676
interrupt-parent = <&wakeup_eint>;
7777
interrupts = <26 0>;

Documentation/devicetree/bindings/clock/st/st,clkgen.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Required properties:
4242

4343
Example:
4444

45-
clockgen-a@090ff000 {
45+
clockgen-a@90ff000 {
4646
compatible = "st,clkgen-c32";
4747
reg = <0x90ff000 0x1000>;
4848

Documentation/devicetree/bindings/clock/sunxi-ccu.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For the PRCM CCUs on A83T/H3/A64, two more clocks are needed:
3636
- "iosc": the SoC's internal frequency oscillator
3737

3838
Example for generic CCU:
39-
ccu: clock@01c20000 {
39+
ccu: clock@1c20000 {
4040
compatible = "allwinner,sun8i-h3-ccu";
4141
reg = <0x01c20000 0x400>;
4242
clocks = <&osc24M>, <&osc32k>;
@@ -46,7 +46,7 @@ ccu: clock@01c20000 {
4646
};
4747

4848
Example for PRCM CCU:
49-
r_ccu: clock@01f01400 {
49+
r_ccu: clock@1f01400 {
5050
compatible = "allwinner,sun50i-a64-r-ccu";
5151
reg = <0x01f01400 0x100>;
5252
clocks = <&osc24M>, <&osc32k>, <&iosc>, <&ccu CLK_PLL_PERIPH0>;

Documentation/devicetree/bindings/clock/sunxi.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,47 +137,47 @@ the address block, which is related to the overall mmc block.
137137

138138
For example:
139139

140-
osc24M: clk@01c20050 {
140+
osc24M: clk@1c20050 {
141141
#clock-cells = <0>;
142142
compatible = "allwinner,sun4i-a10-osc-clk";
143143
reg = <0x01c20050 0x4>;
144144
clocks = <&osc24M_fixed>;
145145
clock-output-names = "osc24M";
146146
};
147147

148-
pll1: clk@01c20000 {
148+
pll1: clk@1c20000 {
149149
#clock-cells = <0>;
150150
compatible = "allwinner,sun4i-a10-pll1-clk";
151151
reg = <0x01c20000 0x4>;
152152
clocks = <&osc24M>;
153153
clock-output-names = "pll1";
154154
};
155155

156-
pll5: clk@01c20020 {
156+
pll5: clk@1c20020 {
157157
#clock-cells = <1>;
158158
compatible = "allwinner,sun4i-pll5-clk";
159159
reg = <0x01c20020 0x4>;
160160
clocks = <&osc24M>;
161161
clock-output-names = "pll5_ddr", "pll5_other";
162162
};
163163

164-
pll6: clk@01c20028 {
164+
pll6: clk@1c20028 {
165165
#clock-cells = <1>;
166166
compatible = "allwinner,sun6i-a31-pll6-clk";
167167
reg = <0x01c20028 0x4>;
168168
clocks = <&osc24M>;
169169
clock-output-names = "pll6", "pll6x2";
170170
};
171171

172-
cpu: cpu@01c20054 {
172+
cpu: cpu@1c20054 {
173173
#clock-cells = <0>;
174174
compatible = "allwinner,sun4i-a10-cpu-clk";
175175
reg = <0x01c20054 0x4>;
176176
clocks = <&osc32k>, <&osc24M>, <&pll1>;
177177
clock-output-names = "cpu";
178178
};
179179

180-
mmc0_clk: clk@01c20088 {
180+
mmc0_clk: clk@1c20088 {
181181
#clock-cells = <1>;
182182
compatible = "allwinner,sun4i-a10-mmc-clk";
183183
reg = <0x01c20088 0x4>;
@@ -199,7 +199,7 @@ gmac_int_tx_clk: clk@3 {
199199
clock-output-names = "gmac_int_tx";
200200
};
201201

202-
gmac_clk: clk@01c20164 {
202+
gmac_clk: clk@1c20164 {
203203
#clock-cells = <0>;
204204
compatible = "allwinner,sun7i-a20-gmac-clk";
205205
reg = <0x01c20164 0x4>;
@@ -211,7 +211,7 @@ gmac_clk: clk@01c20164 {
211211
clock-output-names = "gmac";
212212
};
213213

214-
mmc_config_clk: clk@01c13000 {
214+
mmc_config_clk: clk@1c13000 {
215215
compatible = "allwinner,sun9i-a80-mmc-config-clk";
216216
reg = <0x01c13000 0x10>;
217217
clocks = <&ahb0_gates 8>;

Documentation/devicetree/bindings/clock/ti,cdce706.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Example:
2525
};
2626
};
2727
...
28-
i2c0: i2c-master@0d090000 {
28+
i2c0: i2c-master@d090000 {
2929
...
3030
cdce706: clock-synth@69 {
3131
compatible = "ti,cdce706";

Documentation/devicetree/bindings/crypto/sun4i-ss.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Optional properties:
1414
- reset-names : must contain "ahb"
1515

1616
Example:
17-
crypto: crypto-engine@01c15000 {
17+
crypto: crypto-engine@1c15000 {
1818
compatible = "allwinner,sun4i-a10-crypto";
1919
reg = <0x01c15000 0x1000>;
2020
interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;

Documentation/devicetree/bindings/display/etnaviv/etnaviv-drm.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Optional properties:
4242

4343
example:
4444

45-
gpu_3d: gpu@00130000 {
45+
gpu_3d: gpu@130000 {
4646
compatible = "vivante,gc";
4747
reg = <0x00130000 0x4000>;
4848
interrupts = <0 9 IRQ_TYPE_LEVEL_HIGH>;

Documentation/devicetree/bindings/display/imx/hdmi.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ Optional properties
3232

3333
Example:
3434

35-
gpr: iomuxc-gpr@020e0000 {
35+
gpr: iomuxc-gpr@20e0000 {
3636
/* ... */
3737
};
3838

39-
hdmi: hdmi@0120000 {
39+
hdmi: hdmi@120000 {
4040
#address-cells = <1>;
4141
#size-cells = <0>;
4242
compatible = "fsl,imx6q-hdmi";

Documentation/devicetree/bindings/display/simple-framebuffer.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ chosen {
7878
stdout-path = "display0";
7979
};
8080

81-
soc@01c00000 {
81+
soc@1c00000 {
8282
lcdc0: lcdc@1c0c000 {
8383
compatible = "allwinner,sun4i-a10-lcdc";
8484
...

Documentation/devicetree/bindings/display/sunxi/sun4i-drm.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ connector {
266266
};
267267
};
268268

269-
hdmi: hdmi@01c16000 {
269+
hdmi: hdmi@1c16000 {
270270
compatible = "allwinner,sun5i-a10s-hdmi";
271271
reg = <0x01c16000 0x1000>;
272272
interrupts = <58>;
@@ -305,7 +305,7 @@ hdmi: hdmi@01c16000 {
305305
};
306306
};
307307

308-
tve0: tv-encoder@01c0a000 {
308+
tve0: tv-encoder@1c0a000 {
309309
compatible = "allwinner,sun4i-a10-tv-encoder";
310310
reg = <0x01c0a000 0x1000>;
311311
clocks = <&ahb_gates 34>;

Documentation/devicetree/bindings/dma/sun4i-dma.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Required properties:
1212
second cell holding the request line number.
1313

1414
Example:
15-
dma: dma-controller@01c02000 {
15+
dma: dma-controller@1c02000 {
1616
compatible = "allwinner,sun4i-a10-dma";
1717
reg = <0x01c02000 0x1000>;
1818
interrupts = <27>;
@@ -32,7 +32,7 @@ The three cells in order are:
3232
3. The port ID as specified in the datasheet
3333

3434
Example:
35-
spi2: spi@01c17000 {
35+
spi2: spi@1c17000 {
3636
compatible = "allwinner,sun4i-a10-spi";
3737
reg = <0x01c17000 0x1000>;
3838
interrupts = <0 12 4>;

Documentation/devicetree/bindings/dma/sun6i-dma.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The two cells in order are:
3838
2. The port ID as specified in the datasheet
3939

4040
Example:
41-
spi2: spi@01c6a000 {
41+
spi2: spi@1c6a000 {
4242
compatible = "allwinner,sun6i-a31-spi";
4343
reg = <0x01c6a000 0x1000>;
4444
interrupts = <0 67 4>;

Documentation/devicetree/bindings/dma/ti-edma.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ mcasp0: mcasp@48038000 {
142142
};
143143

144144
2.
145-
edma1: edma@02728000 {
145+
edma1: edma@2728000 {
146146
compatible = "ti,k2g-edma3-tpcc", "ti,edma3-tpcc";
147147
reg = <0x02728000 0x8000>;
148148
reg-names = "edma3_cc";
@@ -165,13 +165,13 @@ edma1: edma@02728000 {
165165
power-domains = <&k2g_pds 0x4f>;
166166
};
167167

168-
edma1_tptc0: tptc@027b0000 {
168+
edma1_tptc0: tptc@27b0000 {
169169
compatible = "ti,k2g-edma3-tptc", "ti,edma3-tptc";
170170
reg = <0x027b0000 0x400>;
171171
power-domains = <&k2g_pds 0x4f>;
172172
};
173173

174-
edma1_tptc1: tptc@027b8000 {
174+
edma1_tptc1: tptc@27b8000 {
175175
compatible = "ti, k2g-edma3-tptc", "ti,edma3-tptc";
176176
reg = <0x027b8000 0x400>;
177177
power-domains = <&k2g_pds 0x4f>;

Documentation/devicetree/bindings/dma/zxdma.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Controller:
2626
Client:
2727
Use specific request line passing from dmax
2828
For example, spdif0 tx channel request line is 4
29-
spdif0: spdif0@0b004000 {
29+
spdif0: spdif0@b004000 {
3030
#sound-dai-cells = <0>;
3131
compatible = "zte,zx296702-spdif";
3232
reg = <0x0b004000 0x1000>;

Documentation/devicetree/bindings/firmware/nvidia,tegra186-bpmp.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ See ".../sram/sram.txt" for the bindings.
6666

6767
Example:
6868

69-
hsp_top0: hsp@03c00000 {
69+
hsp_top0: hsp@3c00000 {
7070
...
7171
#mbox-cells = <2>;
7272
};

0 commit comments

Comments
 (0)