blob: cca49a2e2d623b92eb99505aebad5f78edc41f12 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Florian Fainelli46d4bca2014-02-20 16:11:28 -08002/*
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
Florian Fainelli46d4bca2014-02-20 16:11:28 -08009/ {
Rob Herringabe60a32019-01-09 10:26:14 -060010 #address-cells = <1>;
11 #size-cells = <1>;
Florian Fainelli46d4bca2014-02-20 16:11:28 -080012 compatible = "brcm,bcm63138";
13 model = "Broadcom BCM63138 DSL SoC";
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>;
Florian Fainelli9f988022015-04-17 11:27:51 -070030 enable-method = "brcm,bcm63138";
Florian Fainelli46d4bca2014-02-20 16:11:28 -080031 };
32
33 cpu@1 {
34 device_type = "cpu";
35 compatible = "arm,cortex-a9";
36 next-level-cache = <&L2>;
37 reg = <1>;
Florian Fainelli9f988022015-04-17 11:27:51 -070038 enable-method = "brcm,bcm63138";
39 resets = <&pmb0 4 1>;
Florian Fainelli46d4bca2014-02-20 16:11:28 -080040 };
41 };
42
43 clocks {
Florian Fainelli511d3042015-10-29 18:23:19 -070044 /* UBUS peripheral clock */
Florian Fainelli46d4bca2014-02-20 16:11:28 -080045 periph_clk: periph_clk {
46 #clock-cells = <0>;
47 compatible = "fixed-clock";
48 clock-frequency = <50000000>;
49 clock-output-names = "periph";
50 };
Florian Fainelli511d3042015-10-29 18:23:19 -070051
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 };
Florian Fainelli46d4bca2014-02-20 16:11:28 -080069 };
70
71 /* ARM bus */
72 axi@80000000 {
73 compatible = "simple-bus";
74 ranges = <0 0x80000000 0x784000>;
75 #address-cells = <1>;
76 #size-cells = <1>;
77
78 L2: cache-controller@1d000 {
79 compatible = "arm,pl310-cache";
80 reg = <0x1d000 0x1000>;
81 cache-unified;
82 cache-level = <2>;
Florian Fainelli9df11822015-02-10 17:33:07 -080083 cache-size = <524288>;
84 cache-sets = <1024>;
85 cache-line-size = <32>;
Florian Fainelli46d4bca2014-02-20 16:11:28 -080086 interrupts = <GIC_PPI 0 IRQ_TYPE_LEVEL_HIGH>;
87 };
88
89 scu: scu@1e000 {
90 compatible = "arm,cortex-a9-scu";
91 reg = <0x1e000 0x100>;
92 };
93
Florian Fainellif6bf1722019-05-28 16:01:32 -070094 gic: interrupt-controller@1f000 {
Florian Fainelli46d4bca2014-02-20 16:11:28 -080095 compatible = "arm,cortex-a9-gic";
96 reg = <0x1f000 0x1000
97 0x1e100 0x100>;
98 #interrupt-cells = <3>;
99 #address-cells = <0>;
100 interrupt-controller;
101 };
102
103 global_timer: timer@1e200 {
104 compatible = "arm,cortex-a9-global-timer";
105 reg = <0x1e200 0x20>;
Florian Fainelli3ab97942018-09-19 17:14:01 -0700106 interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>;
Florian Fainelli511d3042015-10-29 18:23:19 -0700107 clocks = <&axi_clk>;
Florian Fainelli46d4bca2014-02-20 16:11:28 -0800108 };
109
110 local_timer: local-timer@1e600 {
111 compatible = "arm,cortex-a9-twd-timer";
112 reg = <0x1e600 0x20>;
Florian Fainelli3ab97942018-09-19 17:14:01 -0700113 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) |
114 IRQ_TYPE_EDGE_RISING)>;
Florian Fainelli511d3042015-10-29 18:23:19 -0700115 clocks = <&axi_clk>;
Florian Fainelli46d4bca2014-02-20 16:11:28 -0800116 };
117
118 twd_watchdog: watchdog@1e620 {
119 compatible = "arm,cortex-a9-twd-wdt";
120 reg = <0x1e620 0x20>;
Florian Fainelli3ab97942018-09-19 17:14:01 -0700121 interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) |
122 IRQ_TYPE_LEVEL_HIGH)>;
Florian Fainelli46d4bca2014-02-20 16:11:28 -0800123 };
Florian Fainelli39afb982015-04-16 11:37:51 -0700124
Florian Fainellif6bf1722019-05-28 16:01:32 -0700125 armpll: armpll@20000 {
Florian Fainelli511d3042015-10-29 18:23:19 -0700126 #clock-cells = <0>;
127 compatible = "brcm,bcm63138-armpll";
128 clocks = <&periph_clk>;
129 reg = <0x20000 0xf00>;
130 };
131
Florian Fainelli39afb982015-04-16 11:37:51 -0700132 pmb0: reset-controller@4800c0 {
133 compatible = "brcm,bcm63138-pmb";
134 reg = <0x4800c0 0x10>;
135 #reset-cells = <2>;
136 };
137
138 pmb1: reset-controller@4800e0 {
139 compatible = "brcm,bcm63138-pmb";
140 reg = <0x4800e0 0x10>;
141 #reset-cells = <2>;
142 };
Florian Fainelli2af764d2015-03-20 16:30:21 -0700143
Florian Fainellif6bf1722019-05-28 16:01:32 -0700144 ahci: sata@a000 {
Florian Fainelli2af764d2015-03-20 16:30:21 -0700145 compatible = "brcm,bcm63138-ahci", "brcm,sata3-ahci";
146 reg-names = "ahci", "top-ctrl";
147 reg = <0xa000 0x9ac>, <0x8040 0x24>;
148 interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>;
149 #address-cells = <1>;
150 #size-cells = <0>;
151 resets = <&pmb0 3 1>;
152 reset-names = "ahci";
153 status = "disabled";
154
155 sata0: sata-port@0 {
156 reg = <0>;
157 phys = <&sata_phy0>;
158 };
159 };
160
161 sata_phy: sata-phy@8100 {
162 compatible = "brcm,bcm63138-sata-phy", "brcm,phy-sata3";
163 reg = <0x8100 0x1e00>;
164 reg-names = "phy";
165 #address-cells = <1>;
166 #size-cells = <0>;
167 status = "disabled";
168
169 sata_phy0: sata-phy@0 {
170 reg = <0>;
171 #phy-cells = <0>;
172 };
173 };
Florian Fainelli46d4bca2014-02-20 16:11:28 -0800174 };
175
176 /* Legacy UBUS base */
177 ubus@fffe8000 {
178 compatible = "simple-bus";
179 #address-cells = <1>;
180 #size-cells = <1>;
181 ranges = <0 0xfffe8000 0x8100>;
182
Florian Fainelli8ab14282015-04-23 15:57:21 -0700183 timer: timer@80 {
184 compatible = "brcm,bcm6328-timer", "syscon";
185 reg = <0x80 0x3c>;
186 };
187
Florian Fainelli46d4bca2014-02-20 16:11:28 -0800188 serial0: serial@600 {
189 compatible = "brcm,bcm6345-uart";
190 reg = <0x600 0x1b>;
Florian Fainelli3ab97942018-09-19 17:14:01 -0700191 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
Florian Fainelli46d4bca2014-02-20 16:11:28 -0800192 clocks = <&periph_clk>;
193 clock-names = "periph";
194 status = "disabled";
195 };
196
197 serial1: serial@620 {
198 compatible = "brcm,bcm6345-uart";
199 reg = <0x620 0x1b>;
Florian Fainelli3ab97942018-09-19 17:14:01 -0700200 interrupts = <GIC_SPI 33 IRQ_TYPE_LEVEL_HIGH>;
Florian Fainelli46d4bca2014-02-20 16:11:28 -0800201 clocks = <&periph_clk>;
202 clock-names = "periph";
203 status = "disabled";
204 };
Florian Fainelli9f988022015-04-17 11:27:51 -0700205
Rafał Miłecki75e2f012021-04-16 15:37:52 +0200206 nand_controller: nand-controller@2000 {
Florian Fainelli9d7ef1b2015-05-26 20:27:30 -0700207 #address-cells = <1>;
208 #size-cells = <0>;
209 compatible = "brcm,nand-bcm63138", "brcm,brcmnand-v7.0", "brcm,brcmnand";
210 reg = <0x2000 0x600>, <0xf0 0x10>;
211 reg-names = "nand", "nand-int-base";
212 status = "disabled";
Florian Fainelli3ab97942018-09-19 17:14:01 -0700213 interrupts = <GIC_SPI 38 IRQ_TYPE_LEVEL_HIGH>;
Florian Fainelli9d7ef1b2015-05-26 20:27:30 -0700214 interrupt-names = "nand";
215 };
216
Florian Fainelli9f988022015-04-17 11:27:51 -0700217 bootlut: bootlut@8000 {
218 compatible = "brcm,bcm63138-bootlut";
219 reg = <0x8000 0x50>;
220 };
Florian Fainelli8ab14282015-04-23 15:57:21 -0700221
222 reboot {
223 compatible = "syscon-reboot";
224 regmap = <&timer>;
225 offset = <0x34>;
226 mask = <1>;
227 };
Florian Fainelli46d4bca2014-02-20 16:11:28 -0800228 };
229};