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