Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
| 2 | /* |
| 3 | * Copyright (C) 2018 Philippe Reynes <philippe.reynes@softathome.com> |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 4 | * Copyright 2022 Broadcom Ltd. |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 7 | #include <dt-bindings/interrupt-controller/irq.h> |
| 8 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 9 | |
| 10 | / { |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 11 | compatible = "brcm,bcm6858", "brcm,bcmbca"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 12 | #address-cells = <2>; |
| 13 | #size-cells = <2>; |
| 14 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 15 | interrupt-parent = <&gic>; |
Philippe Reynes | 906af4a | 2019-08-14 15:18:39 +0200 | [diff] [blame] | 16 | |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 17 | cpus { |
| 18 | #address-cells = <2>; |
| 19 | #size-cells = <0>; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 20 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 21 | B53_0: cpu@0 { |
| 22 | compatible = "brcm,brahma-b53"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 23 | device_type = "cpu"; |
| 24 | reg = <0x0 0x0>; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 25 | next-level-cache = <&L2_0>; |
| 26 | enable-method = "psci"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 27 | }; |
| 28 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 29 | B53_1: cpu@1 { |
| 30 | compatible = "brcm,brahma-b53"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 31 | device_type = "cpu"; |
| 32 | reg = <0x0 0x1>; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 33 | next-level-cache = <&L2_0>; |
| 34 | enable-method = "psci"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 35 | }; |
| 36 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 37 | B53_2: cpu@2 { |
| 38 | compatible = "brcm,brahma-b53"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 39 | device_type = "cpu"; |
| 40 | reg = <0x0 0x2>; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 41 | next-level-cache = <&L2_0>; |
| 42 | enable-method = "psci"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 43 | }; |
| 44 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 45 | B53_3: cpu@3 { |
| 46 | compatible = "brcm,brahma-b53"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 47 | device_type = "cpu"; |
| 48 | reg = <0x0 0x3>; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 49 | next-level-cache = <&L2_0>; |
| 50 | enable-method = "psci"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 51 | }; |
| 52 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 53 | L2_0: l2-cache0 { |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 54 | compatible = "cache"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 55 | }; |
| 56 | }; |
| 57 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 58 | timer { |
| 59 | compatible = "arm,armv8-timer"; |
| 60 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 61 | <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 62 | <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>, |
| 63 | <GIC_PPI 10 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_LEVEL_LOW)>; |
| 64 | }; |
| 65 | |
| 66 | pmu: pmu { |
| 67 | compatible = "arm,armv8-pmuv3"; |
| 68 | interrupts = <GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>, |
| 69 | <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>, |
| 70 | <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, |
| 71 | <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>; |
| 72 | interrupt-affinity = <&B53_0>, <&B53_1>, |
| 73 | <&B53_2>, <&B53_3>; |
| 74 | }; |
| 75 | |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 76 | clocks { |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 77 | bootph-all; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 78 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 79 | periph_clk: periph_clk { |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 80 | compatible = "fixed-clock"; |
| 81 | #clock-cells = <0>; |
| 82 | clock-frequency = <200000000>; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 83 | }; |
Philippe Reynes | a328ada | 2019-05-03 19:43:07 +0200 | [diff] [blame] | 84 | |
Philippe Reynes | 906af4a | 2019-08-14 15:18:39 +0200 | [diff] [blame] | 85 | hsspi_pll: hsspi-pll { |
| 86 | compatible = "fixed-factor-clock"; |
| 87 | #clock-cells = <0>; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 88 | clocks = <&periph_clk>; |
Philippe Reynes | 906af4a | 2019-08-14 15:18:39 +0200 | [diff] [blame] | 89 | clock-mult = <2>; |
| 90 | clock-div = <1>; |
| 91 | }; |
| 92 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 93 | wdt_clk: wdt-clk { |
| 94 | compatible = "fixed-factor-clock"; |
Philippe Reynes | a328ada | 2019-05-03 19:43:07 +0200 | [diff] [blame] | 95 | #clock-cells = <0>; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 96 | clocks = <&periph_clk>; |
| 97 | clock-div = <4>; |
| 98 | clock-mult = <1>; |
Philippe Reynes | a328ada | 2019-05-03 19:43:07 +0200 | [diff] [blame] | 99 | }; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 100 | }; |
| 101 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 102 | psci { |
| 103 | compatible = "arm,psci-0.2"; |
| 104 | method = "smc"; |
| 105 | }; |
| 106 | |
| 107 | axi@81000000 { |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 108 | compatible = "simple-bus"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 109 | #address-cells = <1>; |
| 110 | #size-cells = <1>; |
| 111 | ranges = <0x0 0x0 0x81000000 0x8000>; |
| 112 | |
| 113 | gic: interrupt-controller@1000 { |
| 114 | compatible = "arm,gic-400"; |
| 115 | #interrupt-cells = <3>; |
| 116 | interrupt-controller; |
| 117 | reg = <0x1000 0x1000>, /* GICD */ |
| 118 | <0x2000 0x2000>, /* GICC */ |
| 119 | <0x4000 0x2000>, /* GICH */ |
| 120 | <0x6000 0x2000>; /* GICV */ |
| 121 | interrupts = <GIC_PPI 9 (GIC_CPU_MASK_SIMPLE(4) | |
| 122 | IRQ_TYPE_LEVEL_HIGH)>; |
| 123 | }; |
| 124 | }; |
| 125 | |
| 126 | bus@ff800000 { |
| 127 | compatible = "simple-bus"; |
| 128 | #address-cells = <1>; |
| 129 | #size-cells = <1>; |
| 130 | ranges = <0x0 0x0 0xff800000 0x800000>; |
Simon Glass | 8c103c3 | 2023-02-13 08:56:33 -0700 | [diff] [blame] | 131 | bootph-all; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 132 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 133 | uart0: serial@640 { |
Álvaro Fernández Rojas | e9e8d80 | 2018-12-01 18:42:09 +0100 | [diff] [blame] | 134 | compatible = "brcm,bcm6345-uart"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 135 | reg = <0x640 0x18>; |
| 136 | interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>; |
| 137 | clocks = <&periph_clk>; |
| 138 | clock-names = "refclk"; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 139 | status = "disabled"; |
| 140 | }; |
Philippe Reynes | 8d6006f | 2019-01-28 15:37:30 +0100 | [diff] [blame] | 141 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 142 | leds: led-controller@800 { |
Philippe Reynes | 7526582 | 2019-03-22 17:02:02 +0100 | [diff] [blame] | 143 | compatible = "brcm,bcm6858-leds"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 144 | reg = <0x800 0xe4>; |
Philippe Reynes | 7526582 | 2019-03-22 17:02:02 +0100 | [diff] [blame] | 145 | |
| 146 | status = "disabled"; |
| 147 | }; |
| 148 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 149 | wdt1: watchdog@2780 { |
Philippe Reynes | 8d6006f | 2019-01-28 15:37:30 +0100 | [diff] [blame] | 150 | compatible = "brcm,bcm6345-wdt"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 151 | reg = <0x2780 0x14>; |
| 152 | clocks = <&wdt_clk>; |
Philippe Reynes | 8d6006f | 2019-01-28 15:37:30 +0100 | [diff] [blame] | 153 | }; |
| 154 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 155 | wdt2: watchdog@27c0 { |
Philippe Reynes | 8d6006f | 2019-01-28 15:37:30 +0100 | [diff] [blame] | 156 | compatible = "brcm,bcm6345-wdt"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 157 | reg = <0x27c0 0x14>; |
| 158 | clocks = <&wdt_clk>; |
Philippe Reynes | 8d6006f | 2019-01-28 15:37:30 +0100 | [diff] [blame] | 159 | }; |
| 160 | |
| 161 | wdt-reboot { |
| 162 | compatible = "wdt-reboot"; |
| 163 | wdt = <&wdt1>; |
| 164 | }; |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 165 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 166 | gpio0: gpio-controller@500 { |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 167 | compatible = "brcm,bcm6345-gpio"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 168 | reg = <0x500 0x4>, |
| 169 | <0x520 0x4>; |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 170 | gpio-controller; |
| 171 | #gpio-cells = <2>; |
| 172 | |
| 173 | status = "disabled"; |
| 174 | }; |
| 175 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 176 | gpio1: gpio-controller@504 { |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 177 | compatible = "brcm,bcm6345-gpio"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 178 | reg = <0x504 0x4>, |
| 179 | <0x524 0x4>; |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 180 | gpio-controller; |
| 181 | #gpio-cells = <2>; |
| 182 | |
| 183 | status = "disabled"; |
| 184 | }; |
| 185 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 186 | gpio2: gpio-controller@508 { |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 187 | compatible = "brcm,bcm6345-gpio"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 188 | reg = <0x508 0x4>, |
| 189 | <0x528 0x4>; |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 190 | gpio-controller; |
| 191 | #gpio-cells = <2>; |
| 192 | |
| 193 | status = "disabled"; |
| 194 | }; |
| 195 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 196 | gpio3: gpio-controller@50c { |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 197 | compatible = "brcm,bcm6345-gpio"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 198 | reg = <0x50c 0x4>, |
| 199 | <0x52c 0x4>; |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 200 | gpio-controller; |
| 201 | #gpio-cells = <2>; |
| 202 | |
| 203 | status = "disabled"; |
| 204 | }; |
| 205 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 206 | gpio4: gpio-controller@510 { |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 207 | compatible = "brcm,bcm6345-gpio"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 208 | reg = <0x510 0x4>, |
| 209 | <0x530 0x4>; |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 210 | gpio-controller; |
| 211 | #gpio-cells = <2>; |
| 212 | |
| 213 | status = "disabled"; |
| 214 | }; |
| 215 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 216 | gpio5: gpio-controller@514 { |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 217 | compatible = "brcm,bcm6345-gpio"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 218 | reg = <0x514 0x4>, |
| 219 | <0x534 0x4>; |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 220 | gpio-controller; |
| 221 | #gpio-cells = <2>; |
| 222 | |
| 223 | status = "disabled"; |
| 224 | }; |
| 225 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 226 | gpio6: gpio-controller@518 { |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 227 | compatible = "brcm,bcm6345-gpio"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 228 | reg = <0x518 0x4>, |
| 229 | <0x538 0x4>; |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 230 | gpio-controller; |
| 231 | #gpio-cells = <2>; |
| 232 | |
| 233 | status = "disabled"; |
| 234 | }; |
| 235 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 236 | gpio7: gpio-controller@51c { |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 237 | compatible = "brcm,bcm6345-gpio"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 238 | reg = <0x51c 0x4>, |
| 239 | <0x53c 0x4>; |
Philippe Reynes | 9575c7e | 2019-03-07 11:36:37 +0100 | [diff] [blame] | 240 | gpio-controller; |
| 241 | #gpio-cells = <2>; |
| 242 | |
| 243 | status = "disabled"; |
| 244 | }; |
Philippe Reynes | 24e27a1 | 2019-03-15 15:14:42 +0100 | [diff] [blame] | 245 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 246 | hsspi: spi-controller@1000 { |
Philippe Reynes | 906af4a | 2019-08-14 15:18:39 +0200 | [diff] [blame] | 247 | compatible = "brcm,bcm6328-hsspi"; |
| 248 | #address-cells = <1>; |
| 249 | #size-cells = <0>; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 250 | reg = <0x1000 0x600>; |
Philippe Reynes | 906af4a | 2019-08-14 15:18:39 +0200 | [diff] [blame] | 251 | clocks = <&hsspi_pll>, <&hsspi_pll>; |
| 252 | clock-names = "hsspi", "pll"; |
| 253 | spi-max-frequency = <100000000>; |
| 254 | num-cs = <8>; |
| 255 | |
| 256 | status = "disabled"; |
| 257 | }; |
| 258 | |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 259 | nand: nand-controller@1800 { |
Philippe Reynes | 24e27a1 | 2019-03-15 15:14:42 +0100 | [diff] [blame] | 260 | compatible = "brcm,nand-bcm6858", |
| 261 | "brcm,brcmnand-v5.0", |
| 262 | "brcm,brcmnand"; |
| 263 | reg-names = "nand", "nand-int-base", "nand-cache"; |
William Zhang | b0e2b6a | 2022-08-22 11:39:43 -0700 | [diff] [blame] | 264 | reg = <0x1800 0x180>, |
| 265 | <0x2000 0x10>, |
| 266 | <0x1c00 0x200>; |
Philippe Reynes | 24e27a1 | 2019-03-15 15:14:42 +0100 | [diff] [blame] | 267 | parameter-page-big-endian = <0>; |
| 268 | |
| 269 | status = "disabled"; |
| 270 | }; |
Philippe Reynes | 40b59b0 | 2018-10-11 18:31:58 +0200 | [diff] [blame] | 271 | }; |
| 272 | }; |