1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT 2 3#include <dt-bindings/interrupt-controller/irq.h> 4#include <dt-bindings/interrupt-controller/arm-gic.h> 5#include <dt-bindings/phy/phy.h> 6#include <dt-bindings/soc/bcm-pmb.h> 7 8/dts-v1/; 9 10/ { 11 interrupt-parent = <&gic>; 12 13 #address-cells = <2>; 14 #size-cells = <2>; 15 16 aliases { 17 serial0 = &uart0; 18 }; 19 20 chosen { 21 stdout-path = "serial0:115200n8"; 22 }; 23 24 cpus { 25 #address-cells = <1>; 26 #size-cells = <0>; 27 28 cpu0: cpu@0 { 29 device_type = "cpu"; 30 compatible = "brcm,brahma-b53"; 31 reg = <0x0>; 32 enable-method = "spin-table"; 33 cpu-release-addr = <0x0 0xfff8>; 34 next-level-cache = <&l2>; 35 }; 36 37 cpu1: cpu@1 { 38 device_type = "cpu"; 39 compatible = "brcm,brahma-b53"; 40 reg = <0x1>; 41 enable-method = "spin-table"; 42 cpu-release-addr = <0x0 0xfff8>; 43 next-level-cache = <&l2>; 44 }; 45 46 cpu2: cpu@2 { 47 device_type = "cpu"; 48 compatible = "brcm,brahma-b53"; 49 reg = <0x2>; 50 enable-method = "spin-table"; 51 cpu-release-addr = <0x0 0xfff8>; 52 next-level-cache = <&l2>; 53 }; 54 55 cpu3: cpu@3 { 56 device_type = "cpu"; 57 compatible = "brcm,brahma-b53"; 58 reg = <0x3>; 59 enable-method = "spin-table"; 60 cpu-release-addr = <0x0 0xfff8>; 61 next-level-cache = <&l2>; 62 }; 63 64 l2: l2-cache0 { 65 compatible = "cache"; 66 }; 67 }; 68 69 axi@81000000 { 70 compatible = "simple-bus"; 71 #address-cells = <1>; 72 #size-cells = <1>; 73 ranges = <0x00 0x00 0x81000000 0x4000>; 74 75 gic: interrupt-controller@1000 { 76 compatible = "arm,gic-400"; 77 #interrupt-cells = <3>; 78 #address-cells = <0>; 79 interrupt-controller; 80 reg = <0x1000 0x1000>, 81 <0x2000 0x2000>; 82 }; 83 }; 84 85 timer { 86 compatible = "arm,armv8-timer"; 87 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 88 <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 89 <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, 90 <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; 91 }; 92 93 pmu { 94 compatible = "arm,cortex-a53-pmu"; 95 interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, 96 <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>, 97 <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, 98 <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; 99 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; 100 }; 101 102 clocks { 103 periph_clk: periph_clk { 104 compatible = "fixed-clock"; 105 #clock-cells = <0>; 106 clock-frequency = <50000000>; 107 clock-output-names = "periph"; 108 }; 109 }; 110 111 soc { 112 compatible = "simple-bus"; 113 #address-cells = <1>; 114 #size-cells = <1>; 115 ranges = <0x00 0x00 0x80000000 0x281000>; 116 117 enet: ethernet@2000 { 118 compatible = "brcm,bcm4908-enet"; 119 reg = <0x2000 0x1000>; 120 121 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>, 122 <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; 123 interrupt-names = "rx", "tx"; 124 }; 125 126 usb_phy: usb-phy@c200 { 127 compatible = "brcm,bcm4908-usb-phy"; 128 reg = <0xc200 0x100>; 129 reg-names = "ctrl"; 130 power-domains = <&pmb BCM_PMB_HOST_USB>; 131 dr_mode = "host"; 132 brcm,has-xhci; 133 brcm,has-eohci; 134 #phy-cells = <1>; 135 status = "disabled"; 136 }; 137 138 ehci: usb@c300 { 139 compatible = "generic-ehci"; 140 reg = <0xc300 0x100>; 141 interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>; 142 phys = <&usb_phy PHY_TYPE_USB2>; 143 status = "disabled"; 144 }; 145 146 ohci: usb@c400 { 147 compatible = "generic-ohci"; 148 reg = <0xc400 0x100>; 149 interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>; 150 phys = <&usb_phy PHY_TYPE_USB2>; 151 status = "disabled"; 152 }; 153 154 xhci: usb@d000 { 155 compatible = "generic-xhci"; 156 reg = <0xd000 0x8c8>; 157 interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>; 158 phys = <&usb_phy PHY_TYPE_USB3>; 159 status = "disabled"; 160 }; 161 162 bus@80000 { 163 compatible = "simple-bus"; 164 #size-cells = <1>; 165 #address-cells = <1>; 166 ranges = <0 0x80000 0x50000>; 167 168 ethernet-switch@0 { 169 compatible = "brcm,bcm4908-switch"; 170 reg = <0x0 0x40000>, 171 <0x40000 0x110>, 172 <0x40340 0x30>, 173 <0x40380 0x30>, 174 <0x40600 0x34>, 175 <0x40800 0x208>; 176 reg-names = "core", "reg", "intrl2_0", 177 "intrl2_1", "fcb", "acb"; 178 interrupts = <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, 179 <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>; 180 brcm,num-gphy = <5>; 181 brcm,num-rgmii-ports = <2>; 182 183 #address-cells = <1>; 184 #size-cells = <0>; 185 186 ports: ports { 187 #address-cells = <1>; 188 #size-cells = <0>; 189 190 port@0 { 191 reg = <0>; 192 phy-mode = "internal"; 193 phy-handle = <&phy8>; 194 }; 195 196 port@1 { 197 reg = <1>; 198 phy-mode = "internal"; 199 phy-handle = <&phy9>; 200 }; 201 202 port@2 { 203 reg = <2>; 204 phy-mode = "internal"; 205 phy-handle = <&phy10>; 206 }; 207 208 port@3 { 209 reg = <3>; 210 phy-mode = "internal"; 211 phy-handle = <&phy11>; 212 }; 213 214 port@8 { 215 reg = <8>; 216 phy-mode = "internal"; 217 ethernet = <&enet>; 218 219 fixed-link { 220 speed = <1000>; 221 full-duplex; 222 }; 223 }; 224 }; 225 }; 226 227 mdio: mdio@405c0 { 228 compatible = "brcm,unimac-mdio"; 229 reg = <0x405c0 0x8>; 230 reg-names = "mdio"; 231 #size-cells = <0>; 232 #address-cells = <1>; 233 234 phy8: ethernet-phy@8 { 235 reg = <8>; 236 }; 237 238 phy9: ethernet-phy@9 { 239 reg = <9>; 240 }; 241 242 phy10: ethernet-phy@a { 243 reg = <10>; 244 }; 245 246 phy11: ethernet-phy@b { 247 reg = <11>; 248 }; 249 250 phy12: ethernet-phy@c { 251 reg = <12>; 252 }; 253 }; 254 }; 255 256 procmon: bus@280000 { 257 compatible = "simple-bus"; 258 reg = <0x280000 0x1000>; 259 ranges; 260 261 #address-cells = <1>; 262 #size-cells = <1>; 263 264 pmb: power-controller@2800c0 { 265 compatible = "brcm,bcm4908-pmb"; 266 reg = <0x2800c0 0x40>; 267 #power-domain-cells = <1>; 268 }; 269 }; 270 }; 271 272 bus@ff800000 { 273 compatible = "simple-bus"; 274 #address-cells = <1>; 275 #size-cells = <1>; 276 ranges = <0x00 0x00 0xff800000 0x3000>; 277 278 twd: timer-mfd@400 { 279 compatible = "brcm,bcm4908-twd", "simple-mfd", "syscon"; 280 reg = <0x400 0x4c>; 281 }; 282 283 gpio0: gpio-controller@500 { 284 compatible = "brcm,bcm6345-gpio"; 285 reg-names = "dirout", "dat"; 286 reg = <0x500 0x28>, <0x528 0x28>; 287 288 #gpio-cells = <2>; 289 gpio-controller; 290 }; 291 292 uart0: serial@640 { 293 compatible = "brcm,bcm6345-uart"; 294 reg = <0x640 0x18>; 295 interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; 296 clocks = <&periph_clk>; 297 clock-names = "refclk"; 298 status = "okay"; 299 }; 300 301 nand@1800 { 302 #address-cells = <1>; 303 #size-cells = <0>; 304 compatible = "brcm,nand-bcm63138", "brcm,brcmnand-v7.1", "brcm,brcmnand"; 305 reg = <0x1800 0x600>, <0x2000 0x10>; 306 reg-names = "nand", "nand-int-base"; 307 interrupts = <GIC_SPI 37 IRQ_TYPE_LEVEL_HIGH>; 308 interrupt-names = "nand_ctlrdy"; 309 status = "okay"; 310 311 nandcs: nand@0 { 312 compatible = "brcm,nandcs"; 313 reg = <0>; 314 }; 315 }; 316 317 misc@2600 { 318 compatible = "brcm,misc", "simple-mfd"; 319 reg = <0x2600 0xe4>; 320 321 #address-cells = <1>; 322 #size-cells = <1>; 323 ranges = <0x00 0x2600 0xe4>; 324 325 reset-controller@2644 { 326 compatible = "brcm,bcm4908-misc-pcie-reset"; 327 reg = <0x44 0x04>; 328 #reset-cells = <1>; 329 }; 330 }; 331 }; 332 333 reboot { 334 compatible = "syscon-reboot"; 335 regmap = <&twd>; 336 offset = <0x34>; 337 mask = <1>; 338 }; 339}; 340