Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Carlo Caione <carlo@caione.org> |
| 3 | * |
| 4 | * This file is dual-licensed: you can use it either under the terms |
| 5 | * of the GPL or the X11 license, at your option. Note that this dual |
| 6 | * licensing only applies to this file, and not this project as a |
| 7 | * whole. |
| 8 | * |
| 9 | * a) This library is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License as |
| 11 | * published by the Free Software Foundation; either version 2 of the |
| 12 | * License, or (at your option) any later version. |
| 13 | * |
| 14 | * This library is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public |
| 20 | * License along with this library; if not, write to the Free |
| 21 | * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, |
| 22 | * MA 02110-1301 USA |
| 23 | * |
| 24 | * Or, alternatively, |
| 25 | * |
| 26 | * b) Permission is hereby granted, free of charge, to any person |
| 27 | * obtaining a copy of this software and associated documentation |
| 28 | * files (the "Software"), to deal in the Software without |
| 29 | * restriction, including without limitation the rights to use, |
| 30 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 31 | * sell copies of the Software, and to permit persons to whom the |
| 32 | * Software is furnished to do so, subject to the following |
| 33 | * conditions: |
| 34 | * |
| 35 | * The above copyright notice and this permission notice shall be |
| 36 | * included in all copies or substantial portions of the Software. |
| 37 | * |
| 38 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 39 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 40 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 41 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 42 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 43 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 44 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 45 | * OTHER DEALINGS IN THE SOFTWARE. |
| 46 | */ |
| 47 | |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 48 | #include <dt-bindings/interrupt-controller/irq.h> |
| 49 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 50 | |
| 51 | / { |
Rob Herring | abe60a3 | 2019-01-09 10:26:14 -0600 | [diff] [blame^] | 52 | #address-cells = <1>; |
| 53 | #size-cells = <1>; |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 54 | interrupt-parent = <&gic>; |
| 55 | |
Beniamino Galvani | 550ab39 | 2014-11-18 15:30:35 +0100 | [diff] [blame] | 56 | L2: l2-cache-controller@c4200000 { |
| 57 | compatible = "arm,pl310-cache"; |
| 58 | reg = <0xc4200000 0x1000>; |
| 59 | cache-unified; |
| 60 | cache-level = <2>; |
| 61 | }; |
| 62 | |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 63 | soc { |
| 64 | compatible = "simple-bus"; |
| 65 | #address-cells = <1>; |
| 66 | #size-cells = <1>; |
| 67 | ranges; |
| 68 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 69 | cbus: cbus@c1100000 { |
| 70 | compatible = "simple-bus"; |
| 71 | reg = <0xc1100000 0x200000>; |
Beniamino Galvani | 8fba96f | 2014-11-13 20:32:03 +0100 | [diff] [blame] | 72 | #address-cells = <1>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 73 | #size-cells = <1>; |
| 74 | ranges = <0x0 0xc1100000 0x200000>; |
| 75 | |
Martin Blumenstingl | bd835d5 | 2017-09-23 16:14:03 +0200 | [diff] [blame] | 76 | assist: assist@7c00 { |
| 77 | compatible = "amlogic,meson-mx-assist", "syscon"; |
| 78 | reg = <0x7c00 0x200>; |
| 79 | }; |
| 80 | |
Martin Blumenstingl | a35910d | 2017-06-15 23:33:49 +0200 | [diff] [blame] | 81 | hwrng: rng@8100 { |
| 82 | compatible = "amlogic,meson-rng"; |
| 83 | reg = <0x8100 0x8>; |
| 84 | }; |
| 85 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 86 | uart_A: serial@84c0 { |
Neil Armstrong | ec9b591 | 2017-06-21 16:42:12 +0200 | [diff] [blame] | 87 | compatible = "amlogic,meson6-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 88 | reg = <0x84c0 0x18>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 89 | interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 90 | status = "disabled"; |
| 91 | }; |
| 92 | |
| 93 | uart_B: serial@84dc { |
Neil Armstrong | ec9b591 | 2017-06-21 16:42:12 +0200 | [diff] [blame] | 94 | compatible = "amlogic,meson6-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 95 | reg = <0x84dc 0x18>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 96 | interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 97 | status = "disabled"; |
| 98 | }; |
| 99 | |
| 100 | i2c_A: i2c@8500 { |
| 101 | compatible = "amlogic,meson6-i2c"; |
| 102 | reg = <0x8500 0x20>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 103 | interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 104 | #address-cells = <1>; |
| 105 | #size-cells = <0>; |
| 106 | status = "disabled"; |
| 107 | }; |
| 108 | |
Martin Blumenstingl | 440bdcd | 2017-07-12 00:20:14 +0200 | [diff] [blame] | 109 | pwm_ab: pwm@8550 { |
| 110 | compatible = "amlogic,meson-pwm"; |
| 111 | reg = <0x8550 0x10>; |
| 112 | #pwm-cells = <3>; |
| 113 | status = "disabled"; |
| 114 | }; |
| 115 | |
| 116 | pwm_cd: pwm@8650 { |
| 117 | compatible = "amlogic,meson-pwm"; |
| 118 | reg = <0x8650 0x10>; |
| 119 | #pwm-cells = <3>; |
| 120 | status = "disabled"; |
| 121 | }; |
| 122 | |
Martin Blumenstingl | a39a3b9 | 2017-06-15 23:33:47 +0200 | [diff] [blame] | 123 | saradc: adc@8680 { |
| 124 | compatible = "amlogic,meson-saradc"; |
| 125 | reg = <0x8680 0x34>; |
| 126 | #io-channel-cells = <1>; |
| 127 | interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>; |
| 128 | status = "disabled"; |
| 129 | }; |
| 130 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 131 | uart_C: serial@8700 { |
Neil Armstrong | ec9b591 | 2017-06-21 16:42:12 +0200 | [diff] [blame] | 132 | compatible = "amlogic,meson6-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 133 | reg = <0x8700 0x18>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 134 | interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 135 | status = "disabled"; |
| 136 | }; |
| 137 | |
| 138 | i2c_B: i2c@87c0 { |
| 139 | compatible = "amlogic,meson6-i2c"; |
| 140 | reg = <0x87c0 0x20>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 141 | interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 142 | #address-cells = <1>; |
| 143 | #size-cells = <0>; |
| 144 | status = "disabled"; |
| 145 | }; |
| 146 | |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 147 | usb0_phy: phy@8800 { |
| 148 | compatible = "amlogic,meson-mx-usb2-phy"; |
| 149 | #phy-cells = <0>; |
| 150 | reg = <0x8800 0x20>; |
| 151 | status = "disabled"; |
| 152 | }; |
| 153 | |
| 154 | usb1_phy: phy@8820 { |
| 155 | compatible = "amlogic,meson-mx-usb2-phy"; |
| 156 | #phy-cells = <0>; |
| 157 | reg = <0x8820 0x20>; |
| 158 | status = "disabled"; |
| 159 | }; |
| 160 | |
Martin Blumenstingl | 88b1b18 | 2017-10-07 18:29:39 +0200 | [diff] [blame] | 161 | sdio: mmc@8c20 { |
| 162 | compatible = "amlogic,meson-mx-sdio"; |
| 163 | reg = <0x8c20 0x20>; |
| 164 | interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>; |
| 165 | #address-cells = <1>; |
| 166 | #size-cells = <0>; |
| 167 | status = "disabled"; |
| 168 | }; |
| 169 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 170 | spifc: spi@8c80 { |
| 171 | compatible = "amlogic,meson6-spifc"; |
| 172 | reg = <0x8c80 0x80>; |
| 173 | #address-cells = <1>; |
| 174 | #size-cells = <0>; |
| 175 | status = "disabled"; |
| 176 | }; |
| 177 | |
Martin Blumenstingl | 208e4ea | 2017-10-30 00:17:14 +0100 | [diff] [blame] | 178 | gpio_intc: interrupt-controller@9880 { |
| 179 | compatible = "amlogic,meson-gpio-intc"; |
Martin Blumenstingl | 9fd7a2e | 2017-10-30 00:17:15 +0100 | [diff] [blame] | 180 | reg = <0x9880 0x10>; |
Martin Blumenstingl | 208e4ea | 2017-10-30 00:17:14 +0100 | [diff] [blame] | 181 | interrupt-controller; |
| 182 | #interrupt-cells = <2>; |
| 183 | amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>; |
| 184 | status = "disabled"; |
| 185 | }; |
| 186 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 187 | wdt: watchdog@9900 { |
| 188 | compatible = "amlogic,meson6-wdt"; |
| 189 | reg = <0x9900 0x8>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 190 | interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 191 | }; |
| 192 | |
Martin Blumenstingl | 7b141ab | 2018-11-16 21:42:35 +0100 | [diff] [blame] | 193 | timer_abcde: timer@9940 { |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 194 | compatible = "amlogic,meson6-timer"; |
| 195 | reg = <0x9940 0x18>; |
Martin Blumenstingl | 523b8b3 | 2018-11-16 21:42:34 +0100 | [diff] [blame] | 196 | interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>, |
| 197 | <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>, |
| 198 | <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>, |
| 199 | <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 200 | }; |
Beniamino Galvani | 8fba96f | 2014-11-13 20:32:03 +0100 | [diff] [blame] | 201 | }; |
| 202 | |
Martin Blumenstingl | e8c276d | 2018-11-23 20:53:07 +0100 | [diff] [blame] | 203 | periph: bus@c4300000 { |
| 204 | compatible = "simple-bus"; |
| 205 | reg = <0xc4300000 0x10000>; |
| 206 | #address-cells = <1>; |
| 207 | #size-cells = <1>; |
| 208 | ranges = <0x0 0xc4300000 0x10000>; |
| 209 | |
| 210 | gic: interrupt-controller@1000 { |
| 211 | compatible = "arm,cortex-a9-gic"; |
| 212 | reg = <0x1000 0x1000>, |
| 213 | <0x100 0x100>; |
| 214 | interrupt-controller; |
| 215 | #interrupt-cells = <3>; |
| 216 | }; |
| 217 | }; |
| 218 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 219 | aobus: aobus@c8100000 { |
| 220 | compatible = "simple-bus"; |
| 221 | reg = <0xc8100000 0x100000>; |
Beniamino Galvani | 8fba96f | 2014-11-13 20:32:03 +0100 | [diff] [blame] | 222 | #address-cells = <1>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 223 | #size-cells = <1>; |
| 224 | ranges = <0x0 0xc8100000 0x100000>; |
Beniamino Galvani | 8fba96f | 2014-11-13 20:32:03 +0100 | [diff] [blame] | 225 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 226 | ir_receiver: ir-receiver@480 { |
| 227 | compatible= "amlogic,meson6-ir"; |
| 228 | reg = <0x480 0x20>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 229 | interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 230 | status = "disabled"; |
| 231 | }; |
Linus Torvalds | 2183a58 | 2014-12-11 11:49:23 -0800 | [diff] [blame] | 232 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 233 | uart_AO: serial@4c0 { |
Neil Armstrong | ec9b591 | 2017-06-21 16:42:12 +0200 | [diff] [blame] | 234 | compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 235 | reg = <0x4c0 0x18>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 236 | interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 237 | status = "disabled"; |
| 238 | }; |
Beniamino Galvani | 03bb951 | 2015-03-01 20:39:51 +0100 | [diff] [blame] | 239 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 240 | i2c_AO: i2c@500 { |
| 241 | compatible = "amlogic,meson6-i2c"; |
| 242 | reg = <0x500 0x20>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 243 | interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 244 | #address-cells = <1>; |
| 245 | #size-cells = <0>; |
| 246 | status = "disabled"; |
| 247 | }; |
Beniamino Galvani | 03bb951 | 2015-03-01 20:39:51 +0100 | [diff] [blame] | 248 | }; |
Beniamino Galvani | 2345d50 | 2015-03-01 20:45:37 +0100 | [diff] [blame] | 249 | |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 250 | usb0: usb@c9040000 { |
| 251 | compatible = "snps,dwc2"; |
| 252 | #address-cells = <1>; |
| 253 | #size-cells = <0>; |
| 254 | reg = <0xc9040000 0x40000>; |
Emiliano Ingrassia | 291f45d | 2017-09-22 13:57:08 +0200 | [diff] [blame] | 255 | interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 256 | phys = <&usb0_phy>; |
| 257 | phy-names = "usb2-phy"; |
| 258 | dr_mode = "host"; |
| 259 | status = "disabled"; |
| 260 | }; |
| 261 | |
| 262 | usb1: usb@c90c0000 { |
| 263 | compatible = "snps,dwc2"; |
| 264 | #address-cells = <1>; |
| 265 | #size-cells = <0>; |
| 266 | reg = <0xc90c0000 0x40000>; |
Emiliano Ingrassia | 291f45d | 2017-09-22 13:57:08 +0200 | [diff] [blame] | 267 | interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 268 | phys = <&usb1_phy>; |
| 269 | phy-names = "usb2-phy"; |
| 270 | dr_mode = "host"; |
| 271 | status = "disabled"; |
| 272 | }; |
| 273 | |
Beniamino Galvani | 2345d50 | 2015-03-01 20:45:37 +0100 | [diff] [blame] | 274 | ethmac: ethernet@c9410000 { |
| 275 | compatible = "amlogic,meson6-dwmac", "snps,dwmac"; |
| 276 | reg = <0xc9410000 0x10000 |
| 277 | 0xc1108108 0x4>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 278 | interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>; |
Beniamino Galvani | 2345d50 | 2015-03-01 20:45:37 +0100 | [diff] [blame] | 279 | interrupt-names = "macirq"; |
Beniamino Galvani | 2345d50 | 2015-03-01 20:45:37 +0100 | [diff] [blame] | 280 | status = "disabled"; |
| 281 | }; |
Martin Blumenstingl | 40b5c4f | 2017-07-12 00:26:55 +0200 | [diff] [blame] | 282 | |
| 283 | ahb_sram: sram@d9000000 { |
| 284 | compatible = "mmio-sram"; |
| 285 | reg = <0xd9000000 0x20000>; |
| 286 | #address-cells = <1>; |
| 287 | #size-cells = <1>; |
| 288 | ranges = <0 0xd9000000 0x20000>; |
| 289 | }; |
Martin Blumenstingl | bd835d5 | 2017-09-23 16:14:03 +0200 | [diff] [blame] | 290 | |
| 291 | bootrom: bootrom@d9040000 { |
| 292 | compatible = "amlogic,meson-mx-bootrom", "syscon"; |
| 293 | reg = <0xd9040000 0x10000>; |
| 294 | }; |
Martin Blumenstingl | 2cb51a8 | 2017-10-03 01:28:04 +0200 | [diff] [blame] | 295 | |
| 296 | secbus: secbus@da000000 { |
| 297 | compatible = "simple-bus"; |
| 298 | reg = <0xda000000 0x6000>; |
| 299 | #address-cells = <1>; |
| 300 | #size-cells = <1>; |
| 301 | ranges = <0x0 0xda000000 0x6000>; |
| 302 | |
| 303 | efuse: nvmem@0 { |
| 304 | compatible = "amlogic,meson6-efuse"; |
| 305 | reg = <0x0 0x2000>; |
| 306 | #address-cells = <1>; |
| 307 | #size-cells = <1>; |
| 308 | }; |
| 309 | }; |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 310 | }; |
| 311 | }; /* end of / */ |