xref: /freebsd-src/sys/contrib/device-tree/src/arm/broadcom/bcm7445.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0
2*f126890aSEmmanuel Vadot#include <dt-bindings/interrupt-controller/arm-gic.h>
3*f126890aSEmmanuel Vadot
4*f126890aSEmmanuel Vadot/ {
5*f126890aSEmmanuel Vadot	#address-cells = <2>;
6*f126890aSEmmanuel Vadot	#size-cells = <2>;
7*f126890aSEmmanuel Vadot	model = "Broadcom STB (bcm7445)";
8*f126890aSEmmanuel Vadot	compatible = "brcm,bcm7445", "brcm,brcmstb";
9*f126890aSEmmanuel Vadot	interrupt-parent = <&gic>;
10*f126890aSEmmanuel Vadot
11*f126890aSEmmanuel Vadot	chosen {
12*f126890aSEmmanuel Vadot		bootargs = "console=ttyS0,115200 earlyprintk";
13*f126890aSEmmanuel Vadot	};
14*f126890aSEmmanuel Vadot
15*f126890aSEmmanuel Vadot	cpus {
16*f126890aSEmmanuel Vadot		#address-cells = <1>;
17*f126890aSEmmanuel Vadot		#size-cells = <0>;
18*f126890aSEmmanuel Vadot
19*f126890aSEmmanuel Vadot		cpu@0 {
20*f126890aSEmmanuel Vadot			compatible = "brcm,brahma-b15";
21*f126890aSEmmanuel Vadot			device_type = "cpu";
22*f126890aSEmmanuel Vadot			enable-method = "brcm,brahma-b15";
23*f126890aSEmmanuel Vadot			reg = <0>;
24*f126890aSEmmanuel Vadot		};
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot		cpu@1 {
27*f126890aSEmmanuel Vadot			compatible = "brcm,brahma-b15";
28*f126890aSEmmanuel Vadot			device_type = "cpu";
29*f126890aSEmmanuel Vadot			enable-method = "brcm,brahma-b15";
30*f126890aSEmmanuel Vadot			reg = <1>;
31*f126890aSEmmanuel Vadot		};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot		cpu@2 {
34*f126890aSEmmanuel Vadot			compatible = "brcm,brahma-b15";
35*f126890aSEmmanuel Vadot			device_type = "cpu";
36*f126890aSEmmanuel Vadot			enable-method = "brcm,brahma-b15";
37*f126890aSEmmanuel Vadot			reg = <2>;
38*f126890aSEmmanuel Vadot		};
39*f126890aSEmmanuel Vadot
40*f126890aSEmmanuel Vadot		cpu@3 {
41*f126890aSEmmanuel Vadot			compatible = "brcm,brahma-b15";
42*f126890aSEmmanuel Vadot			device_type = "cpu";
43*f126890aSEmmanuel Vadot			enable-method = "brcm,brahma-b15";
44*f126890aSEmmanuel Vadot			reg = <3>;
45*f126890aSEmmanuel Vadot		};
46*f126890aSEmmanuel Vadot	};
47*f126890aSEmmanuel Vadot
48*f126890aSEmmanuel Vadot	gic: interrupt-controller@ffd00000 {
49*f126890aSEmmanuel Vadot		compatible = "brcm,brahma-b15-gic", "arm,cortex-a15-gic";
50*f126890aSEmmanuel Vadot		reg = <0x00 0xffd01000 0x00 0x1000>,
51*f126890aSEmmanuel Vadot		      <0x00 0xffd02000 0x00 0x2000>,
52*f126890aSEmmanuel Vadot		      <0x00 0xffd04000 0x00 0x2000>,
53*f126890aSEmmanuel Vadot		      <0x00 0xffd06000 0x00 0x2000>;
54*f126890aSEmmanuel Vadot		interrupt-controller;
55*f126890aSEmmanuel Vadot		#interrupt-cells = <3>;
56*f126890aSEmmanuel Vadot	};
57*f126890aSEmmanuel Vadot
58*f126890aSEmmanuel Vadot	timer {
59*f126890aSEmmanuel Vadot		compatible = "arm,armv7-timer";
60*f126890aSEmmanuel Vadot		interrupts = <GIC_PPI 13 (GIC_CPU_MASK_RAW(15) | IRQ_TYPE_LEVEL_LOW)>,
61*f126890aSEmmanuel Vadot			     <GIC_PPI 14 (GIC_CPU_MASK_RAW(15) | IRQ_TYPE_LEVEL_LOW)>,
62*f126890aSEmmanuel Vadot			     <GIC_PPI 11 (GIC_CPU_MASK_RAW(15) | IRQ_TYPE_LEVEL_LOW)>,
63*f126890aSEmmanuel Vadot			     <GIC_PPI 10 (GIC_CPU_MASK_RAW(15) | IRQ_TYPE_LEVEL_LOW)>;
64*f126890aSEmmanuel Vadot	};
65*f126890aSEmmanuel Vadot
66*f126890aSEmmanuel Vadot	rdb@f0000000 {
67*f126890aSEmmanuel Vadot		#address-cells = <1>;
68*f126890aSEmmanuel Vadot		#size-cells = <1>;
69*f126890aSEmmanuel Vadot		compatible = "simple-bus";
70*f126890aSEmmanuel Vadot		ranges = <0 0x00 0xf0000000 0x1000000>;
71*f126890aSEmmanuel Vadot
72*f126890aSEmmanuel Vadot		serial@40ab00 {
73*f126890aSEmmanuel Vadot			compatible = "ns16550a";
74*f126890aSEmmanuel Vadot			reg = <0x40ab00 0x20>;
75*f126890aSEmmanuel Vadot			reg-shift = <2>;
76*f126890aSEmmanuel Vadot			reg-io-width = <4>;
77*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>;
78*f126890aSEmmanuel Vadot			clock-frequency = <81000000>;
79*f126890aSEmmanuel Vadot		};
80*f126890aSEmmanuel Vadot
81*f126890aSEmmanuel Vadot		sun_top_ctrl: syscon@404000 {
82*f126890aSEmmanuel Vadot			compatible = "brcm,bcm7445-sun-top-ctrl",
83*f126890aSEmmanuel Vadot				     "syscon";
84*f126890aSEmmanuel Vadot			reg = <0x404000 0x51c>;
85*f126890aSEmmanuel Vadot		};
86*f126890aSEmmanuel Vadot
87*f126890aSEmmanuel Vadot		hif_cpubiuctrl: syscon@3e2400 {
88*f126890aSEmmanuel Vadot			compatible = "brcm,bcm7445-hif-cpubiuctrl",
89*f126890aSEmmanuel Vadot				     "syscon";
90*f126890aSEmmanuel Vadot			reg = <0x3e2400 0x5b4>;
91*f126890aSEmmanuel Vadot		};
92*f126890aSEmmanuel Vadot
93*f126890aSEmmanuel Vadot		hif_continuation: syscon@452000 {
94*f126890aSEmmanuel Vadot			compatible = "brcm,bcm7445-hif-continuation",
95*f126890aSEmmanuel Vadot				     "syscon";
96*f126890aSEmmanuel Vadot			reg = <0x452000 0x100>;
97*f126890aSEmmanuel Vadot		};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot		irq0_intc: interrupt-controller@40a780 {
100*f126890aSEmmanuel Vadot			compatible = "brcm,bcm7120-l2-intc";
101*f126890aSEmmanuel Vadot			interrupt-parent = <&gic>;
102*f126890aSEmmanuel Vadot			#interrupt-cells = <1>;
103*f126890aSEmmanuel Vadot			reg = <0x40a780 0x8>;
104*f126890aSEmmanuel Vadot			interrupt-controller;
105*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 0x45 0x0>,
106*f126890aSEmmanuel Vadot				     <GIC_SPI 0x43 0x0>;
107*f126890aSEmmanuel Vadot			brcm,int-map-mask = <0x25c>, <0x7000000>;
108*f126890aSEmmanuel Vadot			brcm,int-fwd-mask = <0x70000>;
109*f126890aSEmmanuel Vadot		};
110*f126890aSEmmanuel Vadot
111*f126890aSEmmanuel Vadot		irq0_aon_intc: interrupt-controller@417280 {
112*f126890aSEmmanuel Vadot			compatible = "brcm,bcm7120-l2-intc";
113*f126890aSEmmanuel Vadot			reg = <0x417280 0x8>;
114*f126890aSEmmanuel Vadot			interrupt-parent = <&gic>;
115*f126890aSEmmanuel Vadot			#interrupt-cells = <1>;
116*f126890aSEmmanuel Vadot			interrupt-controller;
117*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 0x46 0x0>,
118*f126890aSEmmanuel Vadot				     <GIC_SPI 0x44 0x0>,
119*f126890aSEmmanuel Vadot				     <GIC_SPI 0x49 0x0>;
120*f126890aSEmmanuel Vadot			brcm,int-map-mask = <0x1e3 0x18000000 0x100000>;
121*f126890aSEmmanuel Vadot			brcm,int-fwd-mask = <0x0>;
122*f126890aSEmmanuel Vadot			brcm,irq-can-wake;
123*f126890aSEmmanuel Vadot		};
124*f126890aSEmmanuel Vadot
125*f126890aSEmmanuel Vadot		hif_intr2_intc: interrupt-controller@3e1000 {
126*f126890aSEmmanuel Vadot			compatible = "brcm,l2-intc";
127*f126890aSEmmanuel Vadot			reg = <0x3e1000 0x30>;
128*f126890aSEmmanuel Vadot			interrupt-controller;
129*f126890aSEmmanuel Vadot			#interrupt-cells = <1>;
130*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 0x20 0x0>;
131*f126890aSEmmanuel Vadot			interrupt-parent = <&gic>;
132*f126890aSEmmanuel Vadot			interrupt-names = "hif";
133*f126890aSEmmanuel Vadot		};
134*f126890aSEmmanuel Vadot
135*f126890aSEmmanuel Vadot                aon_pm_l2_intc: interrupt-controller@410640 {
136*f126890aSEmmanuel Vadot			compatible = "brcm,l2-intc";
137*f126890aSEmmanuel Vadot			reg = <0x410640 0x30>;
138*f126890aSEmmanuel Vadot			interrupt-controller;
139*f126890aSEmmanuel Vadot			#interrupt-cells = <1>;
140*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 0x40 0x0>;
141*f126890aSEmmanuel Vadot			interrupt-parent = <&gic>;
142*f126890aSEmmanuel Vadot			brcm,irq-can-wake;
143*f126890aSEmmanuel Vadot		};
144*f126890aSEmmanuel Vadot
145*f126890aSEmmanuel Vadot		aon-ctrl@410000 {
146*f126890aSEmmanuel Vadot			compatible = "brcm,brcmstb-aon-ctrl";
147*f126890aSEmmanuel Vadot			reg = <0x410000 0x200>, <0x410200 0x400>;
148*f126890aSEmmanuel Vadot			reg-names = "aon-ctrl", "aon-sram";
149*f126890aSEmmanuel Vadot		};
150*f126890aSEmmanuel Vadot
151*f126890aSEmmanuel Vadot		nand_controller: nand-controller@3e2800 {
152*f126890aSEmmanuel Vadot			status = "disabled";
153*f126890aSEmmanuel Vadot			#address-cells = <1>;
154*f126890aSEmmanuel Vadot			#size-cells = <0>;
155*f126890aSEmmanuel Vadot			compatible = "brcm,brcmnand-v7.1", "brcm,brcmnand";
156*f126890aSEmmanuel Vadot			reg-names = "nand", "flash-dma";
157*f126890aSEmmanuel Vadot			reg = <0x3e2800 0x600>, <0x3e3000 0x2c>;
158*f126890aSEmmanuel Vadot			interrupt-parent = <&hif_intr2_intc>;
159*f126890aSEmmanuel Vadot			interrupts = <24>, <4>;
160*f126890aSEmmanuel Vadot			interrupt-names = "nand_ctlrdy", "flash_dma_done";
161*f126890aSEmmanuel Vadot		};
162*f126890aSEmmanuel Vadot
163*f126890aSEmmanuel Vadot		sata@45a000 {
164*f126890aSEmmanuel Vadot			compatible = "brcm,bcm7445-ahci", "brcm,sata3-ahci";
165*f126890aSEmmanuel Vadot			reg-names = "ahci", "top-ctrl";
166*f126890aSEmmanuel Vadot			reg = <0x45a000 0xa9c>, <0x458040 0x24>;
167*f126890aSEmmanuel Vadot			interrupts = <GIC_SPI 30 0>;
168*f126890aSEmmanuel Vadot			#address-cells = <1>;
169*f126890aSEmmanuel Vadot			#size-cells = <0>;
170*f126890aSEmmanuel Vadot
171*f126890aSEmmanuel Vadot			sata0: sata-port@0 {
172*f126890aSEmmanuel Vadot				reg = <0>;
173*f126890aSEmmanuel Vadot				phys = <&sata_phy0>;
174*f126890aSEmmanuel Vadot			};
175*f126890aSEmmanuel Vadot
176*f126890aSEmmanuel Vadot			sata1: sata-port@1 {
177*f126890aSEmmanuel Vadot				reg = <1>;
178*f126890aSEmmanuel Vadot				phys = <&sata_phy1>;
179*f126890aSEmmanuel Vadot			};
180*f126890aSEmmanuel Vadot		};
181*f126890aSEmmanuel Vadot
182*f126890aSEmmanuel Vadot		sata_phy: sata-phy@458100 {
183*f126890aSEmmanuel Vadot			compatible = "brcm,bcm7445-sata-phy", "brcm,phy-sata3";
184*f126890aSEmmanuel Vadot			reg = <0x458100 0x1f00>;
185*f126890aSEmmanuel Vadot			reg-names = "phy";
186*f126890aSEmmanuel Vadot			#address-cells = <0x1>;
187*f126890aSEmmanuel Vadot			#size-cells = <0x0>;
188*f126890aSEmmanuel Vadot
189*f126890aSEmmanuel Vadot			sata_phy0: sata-phy@0 {
190*f126890aSEmmanuel Vadot				reg = <0>;
191*f126890aSEmmanuel Vadot				#phy-cells = <0>;
192*f126890aSEmmanuel Vadot			};
193*f126890aSEmmanuel Vadot
194*f126890aSEmmanuel Vadot			sata_phy1: sata-phy@1 {
195*f126890aSEmmanuel Vadot				reg = <1>;
196*f126890aSEmmanuel Vadot				#phy-cells = <0>;
197*f126890aSEmmanuel Vadot			};
198*f126890aSEmmanuel Vadot		};
199*f126890aSEmmanuel Vadot
200*f126890aSEmmanuel Vadot		upg_gio: gpio@40a700 {
201*f126890aSEmmanuel Vadot			compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";
202*f126890aSEmmanuel Vadot			reg = <0x40a700 0x80>;
203*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
204*f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
205*f126890aSEmmanuel Vadot			gpio-controller;
206*f126890aSEmmanuel Vadot			interrupt-controller;
207*f126890aSEmmanuel Vadot			interrupt-parent = <&irq0_intc>;
208*f126890aSEmmanuel Vadot			interrupts = <6>;
209*f126890aSEmmanuel Vadot			brcm,gpio-bank-widths = <32 32 32 24>;
210*f126890aSEmmanuel Vadot		};
211*f126890aSEmmanuel Vadot
212*f126890aSEmmanuel Vadot		upg_gio_aon: gpio@4172c0 {
213*f126890aSEmmanuel Vadot			compatible = "brcm,bcm7445-gpio", "brcm,brcmstb-gpio";
214*f126890aSEmmanuel Vadot			reg = <0x4172c0 0x40>;
215*f126890aSEmmanuel Vadot			#gpio-cells = <2>;
216*f126890aSEmmanuel Vadot			#interrupt-cells = <2>;
217*f126890aSEmmanuel Vadot			gpio-controller;
218*f126890aSEmmanuel Vadot			interrupt-controller;
219*f126890aSEmmanuel Vadot			interrupts-extended = <&irq0_aon_intc 0x6>,
220*f126890aSEmmanuel Vadot					      <&aon_pm_l2_intc 0x5>;
221*f126890aSEmmanuel Vadot			wakeup-source;
222*f126890aSEmmanuel Vadot			brcm,gpio-bank-widths = <18 4>;
223*f126890aSEmmanuel Vadot		};
224*f126890aSEmmanuel Vadot
225*f126890aSEmmanuel Vadot	};
226*f126890aSEmmanuel Vadot
227*f126890aSEmmanuel Vadot	memory_controllers@f1100000 {
228*f126890aSEmmanuel Vadot		compatible = "simple-bus";
229*f126890aSEmmanuel Vadot		ranges = <0x0 0x0 0xf1100000 0x200000>;
230*f126890aSEmmanuel Vadot		#address-cells = <1>;
231*f126890aSEmmanuel Vadot		#size-cells = <1>;
232*f126890aSEmmanuel Vadot
233*f126890aSEmmanuel Vadot		memc@0 {
234*f126890aSEmmanuel Vadot			compatible = "brcm,brcmstb-memc", "simple-bus";
235*f126890aSEmmanuel Vadot			#address-cells = <1>;
236*f126890aSEmmanuel Vadot			#size-cells = <1>;
237*f126890aSEmmanuel Vadot			ranges = <0x0 0x0 0x80000>;
238*f126890aSEmmanuel Vadot
239*f126890aSEmmanuel Vadot			memc-ddr@2000 {
240*f126890aSEmmanuel Vadot				compatible = "brcm,brcmstb-memc-ddr";
241*f126890aSEmmanuel Vadot				reg = <0x2000 0x800>;
242*f126890aSEmmanuel Vadot			};
243*f126890aSEmmanuel Vadot
244*f126890aSEmmanuel Vadot			ddr-phy@6000 {
245*f126890aSEmmanuel Vadot				compatible = "brcm,brcmstb-ddr-phy-v240.1";
246*f126890aSEmmanuel Vadot				reg = <0x6000 0x21c>;
247*f126890aSEmmanuel Vadot				};
248*f126890aSEmmanuel Vadot
249*f126890aSEmmanuel Vadot			shimphy@8000 {
250*f126890aSEmmanuel Vadot				compatible = "brcm,brcmstb-ddr-shimphy-v1.0";
251*f126890aSEmmanuel Vadot				reg = <0x8000 0xe4>;
252*f126890aSEmmanuel Vadot			};
253*f126890aSEmmanuel Vadot		};
254*f126890aSEmmanuel Vadot
255*f126890aSEmmanuel Vadot		memc@80000 {
256*f126890aSEmmanuel Vadot			compatible = "brcm,brcmstb-memc", "simple-bus";
257*f126890aSEmmanuel Vadot			#address-cells = <1>;
258*f126890aSEmmanuel Vadot			#size-cells = <1>;
259*f126890aSEmmanuel Vadot			ranges = <0x0 0x80000 0x80000>;
260*f126890aSEmmanuel Vadot
261*f126890aSEmmanuel Vadot			memc-ddr@2000 {
262*f126890aSEmmanuel Vadot				compatible = "brcm,brcmstb-memc-ddr";
263*f126890aSEmmanuel Vadot				reg = <0x2000 0x800>;
264*f126890aSEmmanuel Vadot			};
265*f126890aSEmmanuel Vadot
266*f126890aSEmmanuel Vadot			ddr-phy@6000 {
267*f126890aSEmmanuel Vadot				compatible = "brcm,brcmstb-ddr-phy-v240.1";
268*f126890aSEmmanuel Vadot				reg = <0x6000 0x21c>;
269*f126890aSEmmanuel Vadot			};
270*f126890aSEmmanuel Vadot
271*f126890aSEmmanuel Vadot			shimphy@8000 {
272*f126890aSEmmanuel Vadot				compatible = "brcm,brcmstb-ddr-shimphy-v1.0";
273*f126890aSEmmanuel Vadot				reg = <0x8000 0xe4>;
274*f126890aSEmmanuel Vadot			};
275*f126890aSEmmanuel Vadot		};
276*f126890aSEmmanuel Vadot
277*f126890aSEmmanuel Vadot		memc@100000 {
278*f126890aSEmmanuel Vadot			compatible = "brcm,brcmstb-memc", "simple-bus";
279*f126890aSEmmanuel Vadot			#address-cells = <1>;
280*f126890aSEmmanuel Vadot			#size-cells = <1>;
281*f126890aSEmmanuel Vadot			ranges = <0x0 0x100000 0x80000>;
282*f126890aSEmmanuel Vadot
283*f126890aSEmmanuel Vadot			memc-ddr@2000 {
284*f126890aSEmmanuel Vadot				compatible = "brcm,brcmstb-memc-ddr";
285*f126890aSEmmanuel Vadot				reg = <0x2000 0x800>;
286*f126890aSEmmanuel Vadot			};
287*f126890aSEmmanuel Vadot
288*f126890aSEmmanuel Vadot			ddr-phy@6000 {
289*f126890aSEmmanuel Vadot				compatible = "brcm,brcmstb-ddr-phy-v240.1";
290*f126890aSEmmanuel Vadot				reg = <0x6000 0x21c>;
291*f126890aSEmmanuel Vadot			};
292*f126890aSEmmanuel Vadot
293*f126890aSEmmanuel Vadot			shimphy@8000 {
294*f126890aSEmmanuel Vadot				compatible = "brcm,brcmstb-ddr-shimphy-v1.0";
295*f126890aSEmmanuel Vadot				reg = <0x8000 0xe4>;
296*f126890aSEmmanuel Vadot			};
297*f126890aSEmmanuel Vadot		};
298*f126890aSEmmanuel Vadot	};
299*f126890aSEmmanuel Vadot
300*f126890aSEmmanuel Vadot	sram@ffe00000 {
301*f126890aSEmmanuel Vadot		compatible = "brcm,boot-sram", "mmio-sram";
302*f126890aSEmmanuel Vadot		reg = <0x0 0xffe00000 0x0 0x10000>;
303*f126890aSEmmanuel Vadot	};
304*f126890aSEmmanuel Vadot
305*f126890aSEmmanuel Vadot	smpboot {
306*f126890aSEmmanuel Vadot		compatible = "brcm,brcmstb-smpboot";
307*f126890aSEmmanuel Vadot		syscon-cpu = <&hif_cpubiuctrl 0x88 0x178>;
308*f126890aSEmmanuel Vadot		syscon-cont = <&hif_continuation>;
309*f126890aSEmmanuel Vadot	};
310*f126890aSEmmanuel Vadot
311*f126890aSEmmanuel Vadot	reboot {
312*f126890aSEmmanuel Vadot		compatible = "brcm,brcmstb-reboot";
313*f126890aSEmmanuel Vadot		syscon = <&sun_top_ctrl 0x304 0x308>;
314*f126890aSEmmanuel Vadot	};
315*f126890aSEmmanuel Vadot};
316