Skip to content

Commit 849bfc3

Browse files
Andre-ARMsudeep-holla
authored andcommitted
arm64: dts: fvp: Move fixed devices out of bus node
The devicetree compiler complains when DT nodes without a reg property live inside a (simple) bus node: Warning (simple_bus_reg): Node /bus@8000000/motherboard-bus/v2m_refclk32khz missing or empty reg/ranges property Move the fixed clocks, the fixed regulator, and the config bus subtree to the root node, since they do not depend on any busses. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Andre Przywara <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent bb5cce1 commit 849bfc3

File tree

1 file changed

+68
-68
lines changed

1 file changed

+68
-68
lines changed

arch/arm64/boot/dts/arm/rtsm_ve-motherboard.dtsi

Lines changed: 68 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,74 @@
88
* VEMotherBoard.lisa
99
*/
1010
/ {
11+
v2m_clk24mhz: clk24mhz {
12+
compatible = "fixed-clock";
13+
#clock-cells = <0>;
14+
clock-frequency = <24000000>;
15+
clock-output-names = "v2m:clk24mhz";
16+
};
17+
18+
v2m_refclk1mhz: refclk1mhz {
19+
compatible = "fixed-clock";
20+
#clock-cells = <0>;
21+
clock-frequency = <1000000>;
22+
clock-output-names = "v2m:refclk1mhz";
23+
};
24+
25+
v2m_refclk32khz: refclk32khz {
26+
compatible = "fixed-clock";
27+
#clock-cells = <0>;
28+
clock-frequency = <32768>;
29+
clock-output-names = "v2m:refclk32khz";
30+
};
31+
32+
v2m_fixed_3v3: v2m-3v3 {
33+
compatible = "regulator-fixed";
34+
regulator-name = "3V3";
35+
regulator-min-microvolt = <3300000>;
36+
regulator-max-microvolt = <3300000>;
37+
regulator-always-on;
38+
};
39+
40+
mcc {
41+
compatible = "arm,vexpress,config-bus";
42+
arm,vexpress,config-bridge = <&v2m_sysreg>;
43+
44+
v2m_oscclk1: oscclk1 {
45+
/* CLCD clock */
46+
compatible = "arm,vexpress-osc";
47+
arm,vexpress-sysreg,func = <1 1>;
48+
freq-range = <23750000 63500000>;
49+
#clock-cells = <0>;
50+
clock-output-names = "v2m:oscclk1";
51+
};
52+
53+
reset {
54+
compatible = "arm,vexpress-reset";
55+
arm,vexpress-sysreg,func = <5 0>;
56+
};
57+
58+
muxfpga {
59+
compatible = "arm,vexpress-muxfpga";
60+
arm,vexpress-sysreg,func = <7 0>;
61+
};
62+
63+
shutdown {
64+
compatible = "arm,vexpress-shutdown";
65+
arm,vexpress-sysreg,func = <8 0>;
66+
};
67+
68+
reboot {
69+
compatible = "arm,vexpress-reboot";
70+
arm,vexpress-sysreg,func = <9 0>;
71+
};
72+
73+
dvimode {
74+
compatible = "arm,vexpress-dvimode";
75+
arm,vexpress-sysreg,func = <11 0>;
76+
};
77+
};
78+
1179
bus@8000000 {
1280
motherboard {
1381
arm,v2m-memory-map = "rs1";
@@ -30,27 +98,6 @@
3098
interrupts = <15>;
3199
};
32100

33-
v2m_clk24mhz: clk24mhz {
34-
compatible = "fixed-clock";
35-
#clock-cells = <0>;
36-
clock-frequency = <24000000>;
37-
clock-output-names = "v2m:clk24mhz";
38-
};
39-
40-
v2m_refclk1mhz: refclk1mhz {
41-
compatible = "fixed-clock";
42-
#clock-cells = <0>;
43-
clock-frequency = <1000000>;
44-
clock-output-names = "v2m:refclk1mhz";
45-
};
46-
47-
v2m_refclk32khz: refclk32khz {
48-
compatible = "fixed-clock";
49-
#clock-cells = <0>;
50-
clock-frequency = <32768>;
51-
clock-output-names = "v2m:refclk32khz";
52-
};
53-
54101
iofpga@300000000 {
55102
compatible = "simple-bus";
56103
#address-cells = <1>;
@@ -198,53 +245,6 @@
198245
};
199246
};
200247
};
201-
202-
v2m_fixed_3v3: v2m-3v3 {
203-
compatible = "regulator-fixed";
204-
regulator-name = "3V3";
205-
regulator-min-microvolt = <3300000>;
206-
regulator-max-microvolt = <3300000>;
207-
regulator-always-on;
208-
};
209-
210-
mcc {
211-
compatible = "arm,vexpress,config-bus";
212-
arm,vexpress,config-bridge = <&v2m_sysreg>;
213-
214-
v2m_oscclk1: oscclk1 {
215-
/* CLCD clock */
216-
compatible = "arm,vexpress-osc";
217-
arm,vexpress-sysreg,func = <1 1>;
218-
freq-range = <23750000 63500000>;
219-
#clock-cells = <0>;
220-
clock-output-names = "v2m:oscclk1";
221-
};
222-
223-
reset {
224-
compatible = "arm,vexpress-reset";
225-
arm,vexpress-sysreg,func = <5 0>;
226-
};
227-
228-
muxfpga {
229-
compatible = "arm,vexpress-muxfpga";
230-
arm,vexpress-sysreg,func = <7 0>;
231-
};
232-
233-
shutdown {
234-
compatible = "arm,vexpress-shutdown";
235-
arm,vexpress-sysreg,func = <8 0>;
236-
};
237-
238-
reboot {
239-
compatible = "arm,vexpress-reboot";
240-
arm,vexpress-sysreg,func = <9 0>;
241-
};
242-
243-
dvimode {
244-
compatible = "arm,vexpress-dvimode";
245-
arm,vexpress-sysreg,func = <11 0>;
246-
};
247-
};
248248
};
249249
};
250250
};

0 commit comments

Comments
 (0)