Skip to content

Commit 407940f

Browse files
robherringffainelli
authored andcommitted
arm64: dts: broadcom: northstar2: Rework clock nodes
The nd2-clocks.dtsi is oddly included in the middle of a bus node and is only included in one place, so collapse it into ns2.dtsi. Move the fixed and fixed-factor clock nodes to the root as they are not part of the bus. Rename the node names to use preferred names. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20260106-dt-dtbs-broadcom-fixes-v1-10-ba45874e4553@kernel.org Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
1 parent b871ac8 commit 407940f

2 files changed

Lines changed: 71 additions & 107 deletions

File tree

arch/arm64/boot/dts/broadcom/northstar2/ns2-clock.dtsi

Lines changed: 0 additions & 105 deletions
This file was deleted.

arch/arm64/boot/dts/broadcom/northstar2/ns2.dtsi

Lines changed: 71 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,28 @@
113113
<&A57_3>;
114114
};
115115

116+
osc: clock-25000000 {
117+
#clock-cells = <0>;
118+
compatible = "fixed-clock";
119+
clock-frequency = <25000000>;
120+
};
121+
122+
iprocmed: iprocmed {
123+
#clock-cells = <0>;
124+
compatible = "fixed-factor-clock";
125+
clocks = <&genpll_scr BCM_NS2_GENPLL_SCR_SCR_CLK>;
126+
clock-div = <2>;
127+
clock-mult = <1>;
128+
};
129+
130+
iprocslow: iprocslow {
131+
#clock-cells = <0>;
132+
compatible = "fixed-factor-clock";
133+
clocks = <&genpll_scr BCM_NS2_GENPLL_SCR_SCR_CLK>;
134+
clock-div = <4>;
135+
clock-mult = <1>;
136+
};
137+
116138
pcie0: pcie@20020000 {
117139
compatible = "brcm,iproc-pcie";
118140
reg = <0 0x20020000 0 0x1000>;
@@ -197,8 +219,6 @@
197219
#size-cells = <1>;
198220
ranges = <0 0 0 0xffffffff>;
199221

200-
#include "ns2-clock.dtsi"
201-
202222
enet: ethernet@61000000 {
203223
compatible = "brcm,ns2-amac";
204224
reg = <0x61000000 0x1000>,
@@ -334,6 +354,55 @@
334354
#iommu-cells = <1>;
335355
};
336356

357+
lcpll_ddr: clock-controller@6501d058 {
358+
#clock-cells = <1>;
359+
compatible = "brcm,ns2-lcpll-ddr";
360+
reg = <0x6501d058 0x20>,
361+
<0x6501c020 0x4>,
362+
<0x6501d04c 0x4>;
363+
clocks = <&osc>;
364+
clock-output-names = "lcpll_ddr", "pcie_sata_usb",
365+
"ddr", "ddr_ch2_unused",
366+
"ddr_ch3_unused", "ddr_ch4_unused",
367+
"ddr_ch5_unused";
368+
};
369+
370+
lcpll_ports: clock-controller@6501d078 {
371+
#clock-cells = <1>;
372+
compatible = "brcm,ns2-lcpll-ports";
373+
reg = <0x6501d078 0x20>,
374+
<0x6501c020 0x4>,
375+
<0x6501d054 0x4>;
376+
clocks = <&osc>;
377+
clock-output-names = "lcpll_ports", "wan", "rgmii",
378+
"ports_ch2_unused",
379+
"ports_ch3_unused",
380+
"ports_ch4_unused",
381+
"ports_ch5_unused";
382+
};
383+
384+
genpll_scr: clock-controller@6501d098 {
385+
#clock-cells = <1>;
386+
compatible = "brcm,ns2-genpll-scr";
387+
reg = <0x6501d098 0x32>,
388+
<0x6501c020 0x4>,
389+
<0x6501d044 0x4>;
390+
clocks = <&osc>;
391+
clock-output-names = "genpll_scr", "scr", "fs",
392+
"audio_ref", "scr_ch3_unused",
393+
"scr_ch4_unused", "scr_ch5_unused";
394+
};
395+
396+
genpll_sw: clock-controller@6501d0c4 {
397+
#clock-cells = <1>;
398+
compatible = "brcm,ns2-genpll-sw";
399+
reg = <0x6501d0c4 0x32>,
400+
<0x6501c020 0x4>,
401+
<0x6501d044 0x4>;
402+
clocks = <&osc>;
403+
clock-output-names = "genpll_sw", "rpe", "250", "nic",
404+
"chimp", "port", "sdio";
405+
};
337406
pinctrl: pinctrl@6501d130 {
338407
compatible = "brcm,ns2-pinmux";
339408
reg = <0x6501d130 0x08>,

0 commit comments

Comments
 (0)