Skip to content

Commit 51a21e0

Browse files
committed
dt-bindings: Fix dtc warnings in examples
Fix all the warnings in the DT binding schema examples when built with 'W=1'. This is in preparation to make that the default for examples. Reviewed-by: Linus Walleij <[email protected]> Acked-by: Stephen Boyd <[email protected]> Acked-by: Sam Ravnborg <[email protected]> Acked-by: Vinod Koul <[email protected]> Acked-by: Lee Jones <[email protected]> Acked-by: Srinivas Kandagatla <[email protected]> Acked-by: Mark Brown <[email protected]> Acked-by: Bartosz Golaszewski <[email protected]> Cc: Daniel Lezcano <[email protected]> Cc: Kishon Vijay Abraham I <[email protected]> Cc: Ulf Hansson <[email protected]> Cc: Dmitry Torokhov <[email protected]> Cc: Krzysztof Kozlowski <[email protected]> Cc: Kukjin Kim <[email protected]> Cc: Jonathan Cameron <[email protected]> Cc: Thierry Reding <[email protected]> Cc: Chen-Yu Tsai <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Alexandre Torgue <[email protected]> Cc: Maxime Coquelin <[email protected]> Signed-off-by: Rob Herring <[email protected]>
1 parent a40df28 commit 51a21e0

22 files changed

+39
-58
lines changed

Documentation/devicetree/bindings/arm/stm32/st,mlahb.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ required:
5252

5353
examples:
5454
- |
55-
mlahb: ahb {
55+
mlahb: ahb@38000000 {
5656
compatible = "st,mlahb", "simple-bus";
5757
#address-cells = <1>;
5858
#size-cells = <1>;

Documentation/devicetree/bindings/clock/allwinner,sun4i-a10-osc-clk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ additionalProperties: false
4040

4141
examples:
4242
- |
43-
osc24M: clk@01c20050 {
43+
osc24M: clk@1c20050 {
4444
#clock-cells = <0>;
4545
compatible = "allwinner,sun4i-a10-osc-clk";
4646
reg = <0x01c20050 0x4>;

Documentation/devicetree/bindings/clock/allwinner,sun9i-a80-gt-clk.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ additionalProperties: false
4141

4242
examples:
4343
- |
44-
clk@0600005c {
44+
clk@600005c {
4545
#clock-cells = <0>;
4646
compatible = "allwinner,sun9i-a80-gt-clk";
4747
reg = <0x0600005c 0x4>;

Documentation/devicetree/bindings/display/allwinner,sun4i-a10-tv-encoder.yaml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,7 @@ examples:
4949
resets = <&tcon_ch0_clk 0>;
5050
5151
port {
52-
#address-cells = <1>;
53-
#size-cells = <0>;
54-
55-
tve0_in_tcon0: endpoint@0 {
56-
reg = <0>;
52+
tve0_in_tcon0: endpoint {
5753
remote-endpoint = <&tcon0_out_tve0>;
5854
};
5955
};

Documentation/devicetree/bindings/display/bridge/anx6345.yaml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,15 @@ examples:
7979
#size-cells = <0>;
8080
8181
anx6345_in: port@0 {
82-
#address-cells = <1>;
83-
#size-cells = <0>;
8482
reg = <0>;
85-
anx6345_in_tcon0: endpoint@0 {
86-
reg = <0>;
83+
anx6345_in_tcon0: endpoint {
8784
remote-endpoint = <&tcon0_out_anx6345>;
8885
};
8986
};
9087
9188
anx6345_out: port@1 {
92-
#address-cells = <1>;
93-
#size-cells = <0>;
9489
reg = <1>;
95-
anx6345_out_panel: endpoint@0 {
96-
reg = <0>;
90+
anx6345_out_panel: endpoint {
9791
remote-endpoint = <&panel_in_edp>;
9892
};
9993
};

Documentation/devicetree/bindings/display/panel/leadtek,ltk500hd1829.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ examples:
3737
dsi@ff450000 {
3838
#address-cells = <1>;
3939
#size-cells = <0>;
40+
reg = <0xff450000 0x1000>;
41+
4042
panel@0 {
4143
compatible = "leadtek,ltk500hd1829";
4244
reg = <0>;

Documentation/devicetree/bindings/display/panel/xinpeng,xpp055c272.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ examples:
3737
dsi@ff450000 {
3838
#address-cells = <1>;
3939
#size-cells = <0>;
40+
reg = <0xff450000 0x1000>;
41+
4042
panel@0 {
4143
compatible = "xinpeng,xpp055c272";
4244
reg = <0>;

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,6 @@ examples:
174174
};
175175
};
176176
177-
soc@1c00000 {
178-
lcdc0: lcdc@1c0c000 {
179-
compatible = "allwinner,sun4i-a10-lcdc";
180-
};
181-
};
177+
lcdc0: lcdc { };
182178
183179
...

Documentation/devicetree/bindings/dma/ti/k3-udma.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ examples:
143143
#size-cells = <2>;
144144
dma-coherent;
145145
dma-ranges;
146-
ranges;
146+
ranges = <0x0 0x30800000 0x0 0x30800000 0x0 0x05000000>;
147147
148148
ti,sci-dev-id = <118>;
149149
@@ -169,16 +169,4 @@ examples:
169169
ti,sci-rm-range-rflow = <0x6>; /* GP RFLOW */
170170
};
171171
};
172-
173-
mcasp0: mcasp@02B00000 {
174-
dmas = <&main_udmap 0xc400>, <&main_udmap 0x4400>;
175-
dma-names = "tx", "rx";
176-
};
177-
178-
crypto: crypto@4E00000 {
179-
compatible = "ti,sa2ul-crypto";
180-
181-
dmas = <&main_udmap 0xc000>, <&main_udmap 0x4000>, <&main_udmap 0x4001>;
182-
dma-names = "tx", "rx1", "rx2";
183-
};
184172
};

Documentation/devicetree/bindings/gpu/arm,mali-bifrost.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,31 +84,31 @@ examples:
8484
gpu_opp_table: opp_table0 {
8585
compatible = "operating-points-v2";
8686
87-
opp@533000000 {
87+
opp-533000000 {
8888
opp-hz = /bits/ 64 <533000000>;
8989
opp-microvolt = <1250000>;
9090
};
91-
opp@450000000 {
91+
opp-450000000 {
9292
opp-hz = /bits/ 64 <450000000>;
9393
opp-microvolt = <1150000>;
9494
};
95-
opp@400000000 {
95+
opp-400000000 {
9696
opp-hz = /bits/ 64 <400000000>;
9797
opp-microvolt = <1125000>;
9898
};
99-
opp@350000000 {
99+
opp-350000000 {
100100
opp-hz = /bits/ 64 <350000000>;
101101
opp-microvolt = <1075000>;
102102
};
103-
opp@266000000 {
103+
opp-266000000 {
104104
opp-hz = /bits/ 64 <266000000>;
105105
opp-microvolt = <1025000>;
106106
};
107-
opp@160000000 {
107+
opp-160000000 {
108108
opp-hz = /bits/ 64 <160000000>;
109109
opp-microvolt = <925000>;
110110
};
111-
opp@100000000 {
111+
opp-100000000 {
112112
opp-hz = /bits/ 64 <100000000>;
113113
opp-microvolt = <912500>;
114114
};

0 commit comments

Comments
 (0)