Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 1 | /* |
| 2 | * BSD LICENSE |
| 3 | * |
| 4 | * Copyright(c) 2015 Broadcom Corporation. All rights reserved. |
| 5 | * |
| 6 | * Redistribution and use in source and binary forms, with or without |
| 7 | * modification, are permitted provided that the following conditions |
| 8 | * are met: |
| 9 | * |
| 10 | * * Redistributions of source code must retain the above copyright |
| 11 | * notice, this list of conditions and the following disclaimer. |
| 12 | * * Redistributions in binary form must reproduce the above copyright |
| 13 | * notice, this list of conditions and the following disclaimer in |
| 14 | * the documentation and/or other materials provided with the |
| 15 | * distribution. |
| 16 | * * Neither the name of Broadcom Corporation nor the names of its |
| 17 | * contributors may be used to endorse or promote products derived |
| 18 | * from this software without specific prior written permission. |
| 19 | * |
| 20 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 21 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 22 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
| 23 | * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
| 24 | * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 25 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
| 26 | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
| 27 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 28 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 29 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 30 | * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 31 | */ |
| 32 | |
| 33 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 34 | #include <dt-bindings/interrupt-controller/irq.h> |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 35 | #include <dt-bindings/clock/bcm-nsp.h> |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 36 | |
| 37 | #include "skeleton.dtsi" |
| 38 | |
| 39 | / { |
| 40 | compatible = "brcm,nsp"; |
| 41 | model = "Broadcom Northstar Plus SoC"; |
| 42 | interrupt-parent = <&gic>; |
| 43 | |
Kapil Hali | 944725f | 2015-12-05 06:53:42 -0500 | [diff] [blame] | 44 | cpus { |
| 45 | #address-cells = <1>; |
| 46 | #size-cells = <0>; |
| 47 | |
Jon Mason | 9d57f60 | 2016-02-05 17:43:22 -0500 | [diff] [blame] | 48 | cpu0: cpu@0 { |
Kapil Hali | 944725f | 2015-12-05 06:53:42 -0500 | [diff] [blame] | 49 | device_type = "cpu"; |
| 50 | compatible = "arm,cortex-a9"; |
| 51 | next-level-cache = <&L2>; |
| 52 | reg = <0x0>; |
| 53 | }; |
| 54 | |
Jon Mason | 9d57f60 | 2016-02-05 17:43:22 -0500 | [diff] [blame] | 55 | cpu1: cpu@1 { |
Kapil Hali | 944725f | 2015-12-05 06:53:42 -0500 | [diff] [blame] | 56 | device_type = "cpu"; |
| 57 | compatible = "arm,cortex-a9"; |
| 58 | next-level-cache = <&L2>; |
| 59 | enable-method = "brcm,bcm-nsp-smp"; |
Jon Mason | f7f20cb | 2016-05-05 19:29:31 -0400 | [diff] [blame] | 60 | secondary-boot-reg = <0xffff0fec>; |
Kapil Hali | 944725f | 2015-12-05 06:53:42 -0500 | [diff] [blame] | 61 | reg = <0x1>; |
| 62 | }; |
| 63 | }; |
| 64 | |
Jon Mason | 9d57f60 | 2016-02-05 17:43:22 -0500 | [diff] [blame] | 65 | pmu { |
| 66 | compatible = "arm,cortex-a9-pmu"; |
| 67 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH |
| 68 | GIC_SPI 9 IRQ_TYPE_LEVEL_HIGH>; |
| 69 | interrupt-affinity = <&cpu0>, <&cpu1>; |
| 70 | }; |
| 71 | |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 72 | mpcore { |
| 73 | compatible = "simple-bus"; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 74 | ranges = <0x00000000 0x19000000 0x00023000>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 75 | #address-cells = <1>; |
| 76 | #size-cells = <1>; |
| 77 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 78 | a9pll: arm_clk@0 { |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 79 | #clock-cells = <0>; |
| 80 | compatible = "brcm,nsp-armpll"; |
| 81 | clocks = <&osc>; |
| 82 | reg = <0x00000 0x1000>; |
| 83 | }; |
| 84 | |
| 85 | timer@20200 { |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 86 | compatible = "arm,cortex-a9-global-timer"; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 87 | reg = <0x20200 0x100>; |
Florian Fainelli | 5f1aa51 | 2017-11-07 11:10:29 -0800 | [diff] [blame] | 88 | interrupts = <GIC_PPI 11 IRQ_TYPE_EDGE_RISING>; |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 89 | clocks = <&periph_clk>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 90 | }; |
| 91 | |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 92 | twd-timer@20600 { |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 93 | compatible = "arm,cortex-a9-twd-timer"; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 94 | reg = <0x20600 0x20>; |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 95 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | |
Florian Fainelli | 5f1aa51 | 2017-11-07 11:10:29 -0800 | [diff] [blame] | 96 | IRQ_TYPE_EDGE_RISING)>; |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 97 | clocks = <&periph_clk>; |
| 98 | }; |
| 99 | |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 100 | twd-watchdog@20620 { |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 101 | compatible = "arm,cortex-a9-twd-wdt"; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 102 | reg = <0x20620 0x20>; |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 103 | interrupts = <GIC_PPI 14 (GIC_CPU_MASK_SIMPLE(2) | |
| 104 | IRQ_TYPE_LEVEL_HIGH)>; |
| 105 | clocks = <&periph_clk>; |
| 106 | }; |
| 107 | |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 108 | gic: interrupt-controller@21000 { |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 109 | compatible = "arm,cortex-a9-gic"; |
| 110 | #interrupt-cells = <3>; |
| 111 | #address-cells = <0>; |
| 112 | interrupt-controller; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 113 | reg = <0x21000 0x1000>, |
| 114 | <0x20100 0x100>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 115 | }; |
| 116 | |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 117 | L2: l2-cache { |
| 118 | compatible = "arm,pl310-cache"; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 119 | reg = <0x22000 0x1000>; |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 120 | cache-unified; |
| 121 | cache-level = <2>; |
Jon Mason | 1a9d53c | 2015-11-02 13:40:58 -0500 | [diff] [blame] | 122 | }; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 123 | }; |
| 124 | |
| 125 | clocks { |
| 126 | #address-cells = <1>; |
| 127 | #size-cells = <1>; |
| 128 | ranges; |
| 129 | |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 130 | osc: oscillator { |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 131 | #clock-cells = <0>; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 132 | compatible = "fixed-clock"; |
| 133 | clock-frequency = <25000000>; |
| 134 | }; |
| 135 | |
| 136 | iprocmed: iprocmed { |
| 137 | #clock-cells = <0>; |
| 138 | compatible = "fixed-factor-clock"; |
| 139 | clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>; |
| 140 | clock-div = <2>; |
| 141 | clock-mult = <1>; |
| 142 | }; |
| 143 | |
| 144 | iprocslow: iprocslow { |
| 145 | #clock-cells = <0>; |
| 146 | compatible = "fixed-factor-clock"; |
| 147 | clocks = <&genpll BCM_NSP_GENPLL_IPROCFAST_CLK>; |
| 148 | clock-div = <4>; |
| 149 | clock-mult = <1>; |
| 150 | }; |
| 151 | |
| 152 | periph_clk: periph_clk { |
| 153 | #clock-cells = <0>; |
| 154 | compatible = "fixed-factor-clock"; |
| 155 | clocks = <&a9pll>; |
| 156 | clock-div = <2>; |
| 157 | clock-mult = <1>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 158 | }; |
| 159 | }; |
| 160 | |
| 161 | axi { |
| 162 | compatible = "simple-bus"; |
Jon Mason | 6771e01 | 2017-01-12 10:50:10 -0500 | [diff] [blame] | 163 | ranges = <0x00000000 0x18000000 0x0011c40c>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 164 | #address-cells = <1>; |
| 165 | #size-cells = <1>; |
| 166 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 167 | gpioa: gpio@20 { |
Yendapally Reddy Dhananjaya Reddy | 018e4fe | 2015-12-04 12:12:42 -0500 | [diff] [blame] | 168 | compatible = "brcm,nsp-gpio-a"; |
| 169 | reg = <0x0020 0x70>, |
| 170 | <0x3f1c4 0x1c>; |
| 171 | #gpio-cells = <2>; |
| 172 | gpio-controller; |
| 173 | ngpios = <32>; |
| 174 | interrupt-controller; |
| 175 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
| 176 | gpio-ranges = <&pinctrl 0 0 32>; |
| 177 | }; |
| 178 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 179 | uart0: serial@300 { |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 180 | compatible = "ns16550a"; |
| 181 | reg = <0x0300 0x100>; |
| 182 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 183 | clocks = <&osc>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 184 | status = "disabled"; |
| 185 | }; |
| 186 | |
Rob Herring | 8dccafa | 2017-10-13 12:54:51 -0500 | [diff] [blame] | 187 | uart1: serial@400 { |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 188 | compatible = "ns16550a"; |
| 189 | reg = <0x0400 0x100>; |
| 190 | interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 191 | clocks = <&osc>; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 192 | status = "disabled"; |
| 193 | }; |
Jon Mason | 1dbcfb2 | 2015-11-02 13:40:56 -0500 | [diff] [blame] | 194 | |
Jon Mason | 5fa1026 | 2016-06-07 18:28:07 -0400 | [diff] [blame] | 195 | dma@20000 { |
| 196 | compatible = "arm,pl330", "arm,primecell"; |
| 197 | reg = <0x20000 0x1000>; |
| 198 | interrupts = <GIC_SPI 47 IRQ_TYPE_LEVEL_HIGH>, |
| 199 | <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>, |
| 200 | <GIC_SPI 49 IRQ_TYPE_LEVEL_HIGH>, |
| 201 | <GIC_SPI 50 IRQ_TYPE_LEVEL_HIGH>, |
| 202 | <GIC_SPI 51 IRQ_TYPE_LEVEL_HIGH>, |
| 203 | <GIC_SPI 52 IRQ_TYPE_LEVEL_HIGH>, |
| 204 | <GIC_SPI 53 IRQ_TYPE_LEVEL_HIGH>, |
| 205 | <GIC_SPI 54 IRQ_TYPE_LEVEL_HIGH>, |
| 206 | <GIC_SPI 63 IRQ_TYPE_LEVEL_HIGH>; |
| 207 | clocks = <&iprocslow>; |
| 208 | clock-names = "apb_pclk"; |
| 209 | #dma-cells = <1>; |
| 210 | }; |
| 211 | |
Jon Mason | 3107fa5 | 2016-12-13 13:13:51 -0500 | [diff] [blame] | 212 | sdio: sdhci@21000 { |
| 213 | compatible = "brcm,sdhci-iproc-cygnus"; |
| 214 | reg = <0x21000 0x100>; |
| 215 | interrupts = <GIC_SPI 145 IRQ_TYPE_LEVEL_HIGH>; |
| 216 | sdhci,auto-cmd12; |
| 217 | clocks = <&lcpll0 BCM_NSP_LCPLL0_SDIO_CLK>; |
Jon Mason | 56e2ff0 | 2017-07-31 17:54:21 -0400 | [diff] [blame] | 218 | dma-coherent; |
Jon Mason | 3107fa5 | 2016-12-13 13:13:51 -0500 | [diff] [blame] | 219 | status = "disabled"; |
| 220 | }; |
| 221 | |
Jon Mason | 13d04f2 | 2016-07-08 11:56:02 -0400 | [diff] [blame] | 222 | amac0: ethernet@22000 { |
| 223 | compatible = "brcm,nsp-amac"; |
| 224 | reg = <0x022000 0x1000>, |
| 225 | <0x110000 0x1000>; |
| 226 | reg-names = "amac_base", "idm_base"; |
| 227 | interrupts = <GIC_SPI 147 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | 56e2ff0 | 2017-07-31 17:54:21 -0400 | [diff] [blame] | 228 | dma-coherent; |
Jon Mason | 13d04f2 | 2016-07-08 11:56:02 -0400 | [diff] [blame] | 229 | status = "disabled"; |
| 230 | }; |
| 231 | |
| 232 | amac1: ethernet@23000 { |
| 233 | compatible = "brcm,nsp-amac"; |
| 234 | reg = <0x023000 0x1000>, |
| 235 | <0x111000 0x1000>; |
| 236 | reg-names = "amac_base", "idm_base"; |
| 237 | interrupts = <GIC_SPI 148 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | 56e2ff0 | 2017-07-31 17:54:21 -0400 | [diff] [blame] | 238 | dma-coherent; |
Jon Mason | 13d04f2 | 2016-07-08 11:56:02 -0400 | [diff] [blame] | 239 | status = "disabled"; |
| 240 | }; |
| 241 | |
Jon Mason | 5aeda7b | 2016-12-13 13:13:49 -0500 | [diff] [blame] | 242 | amac2: ethernet@24000 { |
| 243 | compatible = "brcm,nsp-amac"; |
| 244 | reg = <0x024000 0x1000>, |
| 245 | <0x112000 0x1000>; |
| 246 | reg-names = "amac_base", "idm_base"; |
| 247 | interrupts = <GIC_SPI 149 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | 56e2ff0 | 2017-07-31 17:54:21 -0400 | [diff] [blame] | 248 | dma-coherent; |
Jon Mason | 5aeda7b | 2016-12-13 13:13:49 -0500 | [diff] [blame] | 249 | status = "disabled"; |
| 250 | }; |
| 251 | |
Steve Lin | 17d5171 | 2017-02-23 09:49:51 -0500 | [diff] [blame] | 252 | mailbox: mailbox@25000 { |
| 253 | compatible = "brcm,iproc-fa2-mbox"; |
| 254 | reg = <0x25000 0x445>; |
| 255 | interrupts = <GIC_SPI 150 IRQ_TYPE_LEVEL_HIGH>; |
| 256 | #mbox-cells = <1>; |
| 257 | brcm,rx-status-len = <32>; |
| 258 | brcm,use-bcm-hdr; |
Jon Mason | 56e2ff0 | 2017-07-31 17:54:21 -0400 | [diff] [blame] | 259 | dma-coherent; |
Steve Lin | 17d5171 | 2017-02-23 09:49:51 -0500 | [diff] [blame] | 260 | }; |
| 261 | |
Jon Mason | 7ba8cd8 | 2015-11-17 14:55:26 -0500 | [diff] [blame] | 262 | nand: nand@26000 { |
Jon Mason | 4125475 | 2015-11-02 13:40:57 -0500 | [diff] [blame] | 263 | compatible = "brcm,nand-iproc", "brcm,brcmnand-v6.1"; |
| 264 | reg = <0x026000 0x600>, |
| 265 | <0x11b408 0x600>, |
| 266 | <0x026f00 0x20>; |
| 267 | reg-names = "nand", "iproc-idm", "iproc-ext"; |
| 268 | interrupts = <GIC_SPI 68 IRQ_TYPE_LEVEL_HIGH>; |
| 269 | |
| 270 | #address-cells = <1>; |
| 271 | #size-cells = <0>; |
| 272 | |
| 273 | brcm,nand-has-wp; |
| 274 | }; |
Jon Mason | 0f9f27a | 2015-11-17 14:55:27 -0500 | [diff] [blame] | 275 | |
Rob Herring | ab0b47d2 | 2018-09-13 13:12:30 -0500 | [diff] [blame] | 276 | qspi: spi@27200 { |
Kamal Dasu | 329f98c | 2016-08-24 18:04:27 -0400 | [diff] [blame] | 277 | compatible = "brcm,spi-bcm-qspi", "brcm,spi-nsp-qspi"; |
| 278 | reg = <0x027200 0x184>, |
| 279 | <0x027000 0x124>, |
| 280 | <0x11c408 0x004>, |
| 281 | <0x0273a0 0x01c>; |
| 282 | reg-names = "mspi", "bspi", "intr_regs", |
| 283 | "intr_status_reg"; |
| 284 | interrupts = <GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>, |
| 285 | <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>, |
| 286 | <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>, |
| 287 | <GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>, |
| 288 | <GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>, |
| 289 | <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>, |
| 290 | <GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>; |
| 291 | interrupt-names = "spi_lr_fullness_reached", |
| 292 | "spi_lr_session_aborted", |
| 293 | "spi_lr_impatient", |
| 294 | "spi_lr_session_done", |
| 295 | "spi_lr_overhead", |
| 296 | "mspi_done", |
| 297 | "mspi_halted"; |
| 298 | clocks = <&iprocmed>; |
| 299 | clock-names = "iprocmed"; |
| 300 | num-cs = <2>; |
| 301 | #address-cells = <1>; |
| 302 | #size-cells = <0>; |
| 303 | }; |
| 304 | |
Jon Mason | bbe526f | 2017-07-31 17:54:23 -0400 | [diff] [blame] | 305 | xhci: usb@29000 { |
| 306 | compatible = "generic-xhci"; |
| 307 | reg = <0x29000 0x1000>; |
| 308 | interrupts = <GIC_SPI 80 IRQ_TYPE_LEVEL_HIGH>; |
| 309 | phys = <&usb3_phy>; |
| 310 | phy-names = "usb3-phy"; |
| 311 | dma-coherent; |
| 312 | status = "disabled"; |
| 313 | }; |
| 314 | |
Jon Mason | 2c5b851 | 2017-07-31 17:54:22 -0400 | [diff] [blame] | 315 | ehci0: usb@2a000 { |
| 316 | compatible = "generic-ehci"; |
| 317 | reg = <0x2a000 0x100>; |
| 318 | interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; |
| 319 | dma-coherent; |
| 320 | status = "disabled"; |
| 321 | }; |
| 322 | |
| 323 | ohci0: usb@2b000 { |
| 324 | compatible = "generic-ohci"; |
| 325 | reg = <0x2b000 0x100>; |
| 326 | interrupts = <GIC_SPI 79 IRQ_TYPE_LEVEL_HIGH>; |
| 327 | dma-coherent; |
| 328 | status = "disabled"; |
| 329 | }; |
| 330 | |
Steve Lin | ec73ab6 | 2017-02-22 16:22:23 -0500 | [diff] [blame] | 331 | crypto@2f000 { |
| 332 | compatible = "brcm,spum-nsp-crypto"; |
| 333 | reg = <0x2f000 0x900>; |
| 334 | mboxes = <&mailbox 0>; |
| 335 | }; |
| 336 | |
Jon Mason | 1fd2bb6 | 2016-12-13 13:13:45 -0500 | [diff] [blame] | 337 | gpiob: gpio@30000 { |
| 338 | compatible = "brcm,iproc-nsp-gpio", "brcm,iproc-gpio"; |
| 339 | reg = <0x30000 0x50>; |
| 340 | #gpio-cells = <2>; |
| 341 | gpio-controller; |
| 342 | ngpios = <4>; |
| 343 | interrupt-controller; |
| 344 | interrupts = <GIC_SPI 87 IRQ_TYPE_LEVEL_HIGH>; |
| 345 | }; |
| 346 | |
| 347 | pwm: pwm@31000 { |
| 348 | compatible = "brcm,iproc-pwm"; |
| 349 | reg = <0x31000 0x28>; |
| 350 | clocks = <&osc>; |
| 351 | #pwm-cells = <3>; |
| 352 | status = "disabled"; |
| 353 | }; |
| 354 | |
| 355 | rng: rng@33000 { |
| 356 | compatible = "brcm,bcm-nsp-rng"; |
| 357 | reg = <0x33000 0x14>; |
| 358 | }; |
| 359 | |
Jon Mason | a0efb0d | 2016-02-06 12:53:39 -0500 | [diff] [blame] | 360 | ccbtimer0: timer@34000 { |
| 361 | compatible = "arm,sp804"; |
| 362 | reg = <0x34000 0x1000>; |
| 363 | interrupts = <GIC_SPI 90 IRQ_TYPE_LEVEL_HIGH>, |
| 364 | <GIC_SPI 91 IRQ_TYPE_LEVEL_HIGH>; |
| 365 | clocks = <&iprocslow>; |
| 366 | clock-names = "apb_pclk"; |
| 367 | }; |
| 368 | |
| 369 | ccbtimer1: timer@35000 { |
| 370 | compatible = "arm,sp804"; |
| 371 | reg = <0x35000 0x1000>; |
| 372 | interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>, |
| 373 | <GIC_SPI 93 IRQ_TYPE_LEVEL_HIGH>; |
| 374 | clocks = <&iprocslow>; |
| 375 | clock-names = "apb_pclk"; |
| 376 | }; |
| 377 | |
Florian Fainelli | bf2289b | 2016-07-08 11:49:28 -0700 | [diff] [blame] | 378 | srab: srab@36000 { |
| 379 | compatible = "brcm,nsp-srab"; |
Florian Fainelli | ccf8b4e | 2018-08-31 12:20:39 -0700 | [diff] [blame] | 380 | reg = <0x36000 0x1000>, |
| 381 | <0x3f308 0x8>, |
| 382 | <0x3f410 0xc>; |
| 383 | reg-names = "srab", "mux_config", "sgmii"; |
| 384 | interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>, |
| 385 | <GIC_SPI 96 IRQ_TYPE_LEVEL_HIGH>, |
| 386 | <GIC_SPI 97 IRQ_TYPE_LEVEL_HIGH>, |
| 387 | <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>, |
| 388 | <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>, |
| 389 | <GIC_SPI 100 IRQ_TYPE_LEVEL_HIGH>, |
| 390 | <GIC_SPI 101 IRQ_TYPE_LEVEL_HIGH>, |
| 391 | <GIC_SPI 102 IRQ_TYPE_LEVEL_HIGH>, |
| 392 | <GIC_SPI 103 IRQ_TYPE_LEVEL_HIGH>, |
| 393 | <GIC_SPI 104 IRQ_TYPE_LEVEL_HIGH>, |
| 394 | <GIC_SPI 105 IRQ_TYPE_LEVEL_HIGH>, |
| 395 | <GIC_SPI 106 IRQ_TYPE_LEVEL_HIGH>, |
| 396 | <GIC_SPI 107 IRQ_TYPE_LEVEL_HIGH>; |
| 397 | interrupt-names = "link_state_p0", |
| 398 | "link_state_p1", |
| 399 | "link_state_p2", |
| 400 | "link_state_p3", |
| 401 | "link_state_p4", |
| 402 | "link_state_p5", |
| 403 | "link_state_p7", |
| 404 | "link_state_p8", |
| 405 | "phy", |
| 406 | "ts", |
| 407 | "imp_sleep_timer_p5", |
| 408 | "imp_sleep_timer_p7", |
| 409 | "imp_sleep_timer_p8"; |
Florian Fainelli | bf2289b | 2016-07-08 11:49:28 -0700 | [diff] [blame] | 410 | #address-cells = <1>; |
| 411 | #size-cells = <0>; |
| 412 | |
| 413 | status = "disabled"; |
| 414 | |
| 415 | /* ports are defined in board DTS */ |
| 416 | }; |
| 417 | |
Jon Mason | 0f9f27a | 2015-11-17 14:55:27 -0500 | [diff] [blame] | 418 | i2c0: i2c@38000 { |
| 419 | compatible = "brcm,iproc-i2c"; |
| 420 | reg = <0x38000 0x50>; |
| 421 | #address-cells = <1>; |
| 422 | #size-cells = <0>; |
Florian Fainelli | a3e32e7 | 2018-06-11 15:47:12 -0700 | [diff] [blame] | 423 | interrupts = <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | 0f9f27a | 2015-11-17 14:55:27 -0500 | [diff] [blame] | 424 | clock-frequency = <100000>; |
Jon Mason | 56e2ff0 | 2017-07-31 17:54:21 -0400 | [diff] [blame] | 425 | dma-coherent; |
Jon Mason | 6822d77 | 2017-03-07 18:34:55 -0500 | [diff] [blame] | 426 | status = "disabled"; |
Jon Mason | 0f9f27a | 2015-11-17 14:55:27 -0500 | [diff] [blame] | 427 | }; |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 428 | |
Jon Mason | 7c3fe8a | 2016-02-05 17:43:23 -0500 | [diff] [blame] | 429 | watchdog@39000 { |
| 430 | compatible = "arm,sp805", "arm,primecell"; |
| 431 | reg = <0x39000 0x1000>; |
| 432 | interrupts = <GIC_SPI 126 IRQ_TYPE_LEVEL_HIGH>; |
| 433 | clocks = <&iprocslow>, <&iprocslow>; |
| 434 | clock-names = "wdogclk", "apb_pclk"; |
| 435 | }; |
| 436 | |
Jon Mason | da3f974 | 2015-11-20 10:17:19 -0500 | [diff] [blame] | 437 | lcpll0: lcpll0@3f100 { |
| 438 | #clock-cells = <1>; |
| 439 | compatible = "brcm,nsp-lcpll0"; |
| 440 | reg = <0x3f100 0x14>; |
| 441 | clocks = <&osc>; |
| 442 | clock-output-names = "lcpll0", "pcie_phy", "sdio", |
| 443 | "ddr_phy"; |
| 444 | }; |
| 445 | |
| 446 | genpll: genpll@3f140 { |
| 447 | #clock-cells = <1>; |
| 448 | compatible = "brcm,nsp-genpll"; |
| 449 | reg = <0x3f140 0x24>; |
| 450 | clocks = <&osc>; |
| 451 | clock-output-names = "genpll", "phy", "ethernetclk", |
| 452 | "usbclk", "iprocfast", "sata1", |
| 453 | "sata2"; |
| 454 | }; |
Yendapally Reddy Dhananjaya Reddy | ea2d897 | 2015-11-20 12:58:29 -0500 | [diff] [blame] | 455 | |
| 456 | pinctrl: pinctrl@3f1c0 { |
| 457 | compatible = "brcm,nsp-pinmux"; |
| 458 | reg = <0x3f1c0 0x04>, |
| 459 | <0x30028 0x04>, |
| 460 | <0x3f408 0x04>; |
| 461 | }; |
Yendapally Reddy Dhananjaya Reddy | 8dbcad0 | 2016-06-16 09:53:35 -0400 | [diff] [blame] | 462 | |
Jon Mason | 2896cb5 | 2017-04-28 16:11:31 -0400 | [diff] [blame] | 463 | thermal: thermal@3f2c0 { |
| 464 | compatible = "brcm,ns-thermal"; |
| 465 | reg = <0x3f2c0 0x10>; |
| 466 | #thermal-sensor-cells = <0>; |
| 467 | }; |
| 468 | |
Yendapally Reddy Dhananjaya Reddy | 8dbcad0 | 2016-06-16 09:53:35 -0400 | [diff] [blame] | 469 | sata_phy: sata_phy@40100 { |
| 470 | compatible = "brcm,iproc-nsp-sata-phy"; |
| 471 | reg = <0x40100 0x340>; |
| 472 | reg-names = "phy"; |
| 473 | #address-cells = <1>; |
| 474 | #size-cells = <0>; |
| 475 | |
| 476 | sata_phy0: sata-phy@0 { |
| 477 | reg = <0>; |
| 478 | #phy-cells = <0>; |
| 479 | status = "disabled"; |
| 480 | }; |
| 481 | |
| 482 | sata_phy1: sata-phy@1 { |
| 483 | reg = <1>; |
| 484 | #phy-cells = <0>; |
| 485 | status = "disabled"; |
| 486 | }; |
| 487 | }; |
| 488 | |
| 489 | sata: ahci@41000 { |
| 490 | compatible = "brcm,bcm-nsp-ahci"; |
| 491 | reg-names = "ahci", "top-ctrl"; |
| 492 | reg = <0x41000 0x1000>, <0x40020 0x1c>; |
| 493 | interrupts = <GIC_SPI 159 IRQ_TYPE_LEVEL_HIGH>; |
| 494 | #address-cells = <1>; |
| 495 | #size-cells = <0>; |
Jon Mason | 56e2ff0 | 2017-07-31 17:54:21 -0400 | [diff] [blame] | 496 | dma-coherent; |
Yendapally Reddy Dhananjaya Reddy | 8dbcad0 | 2016-06-16 09:53:35 -0400 | [diff] [blame] | 497 | status = "disabled"; |
| 498 | |
| 499 | sata0: sata-port@0 { |
| 500 | reg = <0>; |
| 501 | phys = <&sata_phy0>; |
| 502 | phy-names = "sata-phy"; |
| 503 | }; |
| 504 | |
| 505 | sata1: sata-port@1 { |
| 506 | reg = <1>; |
| 507 | phys = <&sata_phy1>; |
| 508 | phy-names = "sata-phy"; |
| 509 | }; |
| 510 | }; |
Jon Mason | bbe526f | 2017-07-31 17:54:23 -0400 | [diff] [blame] | 511 | |
| 512 | usb3_phy: usb3-phy@104000 { |
| 513 | compatible = "brcm,ns-bx-usb3-phy"; |
| 514 | reg = <0x104000 0x1000>, |
| 515 | <0x032000 0x1000>; |
| 516 | reg-names = "dmp", "ccb-mii"; |
| 517 | #phy-cells = <0>; |
| 518 | status = "disabled"; |
| 519 | }; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 520 | }; |
Jon Mason | 5221990 | 2016-02-05 17:43:20 -0500 | [diff] [blame] | 521 | |
| 522 | pcie0: pcie@18012000 { |
| 523 | compatible = "brcm,iproc-pcie"; |
| 524 | reg = <0x18012000 0x1000>; |
| 525 | |
| 526 | #interrupt-cells = <1>; |
| 527 | interrupt-map-mask = <0 0 0 0>; |
Florian Fainelli | 403fde6 | 2018-06-11 15:47:13 -0700 | [diff] [blame] | 528 | interrupt-map = <0 0 0 0 &gic GIC_SPI 131 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | 5221990 | 2016-02-05 17:43:20 -0500 | [diff] [blame] | 529 | |
| 530 | linux,pci-domain = <0>; |
| 531 | |
| 532 | bus-range = <0x00 0xff>; |
| 533 | |
| 534 | #address-cells = <3>; |
| 535 | #size-cells = <2>; |
| 536 | device_type = "pci"; |
| 537 | |
| 538 | /* Note: The HW does not support I/O resources. So, |
| 539 | * only the memory resource range is being specified. |
| 540 | */ |
| 541 | ranges = <0x82000000 0 0x08000000 0x08000000 0 0x8000000>; |
| 542 | |
Jon Mason | 56e2ff0 | 2017-07-31 17:54:21 -0400 | [diff] [blame] | 543 | dma-coherent; |
Jon Mason | 5221990 | 2016-02-05 17:43:20 -0500 | [diff] [blame] | 544 | status = "disabled"; |
Jon Mason | d71eb94 | 2016-05-05 19:29:30 -0400 | [diff] [blame] | 545 | |
| 546 | msi-parent = <&msi0>; |
Rob Herring | 0f11736 | 2017-03-21 21:03:08 -0500 | [diff] [blame] | 547 | msi0: msi-controller { |
Jon Mason | d71eb94 | 2016-05-05 19:29:30 -0400 | [diff] [blame] | 548 | compatible = "brcm,iproc-msi"; |
| 549 | msi-controller; |
| 550 | interrupt-parent = <&gic>; |
Florian Fainelli | 403fde6 | 2018-06-11 15:47:13 -0700 | [diff] [blame] | 551 | interrupts = <GIC_SPI 127 IRQ_TYPE_LEVEL_HIGH>, |
| 552 | <GIC_SPI 128 IRQ_TYPE_LEVEL_HIGH>, |
| 553 | <GIC_SPI 129 IRQ_TYPE_LEVEL_HIGH>, |
| 554 | <GIC_SPI 130 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | d71eb94 | 2016-05-05 19:29:30 -0400 | [diff] [blame] | 555 | brcm,pcie-msi-inten; |
| 556 | }; |
Jon Mason | 5221990 | 2016-02-05 17:43:20 -0500 | [diff] [blame] | 557 | }; |
| 558 | |
| 559 | pcie1: pcie@18013000 { |
| 560 | compatible = "brcm,iproc-pcie"; |
| 561 | reg = <0x18013000 0x1000>; |
| 562 | |
| 563 | #interrupt-cells = <1>; |
| 564 | interrupt-map-mask = <0 0 0 0>; |
Florian Fainelli | 403fde6 | 2018-06-11 15:47:13 -0700 | [diff] [blame] | 565 | interrupt-map = <0 0 0 0 &gic GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | 5221990 | 2016-02-05 17:43:20 -0500 | [diff] [blame] | 566 | |
| 567 | linux,pci-domain = <1>; |
| 568 | |
| 569 | bus-range = <0x00 0xff>; |
| 570 | |
| 571 | #address-cells = <3>; |
| 572 | #size-cells = <2>; |
| 573 | device_type = "pci"; |
| 574 | |
| 575 | /* Note: The HW does not support I/O resources. So, |
| 576 | * only the memory resource range is being specified. |
| 577 | */ |
| 578 | ranges = <0x82000000 0 0x40000000 0x40000000 0 0x8000000>; |
| 579 | |
Jon Mason | 56e2ff0 | 2017-07-31 17:54:21 -0400 | [diff] [blame] | 580 | dma-coherent; |
Jon Mason | 5221990 | 2016-02-05 17:43:20 -0500 | [diff] [blame] | 581 | status = "disabled"; |
Jon Mason | d71eb94 | 2016-05-05 19:29:30 -0400 | [diff] [blame] | 582 | |
| 583 | msi-parent = <&msi1>; |
Rob Herring | 0f11736 | 2017-03-21 21:03:08 -0500 | [diff] [blame] | 584 | msi1: msi-controller { |
Jon Mason | d71eb94 | 2016-05-05 19:29:30 -0400 | [diff] [blame] | 585 | compatible = "brcm,iproc-msi"; |
| 586 | msi-controller; |
| 587 | interrupt-parent = <&gic>; |
Florian Fainelli | 403fde6 | 2018-06-11 15:47:13 -0700 | [diff] [blame] | 588 | interrupts = <GIC_SPI 133 IRQ_TYPE_LEVEL_HIGH>, |
| 589 | <GIC_SPI 134 IRQ_TYPE_LEVEL_HIGH>, |
| 590 | <GIC_SPI 135 IRQ_TYPE_LEVEL_HIGH>, |
| 591 | <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | d71eb94 | 2016-05-05 19:29:30 -0400 | [diff] [blame] | 592 | brcm,pcie-msi-inten; |
| 593 | }; |
Jon Mason | 5221990 | 2016-02-05 17:43:20 -0500 | [diff] [blame] | 594 | }; |
| 595 | |
| 596 | pcie2: pcie@18014000 { |
| 597 | compatible = "brcm,iproc-pcie"; |
| 598 | reg = <0x18014000 0x1000>; |
| 599 | |
| 600 | #interrupt-cells = <1>; |
| 601 | interrupt-map-mask = <0 0 0 0>; |
Florian Fainelli | 403fde6 | 2018-06-11 15:47:13 -0700 | [diff] [blame] | 602 | interrupt-map = <0 0 0 0 &gic GIC_SPI 143 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | 5221990 | 2016-02-05 17:43:20 -0500 | [diff] [blame] | 603 | |
| 604 | linux,pci-domain = <2>; |
| 605 | |
| 606 | bus-range = <0x00 0xff>; |
| 607 | |
| 608 | #address-cells = <3>; |
| 609 | #size-cells = <2>; |
| 610 | device_type = "pci"; |
| 611 | |
| 612 | /* Note: The HW does not support I/O resources. So, |
| 613 | * only the memory resource range is being specified. |
| 614 | */ |
| 615 | ranges = <0x82000000 0 0x48000000 0x48000000 0 0x8000000>; |
| 616 | |
Jon Mason | 56e2ff0 | 2017-07-31 17:54:21 -0400 | [diff] [blame] | 617 | dma-coherent; |
Jon Mason | 5221990 | 2016-02-05 17:43:20 -0500 | [diff] [blame] | 618 | status = "disabled"; |
Jon Mason | d71eb94 | 2016-05-05 19:29:30 -0400 | [diff] [blame] | 619 | |
| 620 | msi-parent = <&msi2>; |
Rob Herring | 0f11736 | 2017-03-21 21:03:08 -0500 | [diff] [blame] | 621 | msi2: msi-controller { |
Jon Mason | d71eb94 | 2016-05-05 19:29:30 -0400 | [diff] [blame] | 622 | compatible = "brcm,iproc-msi"; |
| 623 | msi-controller; |
| 624 | interrupt-parent = <&gic>; |
Florian Fainelli | 403fde6 | 2018-06-11 15:47:13 -0700 | [diff] [blame] | 625 | interrupts = <GIC_SPI 139 IRQ_TYPE_LEVEL_HIGH>, |
| 626 | <GIC_SPI 140 IRQ_TYPE_LEVEL_HIGH>, |
| 627 | <GIC_SPI 141 IRQ_TYPE_LEVEL_HIGH>, |
| 628 | <GIC_SPI 142 IRQ_TYPE_LEVEL_HIGH>; |
Jon Mason | d71eb94 | 2016-05-05 19:29:30 -0400 | [diff] [blame] | 629 | brcm,pcie-msi-inten; |
| 630 | }; |
Jon Mason | 5221990 | 2016-02-05 17:43:20 -0500 | [diff] [blame] | 631 | }; |
Jon Mason | 2896cb5 | 2017-04-28 16:11:31 -0400 | [diff] [blame] | 632 | |
| 633 | thermal-zones { |
| 634 | cpu-thermal { |
| 635 | polling-delay-passive = <0>; |
| 636 | polling-delay = <1000>; |
| 637 | coefficients = <(-556) 418000>; |
| 638 | thermal-sensors = <&thermal>; |
| 639 | |
| 640 | trips { |
| 641 | cpu-crit { |
| 642 | temperature = <125000>; |
| 643 | hysteresis = <0>; |
| 644 | type = "critical"; |
| 645 | }; |
| 646 | }; |
| 647 | |
| 648 | cooling-maps { |
| 649 | }; |
| 650 | }; |
| 651 | }; |
Jon Mason | 7b2e987 | 2015-08-31 19:48:53 -0400 | [diff] [blame] | 652 | }; |