1 From e96ef422d0095fe9ae39b03c0805a0db8ff7e382 Mon Sep 17 00:00:00 2001
2 From: Jon Mason <jonmason@broadcom.com>
3 Date: Tue, 13 Oct 2015 17:22:25 -0400
4 Subject: [PATCH 50/50] ARM: dts: enable clock support for BCM5301X
6 Replace current device tree dummy clocks with real clock support for
7 Broadcom Northstar SoCs.
9 Signed-off-by: Jon Mason <jonmason@broadcom.com>
11 arch/arm/boot/dts/bcm5301x.dtsi | 88 ++++++++++++++++++++++++++++++++---------
12 1 file changed, 69 insertions(+), 19 deletions(-)
14 --- a/arch/arm/boot/dts/bcm5301x.dtsi
15 +++ b/arch/arm/boot/dts/bcm5301x.dtsi
17 * Licensed under the GNU/GPL. See COPYING for details.
20 +#include <dt-bindings/clock/bcm-nsp.h>
21 #include <dt-bindings/gpio/gpio.h>
22 #include <dt-bindings/input/input.h>
23 #include <dt-bindings/interrupt-controller/irq.h>
27 compatible = "simple-bus";
28 - ranges = <0x00000000 0x19020000 0x00003000>;
29 + ranges = <0x00000000 0x19000000 0x00023000>;
34 + a9pll: arm_clk@00000 {
36 + compatible = "brcm,nsp-armpll";
38 + reg = <0x00000 0x1000>;
42 compatible = "arm,cortex-a9-scu";
43 - reg = <0x0000 0x100>;
44 + reg = <0x20000 0x100>;
49 compatible = "arm,cortex-a9-global-timer";
50 - reg = <0x0200 0x100>;
51 + reg = <0x20200 0x100>;
52 interrupts = <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>;
53 - clocks = <&clk_periph>;
54 + clocks = <&periph_clk>;
59 compatible = "arm,cortex-a9-twd-timer";
60 - reg = <0x0600 0x100>;
61 + reg = <0x20600 0x100>;
62 interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>;
63 - clocks = <&clk_periph>;
64 + clocks = <&periph_clk>;
67 - gic: interrupt-controller@1000 {
68 + gic: interrupt-controller@21000 {
69 compatible = "arm,cortex-a9-gic";
70 #interrupt-cells = <3>;
73 - reg = <0x1000 0x1000>,
75 + reg = <0x21000 0x1000>,
79 - L2: cache-controller@2000 {
80 + L2: cache-controller@22000 {
81 compatible = "arm,pl310-cache";
82 - reg = <0x2000 0x1000>;
83 + reg = <0x22000 0x1000>;
95 - /* As long as we do not have a real clock driver us this
97 - clk_periph: periph {
100 compatible = "fixed-clock";
101 + clock-frequency = <25000000>;
104 + iprocmed: iprocmed {
106 - clock-frequency = <400000000>;
107 + compatible = "fixed-factor-clock";
108 + clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
113 + iprocslow: iprocslow {
114 + #clock-cells = <0>;
115 + compatible = "fixed-factor-clock";
116 + clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>;
121 + periph_clk: periph_clk {
122 + #clock-cells = <0>;
123 + compatible = "fixed-factor-clock";
135 + lcpll0: lcpll0@1800c100 {
136 + #clock-cells = <1>;
137 + compatible = "brcm,nsp-lcpll0";
138 + reg = <0x1800c100 0x14>;
140 + clock-output-names = "lcpll0", "pcie_phy", "sdio",
144 + genpll: genpll@1800c140 {
145 + #clock-cells = <1>;
146 + compatible = "brcm,nsp-genpll";
147 + reg = <0x1800c140 0x24>;
149 + clock-output-names = "genpll", "phy", "ethernetclk",
150 + "usbclk", "iprocfast", "sata1",