Skip to content

Commit 357513c

Browse files
rabaraDinh Nguyen
authored andcommitted
arm64: dts: altera: socfpga_stratix10: move clocks out of soc node
The clocks are not part of the SoC but provided on the board (external oscillators). Moving them out of soc node. Signed-off-by: Niravkumar L Rabara <[email protected]> Signed-off-by: Dinh Nguyen <[email protected]>
1 parent 2b59af8 commit 357513c

File tree

3 files changed

+36
-40
lines changed

3 files changed

+36
-40
lines changed

arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,34 @@
9797
<0x0 0xfffc6000 0x0 0x2000>;
9898
};
9999

100+
clocks {
101+
cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk {
102+
#clock-cells = <0>;
103+
compatible = "fixed-clock";
104+
};
105+
106+
cb_intosc_ls_clk: cb-intosc-ls-clk {
107+
#clock-cells = <0>;
108+
compatible = "fixed-clock";
109+
};
110+
111+
f2s_free_clk: f2s-free-clk {
112+
#clock-cells = <0>;
113+
compatible = "fixed-clock";
114+
};
115+
116+
osc1: osc1 {
117+
#clock-cells = <0>;
118+
compatible = "fixed-clock";
119+
};
120+
121+
qspi_clk: qspi-clk {
122+
#clock-cells = <0>;
123+
compatible = "fixed-clock";
124+
clock-frequency = <200000000>;
125+
};
126+
};
127+
100128
soc {
101129
#address-cells = <1>;
102130
#size-cells = <1>;
@@ -119,34 +147,6 @@
119147
#clock-cells = <1>;
120148
};
121149

122-
clocks {
123-
cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk {
124-
#clock-cells = <0>;
125-
compatible = "fixed-clock";
126-
};
127-
128-
cb_intosc_ls_clk: cb-intosc-ls-clk {
129-
#clock-cells = <0>;
130-
compatible = "fixed-clock";
131-
};
132-
133-
f2s_free_clk: f2s-free-clk {
134-
#clock-cells = <0>;
135-
compatible = "fixed-clock";
136-
};
137-
138-
osc1: osc1 {
139-
#clock-cells = <0>;
140-
compatible = "fixed-clock";
141-
};
142-
143-
qspi_clk: qspi-clk {
144-
#clock-cells = <0>;
145-
compatible = "fixed-clock";
146-
clock-frequency = <200000000>;
147-
};
148-
};
149-
150150
gmac0: ethernet@ff800000 {
151151
compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
152152
reg = <0xff800000 0x2000>;

arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@
5252
};
5353

5454
soc {
55-
clocks {
56-
osc1 {
57-
clock-frequency = <25000000>;
58-
};
59-
};
60-
6155
eccmgr {
6256
sdmmca-ecc@ff8c8c00 {
6357
compatible = "altr,socfpga-s10-sdmmc-ecc",
@@ -113,6 +107,10 @@
113107
bus-width = <4>;
114108
};
115109

110+
&osc1 {
111+
clock-frequency = <25000000>;
112+
};
113+
116114
&uart0 {
117115
status = "okay";
118116
};

arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,6 @@
5252
};
5353

5454
soc {
55-
clocks {
56-
osc1 {
57-
clock-frequency = <25000000>;
58-
};
59-
};
60-
6155
eccmgr {
6256
sdmmca-ecc@ff8c8c00 {
6357
compatible = "altr,socfpga-s10-sdmmc-ecc",
@@ -126,6 +120,10 @@
126120
};
127121
};
128122

123+
&osc1 {
124+
clock-frequency = <25000000>;
125+
};
126+
129127
&uart0 {
130128
status = "okay";
131129
};

0 commit comments

Comments
 (0)