Skip to content

Commit dd19c37

Browse files
robherringffainelli
authored andcommitted
arm64: dts: broadcom: stingray: Rework clock nodes
The stringray-clocks.dtsi is oddly included in the middle of a bus node and is only included in one place, so collapse it into stingray.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. Drop the unnecessary 1:1 fixed-factor clock providers. Signed-off-by: Rob Herring (Arm) <robh@kernel.org> Link: https://lore.kernel.org/r/20260106-dt-dtbs-broadcom-fixes-v1-5-ba45874e4553@kernel.org Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>
1 parent ea2b1a4 commit dd19c37

2 files changed

Lines changed: 120 additions & 186 deletions

File tree

arch/arm64/boot/dts/broadcom/stingray/stingray-clock.dtsi

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

arch/arm64/boot/dts/broadcom/stingray/stingray.dtsi

Lines changed: 120 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3131
*/
3232

33+
#include <dt-bindings/clock/bcm-sr.h>
3334
#include <dt-bindings/interrupt-controller/arm-gic.h>
3435

3536
/ {
@@ -159,6 +160,45 @@
159160
reg = <0 0x60401000 0 0x38c>;
160161
};
161162

163+
osc: clock-50000000 {
164+
#clock-cells = <0>;
165+
compatible = "fixed-clock";
166+
clock-frequency = <50000000>;
167+
};
168+
169+
crmu_ref25m: hsls_25m_clk: clock-25000000 {
170+
#clock-cells = <0>;
171+
compatible = "fixed-factor-clock";
172+
clocks = <&osc>;
173+
clock-div = <2>;
174+
clock-mult = <1>;
175+
};
176+
177+
hsls_div2_clk: hsls_div2_clk {
178+
#clock-cells = <0>;
179+
compatible = "fixed-factor-clock";
180+
clocks = <&genpll3 BCM_SR_GENPLL3_HSLS_CLK>;
181+
clock-div = <2>;
182+
clock-mult = <1>;
183+
184+
};
185+
186+
hsls_div4_clk: hsls_div4_clk {
187+
#clock-cells = <0>;
188+
compatible = "fixed-factor-clock";
189+
clocks = <&genpll3 BCM_SR_GENPLL3_HSLS_CLK>;
190+
clock-div = <4>;
191+
clock-mult = <1>;
192+
};
193+
194+
hsls_25m_div2_clk: clock-12500000 {
195+
#clock-cells = <0>;
196+
compatible = "fixed-factor-clock";
197+
clocks = <&hsls_25m_clk>;
198+
clock-div = <2>;
199+
clock-mult = <1>;
200+
};
201+
162202
scr {
163203
compatible = "simple-bus";
164204
#address-cells = <1>;
@@ -269,8 +309,6 @@
269309
#size-cells = <1>;
270310
ranges = <0x0 0x0 0x66400000 0x100000>;
271311

272-
#include "stingray-clock.dtsi"
273-
274312
otp: otp@1c400 {
275313
compatible = "brcm,ocotp-v2";
276314
reg = <0x0001c400 0x68>;
@@ -283,6 +321,84 @@
283321
reg = <0x0001d000 0x400>;
284322
};
285323

324+
lcpll0: clock-controller@1d0c4 {
325+
#clock-cells = <1>;
326+
compatible = "brcm,sr-lcpll0";
327+
reg = <0x0001d0c4 0x3c>,
328+
<0x0001c870 0x4>;
329+
clocks = <&osc>;
330+
clock-output-names = "lcpll0", "clk_sata_refp",
331+
"clk_sata_refn", "clk_sata_350",
332+
"clk_sata_500";
333+
};
334+
335+
genpll0: clock-controller@1d104 {
336+
#clock-cells = <1>;
337+
compatible = "brcm,sr-genpll0";
338+
reg = <0x0001d104 0x32>,
339+
<0x0001c854 0x4>;
340+
clocks = <&osc>;
341+
clock-output-names = "genpll0", "clk_125m", "clk_scr",
342+
"clk_250", "clk_pcie_axi",
343+
"clk_paxc_axi_x2",
344+
"clk_paxc_axi";
345+
};
346+
347+
lcpll1: clock-controller@1d138 {
348+
#clock-cells = <1>;
349+
compatible = "brcm,sr-lcpll1";
350+
reg = <0x0001d138 0x3c>,
351+
<0x0001c870 0x4>;
352+
clocks = <&osc>;
353+
clock-output-names = "lcpll1", "clk_wan",
354+
"clk_usb_ref",
355+
"clk_crmu_ts";
356+
};
357+
358+
genpll2: clock-controller@1d1ac {
359+
#clock-cells = <1>;
360+
compatible = "brcm,sr-genpll2";
361+
reg = <0x0001d1ac 0x32>,
362+
<0x0001c854 0x4>;
363+
clocks = <&osc>;
364+
clock-output-names = "genpll2", "clk_nic",
365+
"clk_ts_500_ref", "clk_125_nitro",
366+
"clk_chimp", "clk_nic_flash",
367+
"clk_fs";
368+
};
369+
370+
genpll3: clock-controller@1d1e0 {
371+
#clock-cells = <1>;
372+
compatible = "brcm,sr-genpll3";
373+
reg = <0x0001d1e0 0x32>,
374+
<0x0001c854 0x4>;
375+
clocks = <&osc>;
376+
clock-output-names = "genpll3", "clk_hsls",
377+
"clk_sdio";
378+
};
379+
380+
genpll4: clock-controller@1d214 {
381+
#clock-cells = <1>;
382+
compatible = "brcm,sr-genpll4";
383+
reg = <0x0001d214 0x32>,
384+
<0x0001c854 0x4>;
385+
clocks = <&osc>;
386+
clock-output-names = "genpll4", "clk_ccn",
387+
"clk_tpiu_pll", "clk_noc",
388+
"clk_chclk_fs4",
389+
"clk_bridge_fscpu";
390+
};
391+
392+
genpll5: clock-controller@1d248 {
393+
#clock-cells = <1>;
394+
compatible = "brcm,sr-genpll5";
395+
reg = <0x0001d248 0x32>,
396+
<0x0001c870 0x4>;
397+
clocks = <&osc>;
398+
clock-output-names = "genpll5", "clk_fs4_hf",
399+
"clk_crypto_ae", "clk_raid_ae";
400+
};
401+
286402
gpio_crmu: gpio@24800 {
287403
compatible = "brcm,iproc-gpio";
288404
reg = <0x00024800 0x4c>;
@@ -593,7 +709,7 @@
593709
reg = <0x003f1000 0x100>;
594710
interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>;
595711
bus-width = <8>;
596-
clocks = <&sdio0_clk>;
712+
clocks = <&genpll3 BCM_SR_GENPLL3_SDIO_CLK>;
597713
iommus = <&smmu 0x6002 0x0000>;
598714
status = "disabled";
599715
};
@@ -603,7 +719,7 @@
603719
reg = <0x003f2000 0x100>;
604720
interrupts = <GIC_SPI 205 IRQ_TYPE_LEVEL_HIGH>;
605721
bus-width = <8>;
606-
clocks = <&sdio1_clk>;
722+
clocks = <&genpll3 BCM_SR_GENPLL3_SDIO_CLK>;
607723
iommus = <&smmu 0x6003 0x0000>;
608724
status = "disabled";
609725
};

0 commit comments

Comments
 (0)