blob: 4ef02283612bb416ed1223a8d6afb54e551fc0a7 [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: GPL-2.0
2/*
3 * Broadcom BCM63138 DSL SoCs Device Tree
4 */
5
6#include <dt-bindings/interrupt-controller/arm-gic.h>
7#include <dt-bindings/interrupt-controller/irq.h>
8
9/ {
10 #address-cells = <1>;
11 #size-cells = <1>;
12 compatible = "brcm,bcm63138", "brcm,bcmbca";
13 model = "Broadcom BCM963138 Reference Board";
14 interrupt-parent = <&gic>;
15
16 aliases {
17 uart0 = &serial0;
18 uart1 = &serial1;
19 };
20
21 cpus {
22 #address-cells = <1>;
23 #size-cells = <0>;
24
25 cpu@0 {
26 device_type = "cpu";
27 compatible = "arm,cortex-a9";
28 next-level-cache = <&L2>;
29 reg = <0>;
30 enable-method = "brcm,bcm63138";
31 };
32
33 cpu@1 {
34 device_type = "cpu";
35 compatible = "arm,cortex-a9";
36 next-level-cache = <&L2>;
37 reg = <1>;
38 enable-method = "brcm,bcm63138";
39 resets = <&pmb0 4 1>;
40 };
41 };
42
43 clocks {
44 /* UBUS peripheral clock */
45 periph_clk: periph_clk {
46 #clock-cells = <0>;
47 compatible = "fixed-clock";
48 clock-frequency = <50000000>;
49 clock-output-names = "periph";
50 };
51
52 /* peripheral clock for system timer */
53 axi_clk: axi_clk {
54 #clock-cells = <0>;
55 compatible = "fixed-factor-clock";
56 clocks = <&armpll>;
57 clock-div = <2>;
58 clock-mult = <1>;
59 };
60
61 /* APB bus clock */
62 apb_clk: apb_clk {
63 #clock-cells = <0>;
64 compatible = "fixed-factor-clock";
65 clocks = <&armpll>;
66 clock-div = <4>;
67 clock-mult = <1>;
68 };
69
70 hsspi_pll: hsspi-pll {
71 compatible = "fixed-clock";
72 #clock-cells = <0>;
73 clock-frequency = <400000000>;
74 };
75 };
76
77 /* ARM bus */
78 axi@80000000 {
79 compatible = "simple-bus";
80 ranges = <0 0x80000000 0x784000>;
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 L2: cache-controller@1d000 {
85 compatible = "arm,pl310-cache";
86 reg = <0x1d000 0x1000>;
87 cache-unified;
88 cache-level = <2>;
89 cache-size = <524288>;
90 cache-sets = <1024>;
91 cache-line-size = <32>;
92 interrupts = <GIC_PPI 0 IRQ_TYPE_LEVEL_HIGH>;
93 };
94
95 scu: scu@1e000 {
96 compatible = "arm,cortex-a9-scu";
97 reg = <0x1e000 0x100>;
98 };
99
100 gic: interrupt-controller@1f000 {
101 compatible = "arm,cortex-a9-gic";
102 reg = <0x1f000 0x1000
103 0x1e100 0x100>;
104 #interrupt-cells = <3>;
105 #address-cells = <0>;
106 interrupt-controller;
107 };
108
109 global_timer: timer@1e200 {
110 compatible = "arm,cortex-a9-global-timer";
111 reg = <0x1e200 0x20>;
112 interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
113 clocks = <&axi_clk>;
114 };
115
116 local_timer: local-timer@1e600 {
117 compatible = "arm,cortex-a9-twd-timer";
118 reg = <0x1e600 0x20>;
119 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
120 IRQ_TYPE_EDGE_RISING)>;
121 clocks = <&axi_clk>;
122 };
123
124 twd_watchdog: watchdog@1e620 {
125 compatible = "arm,cortex-a9-twd-wdt";
126 reg = <0x1e620 0x20>;
127 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
128 IRQ_TYPE_LEVEL_HIGH)>;
129 };
130
131 armpll: armpll@20000 {
132 #clock-cells = <0>;
133 compatible = "brcm,bcm63138-armpll";
134 clocks = <&periph_clk>;
135 reg = <0x20000 0xf00>;
136 };
137
138 pmb0: reset-controller@4800c0 {
139 compatible = "brcm,bcm63138-pmb";
140 reg = <0x4800c0 0x10>;
141 #reset-cells = <2>;
142 };
143
144 pmb1: reset-controller@4800e0 {
145 compatible = "brcm,bcm63138-pmb";
146 reg = <0x4800e0 0x10>;
147 #reset-cells = <2>;
148 };
149
150 ahci: sata@a000 {
151 compatible = "brcm,bcm63138-ahci", "brcm,sata3-ahci";
152 reg-names = "ahci", "top-ctrl";
153 reg = <0xa000 0x9ac>, <0x8040 0x24>;
154 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
155 #address-cells = <1>;
156 #size-cells = <0>;
157 resets = <&pmb0 3 1>;
158 reset-names = "ahci";
159 status = "disabled";
160
161 sata0: sata-port@0 {
162 reg = <0>;
163 phys = <&sata_phy0>;
164 };
165 };
166
167 sata_phy: sata-phy@8100 {
168 compatible = "brcm,bcm63138-sata-phy", "brcm,phy-sata3";
169 reg = <0x8100 0x1e00>;
170 reg-names = "phy";
171 #address-cells = <1>;
172 #size-cells = <0>;
173 status = "disabled";
174
175 sata_phy0: sata-phy@0 {
176 reg = <0>;
177 #phy-cells = <0>;
178 };
179 };
180 };
181
182 /* Legacy UBUS base */
183 ubus@fffe8000 {
184 compatible = "simple-bus";
185 #address-cells = <1>;
186 #size-cells = <1>;
187 ranges = <0 0xfffe8000 0x8100>;
188
189 timer: timer@80 {
190 compatible = "brcm,bcm6328-timer", "syscon";
191 reg = <0x80 0x3c>;
192 };
193
194 serial0: serial@600 {
195 compatible = "brcm,bcm6345-uart";
196 reg = <0x600 0x1b>;
197 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
198 clocks = <&periph_clk>;
199 clock-names = "periph";
200 status = "disabled";
201 };
202
203 serial1: serial@620 {
204 compatible = "brcm,bcm6345-uart";
205 reg = <0x620 0x1b>;
206 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
207 clocks = <&periph_clk>;
208 clock-names = "periph";
209 status = "disabled";
210 };
211
212 hsspi: spi@1000 {
213 #address-cells = <1>;
214 #size-cells = <0>;
215 compatible = "brcm,bcm63138-hsspi", "brcm,bcmbca-hsspi-v1.0";
216 reg = <0x1000 0x600>;
217 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>;
218 clocks = <&hsspi_pll &hsspi_pll>;
219 clock-names = "hsspi", "pll";
220 num-cs = <8>;
221 status = "disabled";
222 };
223
224 nand_controller: nand-controller@2000 {
225 #address-cells = <1>;
226 #size-cells = <0>;
227 compatible = "brcm,nand-bcm63138", "brcm,brcmnand-v7.0", "brcm,brcmnand";
228 reg = <0x2000 0x600>, <0xf0 0x10>;
229 reg-names = "nand", "nand-int-base";
230 status = "disabled";
231 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
232 interrupt-names = "nand";
233 };
234
Tom Rini93743d22024-04-01 09:08:13 -0400235 serial@4400 {
236 compatible = "brcm,bcm63138-hs-uart", "brcm,bcmbca-hs-uart";
237 reg = <0x4400 0x1e0>;
238 interrupts = <GIC_SPI 34 IRQ_TYPE_LEVEL_HIGH>;
239 };
240
Tom Rini53633a82024-02-29 12:33:36 -0500241 bootlut: bootlut@8000 {
242 compatible = "brcm,bcm63138-bootlut";
243 reg = <0x8000 0x50>;
244 };
245
246 reboot {
247 compatible = "syscon-reboot";
248 regmap = <&timer>;
249 offset = <0x34>;
250 mask = <1>;
251 };
252 };
253};