Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Device Tree Include file for Marvell Armada 37xx family of SoCs. |
| 4 | * |
| 5 | * Copyright (C) 2016 Marvell |
| 6 | * |
| 7 | * Gregory CLEMENT <gregory.clement@free-electrons.com> |
| 8 | * |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 9 | */ |
| 10 | |
| 11 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 12 | |
| 13 | / { |
| 14 | model = "Marvell Armada 37xx SoC"; |
| 15 | compatible = "marvell,armada3700"; |
| 16 | interrupt-parent = <&gic>; |
| 17 | #address-cells = <2>; |
| 18 | #size-cells = <2>; |
| 19 | |
| 20 | aliases { |
| 21 | serial0 = &uart0; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 22 | serial1 = &uart1; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 23 | }; |
| 24 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 25 | reserved-memory { |
| 26 | #address-cells = <2>; |
| 27 | #size-cells = <2>; |
| 28 | ranges; |
| 29 | |
| 30 | /* |
| 31 | * The PSCI firmware region depicted below is the default one |
| 32 | * and should be updated by the bootloader. |
| 33 | */ |
| 34 | psci-area@4000000 { |
| 35 | reg = <0 0x4000000 0 0x200000>; |
| 36 | no-map; |
| 37 | }; |
| 38 | }; |
| 39 | |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 40 | cpus { |
| 41 | #address-cells = <1>; |
| 42 | #size-cells = <0>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 43 | cpu0: cpu@0 { |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 44 | device_type = "cpu"; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 45 | compatible = "arm,cortex-a53"; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 46 | reg = <0>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 47 | clocks = <&nb_periph_clk 16>; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 48 | enable-method = "psci"; |
| 49 | }; |
| 50 | }; |
| 51 | |
| 52 | psci { |
| 53 | compatible = "arm,psci-0.2"; |
| 54 | method = "smc"; |
| 55 | }; |
| 56 | |
| 57 | timer { |
| 58 | compatible = "arm,armv8-timer"; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 59 | interrupts = <GIC_PPI 13 IRQ_TYPE_LEVEL_HIGH>, |
| 60 | <GIC_PPI 14 IRQ_TYPE_LEVEL_HIGH>, |
| 61 | <GIC_PPI 11 IRQ_TYPE_LEVEL_HIGH>, |
| 62 | <GIC_PPI 10 IRQ_TYPE_LEVEL_HIGH>; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 63 | }; |
| 64 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 65 | pmu { |
| 66 | compatible = "arm,armv8-pmuv3"; |
| 67 | interrupts = <GIC_PPI 7 IRQ_TYPE_LEVEL_HIGH>; |
| 68 | }; |
| 69 | |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 70 | soc { |
| 71 | compatible = "simple-bus"; |
| 72 | #address-cells = <2>; |
| 73 | #size-cells = <2>; |
| 74 | ranges; |
| 75 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 76 | internal-regs@d0000000 { |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 77 | #address-cells = <1>; |
| 78 | #size-cells = <1>; |
| 79 | compatible = "simple-bus"; |
| 80 | /* 32M internal register @ 0xd000_0000 */ |
| 81 | ranges = <0x0 0x0 0xd0000000 0x2000000>; |
| 82 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 83 | wdt: watchdog@8300 { |
| 84 | compatible = "marvell,armada-3700-wdt"; |
| 85 | reg = <0x8300 0x40>; |
| 86 | marvell,system-controller = <&cpu_misc>; |
| 87 | clocks = <&xtalclk>; |
| 88 | }; |
| 89 | |
| 90 | cpu_misc: system-controller@d000 { |
| 91 | compatible = "marvell,armada-3700-cpu-misc", |
| 92 | "syscon"; |
| 93 | reg = <0xd000 0x1000>; |
| 94 | }; |
| 95 | |
| 96 | spi0: spi@10600 { |
| 97 | compatible = "marvell,armada-3700-spi"; |
| 98 | #address-cells = <1>; |
| 99 | #size-cells = <0>; |
| 100 | reg = <0x10600 0xA00>; |
| 101 | clocks = <&nb_periph_clk 7>; |
| 102 | interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>; |
| 103 | num-cs = <4>; |
| 104 | status = "disabled"; |
| 105 | }; |
| 106 | |
| 107 | i2c0: i2c@11000 { |
| 108 | compatible = "marvell,armada-3700-i2c"; |
| 109 | reg = <0x11000 0x24>; |
| 110 | #address-cells = <1>; |
| 111 | #size-cells = <0>; |
| 112 | clocks = <&nb_periph_clk 10>; |
| 113 | interrupts = <GIC_SPI 1 IRQ_TYPE_LEVEL_HIGH>; |
| 114 | mrvl,i2c-fast-mode; |
| 115 | status = "disabled"; |
| 116 | }; |
| 117 | |
| 118 | i2c1: i2c@11080 { |
| 119 | compatible = "marvell,armada-3700-i2c"; |
| 120 | reg = <0x11080 0x24>; |
| 121 | #address-cells = <1>; |
| 122 | #size-cells = <0>; |
| 123 | clocks = <&nb_periph_clk 9>; |
| 124 | interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
| 125 | mrvl,i2c-fast-mode; |
| 126 | status = "disabled"; |
| 127 | }; |
| 128 | |
| 129 | avs: avs@11500 { |
| 130 | compatible = "marvell,armada-3700-avs", |
| 131 | "syscon"; |
| 132 | reg = <0x11500 0x40>; |
| 133 | }; |
| 134 | |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 135 | uart0: serial@12000 { |
| 136 | compatible = "marvell,armada-3700-uart"; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 137 | reg = <0x12000 0x18>; |
| 138 | clocks = <&xtalclk>; |
| 139 | interrupts = |
| 140 | <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>, |
| 141 | <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>, |
| 142 | <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>; |
| 143 | interrupt-names = "uart-sum", "uart-tx", "uart-rx"; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 144 | status = "disabled"; |
| 145 | }; |
| 146 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 147 | uart1: serial@12200 { |
| 148 | compatible = "marvell,armada-3700-uart-ext"; |
| 149 | reg = <0x12200 0x30>; |
| 150 | clocks = <&xtalclk>; |
| 151 | interrupts = |
| 152 | <GIC_SPI 30 IRQ_TYPE_EDGE_RISING>, |
| 153 | <GIC_SPI 31 IRQ_TYPE_EDGE_RISING>; |
| 154 | interrupt-names = "uart-tx", "uart-rx"; |
| 155 | status = "disabled"; |
Marek Behún | a86b97d | 2018-04-24 17:21:30 +0200 | [diff] [blame] | 156 | }; |
| 157 | |
Marek Behún | 61d74e8 | 2018-04-24 17:21:25 +0200 | [diff] [blame] | 158 | nb_periph_clk: nb-periph-clk@13000 { |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 159 | compatible = "marvell,armada-3700-periph-clock-nb", |
| 160 | "syscon"; |
Marek Behún | 61d74e8 | 2018-04-24 17:21:25 +0200 | [diff] [blame] | 161 | reg = <0x13000 0x100>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 162 | clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>, |
| 163 | <&tbg 3>, <&xtalclk>; |
Marek Behún | 61d74e8 | 2018-04-24 17:21:25 +0200 | [diff] [blame] | 164 | #clock-cells = <1>; |
| 165 | }; |
| 166 | |
| 167 | sb_periph_clk: sb-periph-clk@18000 { |
| 168 | compatible = "marvell,armada-3700-periph-clock-sb"; |
| 169 | reg = <0x18000 0x100>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 170 | clocks = <&tbg 0>, <&tbg 1>, <&tbg 2>, |
| 171 | <&tbg 3>, <&xtalclk>; |
Marek Behún | 61d74e8 | 2018-04-24 17:21:25 +0200 | [diff] [blame] | 172 | #clock-cells = <1>; |
| 173 | }; |
| 174 | |
| 175 | tbg: tbg@13200 { |
| 176 | compatible = "marvell,armada-3700-tbg-clock"; |
| 177 | reg = <0x13200 0x100>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 178 | clocks = <&xtalclk>; |
Marek Behún | 61d74e8 | 2018-04-24 17:21:25 +0200 | [diff] [blame] | 179 | #clock-cells = <1>; |
| 180 | }; |
| 181 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 182 | pinctrl_nb: pinctrl@13800 { |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 183 | compatible = "marvell,armada3710-nb-pinctrl", |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 184 | "syscon", "simple-mfd"; |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 185 | reg = <0x13800 0x100>, <0x13C00 0x20>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 186 | /* MPP1[19:0] */ |
| 187 | gpionb: gpio { |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 188 | #gpio-cells = <2>; |
| 189 | gpio-ranges = <&pinctrl_nb 0 0 36>; |
| 190 | gpio-controller; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 191 | interrupt-controller; |
| 192 | #interrupt-cells = <2>; |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 193 | interrupts = |
| 194 | <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, |
| 195 | <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>, |
| 196 | <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, |
| 197 | <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, |
| 198 | <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>, |
| 199 | <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>, |
| 200 | <GIC_SPI 57 IRQ_TYPE_LEVEL_HIGH>, |
| 201 | <GIC_SPI 58 IRQ_TYPE_LEVEL_HIGH>, |
| 202 | <GIC_SPI 152 IRQ_TYPE_LEVEL_HIGH>, |
| 203 | <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, |
| 204 | <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>, |
| 205 | <GIC_SPI 155 IRQ_TYPE_LEVEL_HIGH>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 206 | }; |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 207 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 208 | xtalclk: xtal-clk { |
| 209 | compatible = "marvell,armada-3700-xtal-clock"; |
| 210 | clock-output-names = "xtal"; |
| 211 | #clock-cells = <0>; |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 212 | }; |
Gregory CLEMENT | 63921fa | 2017-05-09 13:35:22 +0200 | [diff] [blame] | 213 | |
| 214 | spi_quad_pins: spi-quad-pins { |
| 215 | groups = "spi_quad"; |
| 216 | function = "spi"; |
| 217 | }; |
| 218 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 219 | spi_cs1_pins: spi-cs1-pins { |
| 220 | groups = "spi_cs1"; |
| 221 | function = "spi"; |
| 222 | }; |
| 223 | |
Gregory CLEMENT | 63921fa | 2017-05-09 13:35:22 +0200 | [diff] [blame] | 224 | i2c1_pins: i2c1-pins { |
| 225 | groups = "i2c1"; |
| 226 | function = "i2c"; |
| 227 | }; |
| 228 | |
| 229 | i2c2_pins: i2c2-pins { |
| 230 | groups = "i2c2"; |
| 231 | function = "i2c"; |
| 232 | }; |
| 233 | |
| 234 | uart1_pins: uart1-pins { |
| 235 | groups = "uart1"; |
| 236 | function = "uart"; |
| 237 | }; |
| 238 | |
| 239 | uart2_pins: uart2-pins { |
| 240 | groups = "uart2"; |
| 241 | function = "uart"; |
| 242 | }; |
Ken Ma | 3046591 | 2018-03-26 15:55:58 +0800 | [diff] [blame] | 243 | |
| 244 | mmc_pins: mmc-pins { |
| 245 | groups = "emmc_nb"; |
| 246 | function = "emmc"; |
| 247 | }; |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 248 | }; |
| 249 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 250 | nb_pm: syscon@14000 { |
| 251 | compatible = "marvell,armada-3700-nb-pm", |
| 252 | "syscon"; |
| 253 | reg = <0x14000 0x60>; |
| 254 | }; |
| 255 | |
| 256 | comphy: phy@18300 { |
| 257 | compatible = "marvell,comphy-a3700"; |
| 258 | reg = <0x18300 0x300>, |
| 259 | <0x1F000 0x400>, |
| 260 | <0x5C000 0x400>, |
| 261 | <0xe0178 0x8>; |
| 262 | reg-names = "comphy", |
| 263 | "lane1_pcie_gbe", |
| 264 | "lane0_usb3_gbe", |
| 265 | "lane2_sata_usb3"; |
| 266 | #address-cells = <1>; |
| 267 | #size-cells = <0>; |
| 268 | clocks = <&xtalclk>; |
| 269 | clock-names = "xtal"; |
| 270 | |
| 271 | comphy0: phy@0 { |
| 272 | reg = <0>; |
| 273 | #phy-cells = <1>; |
| 274 | }; |
| 275 | |
| 276 | comphy1: phy@1 { |
| 277 | reg = <1>; |
| 278 | #phy-cells = <1>; |
| 279 | }; |
| 280 | |
| 281 | comphy2: phy@2 { |
| 282 | reg = <2>; |
| 283 | #phy-cells = <1>; |
| 284 | }; |
| 285 | }; |
| 286 | |
| 287 | pinctrl_sb: pinctrl@18800 { |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 288 | compatible = "marvell,armada3710-sb-pinctrl", |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 289 | "syscon", "simple-mfd"; |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 290 | reg = <0x18800 0x100>, <0x18C00 0x20>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 291 | /* MPP2[23:0] */ |
| 292 | gpiosb: gpio { |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 293 | #gpio-cells = <2>; |
Ken Ma | b1a6658 | 2018-03-26 15:56:00 +0800 | [diff] [blame] | 294 | gpio-ranges = <&pinctrl_sb 0 0 30>; |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 295 | gpio-controller; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 296 | interrupt-controller; |
| 297 | #interrupt-cells = <2>; |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 298 | interrupts = |
| 299 | <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, |
| 300 | <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>, |
| 301 | <GIC_SPI 158 IRQ_TYPE_LEVEL_HIGH>, |
| 302 | <GIC_SPI 157 IRQ_TYPE_LEVEL_HIGH>, |
| 303 | <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>; |
| 304 | }; |
Gregory CLEMENT | 63921fa | 2017-05-09 13:35:22 +0200 | [diff] [blame] | 305 | |
| 306 | rgmii_pins: mii-pins { |
| 307 | groups = "rgmii"; |
| 308 | function = "mii"; |
| 309 | }; |
| 310 | |
Ken Ma | 3da0993 | 2018-03-26 15:56:04 +0800 | [diff] [blame] | 311 | smi_pins: smi-pins { |
| 312 | groups = "smi"; |
| 313 | function = "smi"; |
| 314 | }; |
| 315 | |
Ken Ma | 3046591 | 2018-03-26 15:55:58 +0800 | [diff] [blame] | 316 | sdio_pins: sdio-pins { |
| 317 | groups = "sdio_sb"; |
| 318 | function = "sdio"; |
| 319 | }; |
| 320 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 321 | pcie_reset_pins: pcie-reset-pins { |
| 322 | groups = "pcie1"; /* this actually controls "pcie1_reset" */ |
Ken Ma | 3da0993 | 2018-03-26 15:56:04 +0800 | [diff] [blame] | 323 | function = "gpio"; |
Ken Ma | 3046591 | 2018-03-26 15:55:58 +0800 | [diff] [blame] | 324 | }; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 325 | |
| 326 | pcie_clkreq_pins: pcie-clkreq-pins { |
| 327 | groups = "pcie1_clkreq"; |
| 328 | function = "pcie"; |
| 329 | }; |
Gregory CLEMENT | 7ed4d18 | 2017-05-09 13:35:32 +0200 | [diff] [blame] | 330 | }; |
| 331 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 332 | eth0: ethernet@30000 { |
| 333 | compatible = "marvell,armada-3700-neta"; |
| 334 | reg = <0x30000 0x4000>; |
| 335 | interrupts = <GIC_SPI 42 IRQ_TYPE_LEVEL_HIGH>; |
| 336 | clocks = <&sb_periph_clk 8>; |
| 337 | status = "disabled"; |
| 338 | }; |
| 339 | |
| 340 | mdio: mdio@32004 { |
| 341 | #address-cells = <1>; |
| 342 | #size-cells = <0>; |
| 343 | compatible = "marvell,orion-mdio"; |
| 344 | reg = <0x32004 0x4>; |
| 345 | }; |
| 346 | |
| 347 | eth1: ethernet@40000 { |
| 348 | compatible = "marvell,armada-3700-neta"; |
| 349 | reg = <0x40000 0x4000>; |
| 350 | interrupts = <GIC_SPI 45 IRQ_TYPE_LEVEL_HIGH>; |
| 351 | clocks = <&sb_periph_clk 7>; |
| 352 | status = "disabled"; |
| 353 | }; |
| 354 | |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 355 | usb3: usb@58000 { |
| 356 | compatible = "marvell,armada3700-xhci", |
| 357 | "generic-xhci"; |
| 358 | reg = <0x58000 0x4000>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 359 | marvell,usb-misc-reg = <&usb32_syscon>; |
| 360 | interrupts = <GIC_SPI 3 IRQ_TYPE_LEVEL_HIGH>; |
| 361 | clocks = <&sb_periph_clk 12>; |
| 362 | phys = <&comphy0 0>, <&usb2_utmi_otg_phy>; |
| 363 | phy-names = "usb3-phy", "usb2-utmi-otg-phy"; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 364 | status = "disabled"; |
| 365 | }; |
| 366 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 367 | usb2_utmi_otg_phy: phy@5d000 { |
| 368 | compatible = "marvell,a3700-utmi-otg-phy"; |
| 369 | reg = <0x5d000 0x800>; |
| 370 | marvell,usb-misc-reg = <&usb32_syscon>; |
| 371 | #phy-cells = <0>; |
| 372 | }; |
| 373 | |
| 374 | usb32_syscon: system-controller@5d800 { |
| 375 | compatible = "marvell,armada-3700-usb2-host-device-misc", |
| 376 | "syscon"; |
| 377 | reg = <0x5d800 0x800>; |
| 378 | }; |
| 379 | |
Stefan Roese | ffd836e | 2016-08-26 13:50:41 +0200 | [diff] [blame] | 380 | usb2: usb@5e000 { |
Pali Rohár | ecdc7bf | 2022-02-14 11:34:24 +0100 | [diff] [blame] | 381 | compatible = "marvell,armada-3700-ehci"; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 382 | reg = <0x5e000 0x1000>; |
| 383 | marvell,usb-misc-reg = <&usb2_syscon>; |
| 384 | interrupts = <GIC_SPI 17 IRQ_TYPE_LEVEL_HIGH>; |
| 385 | phys = <&usb2_utmi_host_phy>; |
| 386 | phy-names = "usb2-utmi-host-phy"; |
Stefan Roese | ffd836e | 2016-08-26 13:50:41 +0200 | [diff] [blame] | 387 | status = "disabled"; |
| 388 | }; |
| 389 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 390 | usb2_utmi_host_phy: phy@5f000 { |
| 391 | compatible = "marvell,a3700-utmi-host-phy"; |
| 392 | reg = <0x5f000 0x800>; |
| 393 | marvell,usb-misc-reg = <&usb2_syscon>; |
| 394 | #phy-cells = <0>; |
| 395 | }; |
| 396 | |
| 397 | usb2_syscon: system-controller@5f800 { |
| 398 | compatible = "marvell,armada-3700-usb2-host-misc", |
| 399 | "syscon"; |
| 400 | reg = <0x5f800 0x800>; |
| 401 | }; |
| 402 | |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 403 | xor@60900 { |
| 404 | compatible = "marvell,armada-3700-xor"; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 405 | reg = <0x60900 0x100>, |
| 406 | <0x60b00 0x100>; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 407 | |
| 408 | xor10 { |
| 409 | interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>; |
| 410 | }; |
| 411 | xor11 { |
| 412 | interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>; |
| 413 | }; |
| 414 | }; |
| 415 | |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 416 | crypto: crypto@90000 { |
| 417 | compatible = "inside-secure,safexcel-eip97ies"; |
| 418 | reg = <0x90000 0x20000>; |
| 419 | interrupts = <GIC_SPI 19 IRQ_TYPE_LEVEL_HIGH>, |
| 420 | <GIC_SPI 20 IRQ_TYPE_LEVEL_HIGH>, |
| 421 | <GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>, |
| 422 | <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>, |
| 423 | <GIC_SPI 23 IRQ_TYPE_LEVEL_HIGH>, |
| 424 | <GIC_SPI 24 IRQ_TYPE_LEVEL_HIGH>; |
| 425 | interrupt-names = "mem", "ring0", "ring1", |
| 426 | "ring2", "ring3", "eip"; |
| 427 | clocks = <&nb_periph_clk 15>; |
| 428 | }; |
| 429 | |
| 430 | rwtm: mailbox@b0000 { |
| 431 | compatible = "marvell,armada-3700-rwtm-mailbox"; |
| 432 | reg = <0xb0000 0x100>; |
| 433 | interrupts = <GIC_SPI 18 IRQ_TYPE_LEVEL_HIGH>; |
| 434 | #mbox-cells = <1>; |
| 435 | }; |
| 436 | |
Pali Rohár | c6bfdc2 | 2022-02-14 11:34:27 +0100 | [diff] [blame] | 437 | sdhci1: sdhci@d0000 { |
Stefan Roese | 1128589 | 2016-12-09 15:10:31 +0100 | [diff] [blame] | 438 | compatible = "marvell,armada-3700-sdhci", |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 439 | "marvell,sdhci-xenon"; |
| 440 | reg = <0xd0000 0x300>, |
| 441 | <0x1e808 0x4>; |
| 442 | interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>; |
| 443 | clocks = <&nb_periph_clk 0>; |
| 444 | clock-names = "core"; |
Stefan Roese | 1128589 | 2016-12-09 15:10:31 +0100 | [diff] [blame] | 445 | status = "disabled"; |
| 446 | }; |
| 447 | |
Pali Rohár | c6bfdc2 | 2022-02-14 11:34:27 +0100 | [diff] [blame] | 448 | sdhci0: sdhci@d8000 { |
Stefan Roese | 1128589 | 2016-12-09 15:10:31 +0100 | [diff] [blame] | 449 | compatible = "marvell,armada-3700-sdhci", |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 450 | "marvell,sdhci-xenon"; |
| 451 | reg = <0xd8000 0x300>, |
| 452 | <0x17808 0x4>; |
| 453 | interrupts = <GIC_SPI 26 IRQ_TYPE_LEVEL_HIGH>; |
| 454 | clocks = <&nb_periph_clk 0>; |
| 455 | clock-names = "core"; |
Stefan Roese | 1128589 | 2016-12-09 15:10:31 +0100 | [diff] [blame] | 456 | status = "disabled"; |
| 457 | }; |
| 458 | |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 459 | sata: sata@e0000 { |
| 460 | compatible = "marvell,armada-3700-ahci"; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 461 | reg = <0xe0000 0x178>; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 462 | interrupts = <GIC_SPI 27 IRQ_TYPE_LEVEL_HIGH>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 463 | clocks = <&nb_periph_clk 1>; |
| 464 | phys = <&comphy2 0>; |
| 465 | phy-names = "sata-phy"; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 466 | status = "disabled"; |
| 467 | }; |
| 468 | |
| 469 | gic: interrupt-controller@1d00000 { |
| 470 | compatible = "arm,gic-v3"; |
| 471 | #interrupt-cells = <3>; |
| 472 | interrupt-controller; |
| 473 | reg = <0x1d00000 0x10000>, /* GICD */ |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 474 | <0x1d40000 0x40000>, /* GICR */ |
| 475 | <0x1d80000 0x2000>, /* GICC */ |
| 476 | <0x1d90000 0x2000>, /* GICH */ |
| 477 | <0x1da0000 0x20000>; /* GICV */ |
| 478 | interrupts = <GIC_PPI 9 IRQ_TYPE_LEVEL_HIGH>; |
Stefan Roese | 50c111b | 2016-08-26 13:10:45 +0200 | [diff] [blame] | 479 | }; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 480 | }; |
Wilson Ding | 4655593 | 2018-03-26 15:57:31 +0800 | [diff] [blame] | 481 | |
| 482 | pcie0: pcie@d0070000 { |
Pali Rohár | 678cf9d | 2021-05-26 17:59:36 +0200 | [diff] [blame] | 483 | compatible = "marvell,armada-3700-pcie"; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 484 | device_type = "pci"; |
| 485 | status = "disabled"; |
Wilson Ding | 4655593 | 2018-03-26 15:57:31 +0800 | [diff] [blame] | 486 | reg = <0 0xd0070000 0 0x20000>; |
| 487 | #address-cells = <3>; |
| 488 | #size-cells = <2>; |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 489 | bus-range = <0x00 0xff>; |
| 490 | interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>; |
| 491 | #interrupt-cells = <1>; |
| 492 | msi-parent = <&pcie0>; |
| 493 | msi-controller; |
Pali Rohár | b03dfba | 2021-05-26 17:59:39 +0200 | [diff] [blame] | 494 | /* |
| 495 | * The 128 MiB address range [0xe8000000-0xf0000000] is |
| 496 | * dedicated for PCIe and can be assigned to 8 windows |
Pali Rohár | 6de3912 | 2021-09-23 11:07:18 +0200 | [diff] [blame] | 497 | * with size a power of two. Use one 1 MiB window for |
Pali Rohár | b03dfba | 2021-05-26 17:59:39 +0200 | [diff] [blame] | 498 | * IO at the end and the remaining seven windows |
| 499 | * (totaling 127 MiB) for MEM. |
| 500 | */ |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 501 | ranges = <0x82000000 0 0xe8000000 0 0xe8000000 0 0x07f00000 /* Port 0 MEM */ |
Pali Rohár | 976b7e2 | 2022-03-07 19:12:59 +0100 | [diff] [blame] | 502 | 0x81000000 0 0x00000000 0 0xeff00000 0 0x00100000>; /* Port 0 IO */ |
Pali Rohár | 790dd14 | 2022-02-14 11:34:30 +0100 | [diff] [blame] | 503 | interrupt-map-mask = <0 0 0 7>; |
| 504 | interrupt-map = <0 0 0 1 &pcie_intc 0>, |
| 505 | <0 0 0 2 &pcie_intc 1>, |
| 506 | <0 0 0 3 &pcie_intc 2>, |
| 507 | <0 0 0 4 &pcie_intc 3>; |
| 508 | max-link-speed = <2>; |
| 509 | phys = <&comphy1 0>; |
| 510 | pcie_intc: interrupt-controller { |
| 511 | interrupt-controller; |
| 512 | #interrupt-cells = <1>; |
| 513 | }; |
| 514 | }; |
| 515 | }; |
| 516 | |
| 517 | firmware { |
| 518 | armada-3700-rwtm { |
| 519 | compatible = "marvell,armada-3700-rwtm-firmware"; |
| 520 | mboxes = <&rwtm 0>; |
| 521 | status = "okay"; |
Wilson Ding | 4655593 | 2018-03-26 15:57:31 +0800 | [diff] [blame] | 522 | }; |
Stefan Roese | 7638f16 | 2016-05-17 14:03:25 +0200 | [diff] [blame] | 523 | }; |
| 524 | }; |