Skip to content

Commit

Permalink
arm64: dts: altera: socfpga_stratix10: move clocks out of soc node
Browse files Browse the repository at this point in the history
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 <niravkumar.l.rabara@intel.com>
Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
  • Loading branch information
Niravkumar L Rabara authored and Dinh Nguyen committed Jun 24, 2022
1 parent 2b59af8 commit 357513c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 40 deletions.
56 changes: 28 additions & 28 deletions arch/arm64/boot/dts/altera/socfpga_stratix10.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,34 @@
<0x0 0xfffc6000 0x0 0x2000>;
};

clocks {
cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
};

cb_intosc_ls_clk: cb-intosc-ls-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
};

f2s_free_clk: f2s-free-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
};

osc1: osc1 {
#clock-cells = <0>;
compatible = "fixed-clock";
};

qspi_clk: qspi-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <200000000>;
};
};

soc {
#address-cells = <1>;
#size-cells = <1>;
Expand All @@ -119,34 +147,6 @@
#clock-cells = <1>;
};

clocks {
cb_intosc_hs_div2_clk: cb-intosc-hs-div2-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
};

cb_intosc_ls_clk: cb-intosc-ls-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
};

f2s_free_clk: f2s-free-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
};

osc1: osc1 {
#clock-cells = <0>;
compatible = "fixed-clock";
};

qspi_clk: qspi-clk {
#clock-cells = <0>;
compatible = "fixed-clock";
clock-frequency = <200000000>;
};
};

gmac0: ethernet@ff800000 {
compatible = "altr,socfpga-stmmac-a10-s10", "snps,dwmac-3.74a", "snps,dwmac";
reg = <0xff800000 0x2000>;
Expand Down
10 changes: 4 additions & 6 deletions arch/arm64/boot/dts/altera/socfpga_stratix10_socdk.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@
};

soc {
clocks {
osc1 {
clock-frequency = <25000000>;
};
};

eccmgr {
sdmmca-ecc@ff8c8c00 {
compatible = "altr,socfpga-s10-sdmmc-ecc",
Expand Down Expand Up @@ -113,6 +107,10 @@
bus-width = <4>;
};

&osc1 {
clock-frequency = <25000000>;
};

&uart0 {
status = "okay";
};
Expand Down
10 changes: 4 additions & 6 deletions arch/arm64/boot/dts/altera/socfpga_stratix10_socdk_nand.dts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@
};

soc {
clocks {
osc1 {
clock-frequency = <25000000>;
};
};

eccmgr {
sdmmca-ecc@ff8c8c00 {
compatible = "altr,socfpga-s10-sdmmc-ecc",
Expand Down Expand Up @@ -126,6 +120,10 @@
};
};

&osc1 {
clock-frequency = <25000000>;
};

&uart0 {
status = "okay";
};
Expand Down

0 comments on commit 357513c

Please sign in to comment.