Neil Armstrong | 19bda0c | 2019-05-27 15:38:48 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 OR MIT |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2014 Carlo Caione <carlo@caione.org> |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 6 | #include <dt-bindings/interrupt-controller/irq.h> |
| 7 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 8 | |
| 9 | / { |
Rob Herring | abe60a3 | 2019-01-09 10:26:14 -0600 | [diff] [blame] | 10 | #address-cells = <1>; |
| 11 | #size-cells = <1>; |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 12 | interrupt-parent = <&gic>; |
| 13 | |
Beniamino Galvani | 550ab39 | 2014-11-18 15:30:35 +0100 | [diff] [blame] | 14 | L2: l2-cache-controller@c4200000 { |
| 15 | compatible = "arm,pl310-cache"; |
| 16 | reg = <0xc4200000 0x1000>; |
| 17 | cache-unified; |
| 18 | cache-level = <2>; |
| 19 | }; |
| 20 | |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 21 | soc { |
| 22 | compatible = "simple-bus"; |
| 23 | #address-cells = <1>; |
| 24 | #size-cells = <1>; |
| 25 | ranges; |
| 26 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 27 | cbus: cbus@c1100000 { |
| 28 | compatible = "simple-bus"; |
| 29 | reg = <0xc1100000 0x200000>; |
Beniamino Galvani | 8fba96f | 2014-11-13 20:32:03 +0100 | [diff] [blame] | 30 | #address-cells = <1>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 31 | #size-cells = <1>; |
| 32 | ranges = <0x0 0xc1100000 0x200000>; |
| 33 | |
Martin Blumenstingl | b6db393 | 2019-01-18 23:52:21 +0100 | [diff] [blame] | 34 | hhi: system-controller@4000 { |
| 35 | compatible = "amlogic,meson-hhi-sysctrl", |
| 36 | "simple-mfd", |
| 37 | "syscon"; |
| 38 | reg = <0x4000 0x400>; |
| 39 | }; |
| 40 | |
Martin Blumenstingl | bd835d5 | 2017-09-23 16:14:03 +0200 | [diff] [blame] | 41 | assist: assist@7c00 { |
| 42 | compatible = "amlogic,meson-mx-assist", "syscon"; |
| 43 | reg = <0x7c00 0x200>; |
| 44 | }; |
| 45 | |
Martin Blumenstingl | a35910d | 2017-06-15 23:33:49 +0200 | [diff] [blame] | 46 | hwrng: rng@8100 { |
| 47 | compatible = "amlogic,meson-rng"; |
| 48 | reg = <0x8100 0x8>; |
| 49 | }; |
| 50 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 51 | uart_A: serial@84c0 { |
Neil Armstrong | ec9b591 | 2017-06-21 16:42:12 +0200 | [diff] [blame] | 52 | compatible = "amlogic,meson6-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 53 | reg = <0x84c0 0x18>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 54 | interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 55 | status = "disabled"; |
| 56 | }; |
| 57 | |
| 58 | uart_B: serial@84dc { |
Neil Armstrong | ec9b591 | 2017-06-21 16:42:12 +0200 | [diff] [blame] | 59 | compatible = "amlogic,meson6-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 60 | reg = <0x84dc 0x18>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 61 | interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 62 | status = "disabled"; |
| 63 | }; |
| 64 | |
| 65 | i2c_A: i2c@8500 { |
| 66 | compatible = "amlogic,meson6-i2c"; |
| 67 | reg = <0x8500 0x20>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 68 | interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 69 | #address-cells = <1>; |
| 70 | #size-cells = <0>; |
| 71 | status = "disabled"; |
| 72 | }; |
| 73 | |
Martin Blumenstingl | 440bdcd | 2017-07-12 00:20:14 +0200 | [diff] [blame] | 74 | pwm_ab: pwm@8550 { |
| 75 | compatible = "amlogic,meson-pwm"; |
| 76 | reg = <0x8550 0x10>; |
| 77 | #pwm-cells = <3>; |
| 78 | status = "disabled"; |
| 79 | }; |
| 80 | |
| 81 | pwm_cd: pwm@8650 { |
| 82 | compatible = "amlogic,meson-pwm"; |
| 83 | reg = <0x8650 0x10>; |
| 84 | #pwm-cells = <3>; |
| 85 | status = "disabled"; |
| 86 | }; |
| 87 | |
Martin Blumenstingl | a39a3b9 | 2017-06-15 23:33:47 +0200 | [diff] [blame] | 88 | saradc: adc@8680 { |
| 89 | compatible = "amlogic,meson-saradc"; |
| 90 | reg = <0x8680 0x34>; |
| 91 | #io-channel-cells = <1>; |
| 92 | interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>; |
| 93 | status = "disabled"; |
| 94 | }; |
| 95 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 96 | uart_C: serial@8700 { |
Neil Armstrong | ec9b591 | 2017-06-21 16:42:12 +0200 | [diff] [blame] | 97 | compatible = "amlogic,meson6-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 98 | reg = <0x8700 0x18>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 99 | interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 100 | status = "disabled"; |
| 101 | }; |
| 102 | |
| 103 | i2c_B: i2c@87c0 { |
| 104 | compatible = "amlogic,meson6-i2c"; |
| 105 | reg = <0x87c0 0x20>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 106 | interrupts = <GIC_SPI 128 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 107 | #address-cells = <1>; |
| 108 | #size-cells = <0>; |
| 109 | status = "disabled"; |
| 110 | }; |
| 111 | |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 112 | usb0_phy: phy@8800 { |
| 113 | compatible = "amlogic,meson-mx-usb2-phy"; |
| 114 | #phy-cells = <0>; |
| 115 | reg = <0x8800 0x20>; |
| 116 | status = "disabled"; |
| 117 | }; |
| 118 | |
| 119 | usb1_phy: phy@8820 { |
| 120 | compatible = "amlogic,meson-mx-usb2-phy"; |
| 121 | #phy-cells = <0>; |
| 122 | reg = <0x8820 0x20>; |
| 123 | status = "disabled"; |
| 124 | }; |
| 125 | |
Martin Blumenstingl | 88b1b18 | 2017-10-07 18:29:39 +0200 | [diff] [blame] | 126 | sdio: mmc@8c20 { |
| 127 | compatible = "amlogic,meson-mx-sdio"; |
| 128 | reg = <0x8c20 0x20>; |
| 129 | interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>; |
| 130 | #address-cells = <1>; |
| 131 | #size-cells = <0>; |
| 132 | status = "disabled"; |
| 133 | }; |
| 134 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 135 | spifc: spi@8c80 { |
| 136 | compatible = "amlogic,meson6-spifc"; |
| 137 | reg = <0x8c80 0x80>; |
| 138 | #address-cells = <1>; |
| 139 | #size-cells = <0>; |
| 140 | status = "disabled"; |
| 141 | }; |
| 142 | |
Martin Blumenstingl | 208e4ea | 2017-10-30 00:17:14 +0100 | [diff] [blame] | 143 | gpio_intc: interrupt-controller@9880 { |
| 144 | compatible = "amlogic,meson-gpio-intc"; |
Martin Blumenstingl | 9fd7a2e | 2017-10-30 00:17:15 +0100 | [diff] [blame] | 145 | reg = <0x9880 0x10>; |
Martin Blumenstingl | 208e4ea | 2017-10-30 00:17:14 +0100 | [diff] [blame] | 146 | interrupt-controller; |
| 147 | #interrupt-cells = <2>; |
| 148 | amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>; |
| 149 | status = "disabled"; |
| 150 | }; |
| 151 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 152 | wdt: watchdog@9900 { |
| 153 | compatible = "amlogic,meson6-wdt"; |
| 154 | reg = <0x9900 0x8>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 155 | interrupts = <GIC_SPI 0 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 156 | }; |
| 157 | |
Martin Blumenstingl | 7b141ab | 2018-11-16 21:42:35 +0100 | [diff] [blame] | 158 | timer_abcde: timer@9940 { |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 159 | compatible = "amlogic,meson6-timer"; |
| 160 | reg = <0x9940 0x18>; |
Martin Blumenstingl | 523b8b3 | 2018-11-16 21:42:34 +0100 | [diff] [blame] | 161 | interrupts = <GIC_SPI 10 IRQ_TYPE_EDGE_RISING>, |
| 162 | <GIC_SPI 11 IRQ_TYPE_EDGE_RISING>, |
| 163 | <GIC_SPI 6 IRQ_TYPE_EDGE_RISING>, |
| 164 | <GIC_SPI 29 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 165 | }; |
Beniamino Galvani | 8fba96f | 2014-11-13 20:32:03 +0100 | [diff] [blame] | 166 | }; |
| 167 | |
Martin Blumenstingl | e8c276d | 2018-11-23 20:53:07 +0100 | [diff] [blame] | 168 | periph: bus@c4300000 { |
| 169 | compatible = "simple-bus"; |
| 170 | reg = <0xc4300000 0x10000>; |
| 171 | #address-cells = <1>; |
| 172 | #size-cells = <1>; |
| 173 | ranges = <0x0 0xc4300000 0x10000>; |
| 174 | |
| 175 | gic: interrupt-controller@1000 { |
| 176 | compatible = "arm,cortex-a9-gic"; |
| 177 | reg = <0x1000 0x1000>, |
| 178 | <0x100 0x100>; |
| 179 | interrupt-controller; |
| 180 | #interrupt-cells = <3>; |
| 181 | }; |
| 182 | }; |
| 183 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 184 | aobus: aobus@c8100000 { |
| 185 | compatible = "simple-bus"; |
| 186 | reg = <0xc8100000 0x100000>; |
Beniamino Galvani | 8fba96f | 2014-11-13 20:32:03 +0100 | [diff] [blame] | 187 | #address-cells = <1>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 188 | #size-cells = <1>; |
| 189 | ranges = <0x0 0xc8100000 0x100000>; |
Beniamino Galvani | 8fba96f | 2014-11-13 20:32:03 +0100 | [diff] [blame] | 190 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 191 | ir_receiver: ir-receiver@480 { |
| 192 | compatible= "amlogic,meson6-ir"; |
| 193 | reg = <0x480 0x20>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 194 | interrupts = <GIC_SPI 15 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 195 | status = "disabled"; |
| 196 | }; |
Linus Torvalds | 2183a58 | 2014-12-11 11:49:23 -0800 | [diff] [blame] | 197 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 198 | uart_AO: serial@4c0 { |
Neil Armstrong | ec9b591 | 2017-06-21 16:42:12 +0200 | [diff] [blame] | 199 | compatible = "amlogic,meson6-uart", "amlogic,meson-ao-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 200 | reg = <0x4c0 0x18>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 201 | interrupts = <GIC_SPI 90 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 202 | status = "disabled"; |
| 203 | }; |
Beniamino Galvani | 03bb951 | 2015-03-01 20:39:51 +0100 | [diff] [blame] | 204 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 205 | i2c_AO: i2c@500 { |
| 206 | compatible = "amlogic,meson6-i2c"; |
| 207 | reg = <0x500 0x20>; |
Martin Blumenstingl | 5239e05 | 2017-06-15 23:33:44 +0200 | [diff] [blame] | 208 | interrupts = <GIC_SPI 92 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 209 | #address-cells = <1>; |
| 210 | #size-cells = <0>; |
| 211 | status = "disabled"; |
| 212 | }; |
Martin Blumenstingl | f6eb973 | 2019-04-13 18:34:21 +0200 | [diff] [blame] | 213 | |
| 214 | rtc: rtc@740 { |
| 215 | compatible = "amlogic,meson6-rtc"; |
| 216 | reg = <0x740 0x14>; |
| 217 | interrupts = <GIC_SPI 72 IRQ_TYPE_EDGE_RISING>; |
| 218 | #address-cells = <1>; |
| 219 | #size-cells = <1>; |
| 220 | status = "disabled"; |
| 221 | }; |
Beniamino Galvani | 03bb951 | 2015-03-01 20:39:51 +0100 | [diff] [blame] | 222 | }; |
Beniamino Galvani | 2345d50 | 2015-03-01 20:45:37 +0100 | [diff] [blame] | 223 | |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 224 | usb0: usb@c9040000 { |
| 225 | compatible = "snps,dwc2"; |
| 226 | #address-cells = <1>; |
| 227 | #size-cells = <0>; |
| 228 | reg = <0xc9040000 0x40000>; |
Emiliano Ingrassia | 291f45d | 2017-09-22 13:57:08 +0200 | [diff] [blame] | 229 | interrupts = <GIC_SPI 30 IRQ_TYPE_LEVEL_HIGH>; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 230 | phys = <&usb0_phy>; |
| 231 | phy-names = "usb2-phy"; |
Martin Blumenstingl | 9530dcf | 2020-05-04 21:51:05 +0200 | [diff] [blame^] | 232 | g-rx-fifo-size = <512>; |
| 233 | g-np-tx-fifo-size = <500>; |
| 234 | g-tx-fifo-size = <256 192 128 128 128>; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 235 | dr_mode = "host"; |
| 236 | status = "disabled"; |
| 237 | }; |
| 238 | |
| 239 | usb1: usb@c90c0000 { |
| 240 | compatible = "snps,dwc2"; |
| 241 | #address-cells = <1>; |
| 242 | #size-cells = <0>; |
| 243 | reg = <0xc90c0000 0x40000>; |
Emiliano Ingrassia | 291f45d | 2017-09-22 13:57:08 +0200 | [diff] [blame] | 244 | interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 245 | phys = <&usb1_phy>; |
| 246 | phy-names = "usb2-phy"; |
| 247 | dr_mode = "host"; |
| 248 | status = "disabled"; |
| 249 | }; |
| 250 | |
Beniamino Galvani | 2345d50 | 2015-03-01 20:45:37 +0100 | [diff] [blame] | 251 | ethmac: ethernet@c9410000 { |
| 252 | compatible = "amlogic,meson6-dwmac", "snps,dwmac"; |
| 253 | reg = <0xc9410000 0x10000 |
| 254 | 0xc1108108 0x4>; |
Carlo Caione | e35e26b | 2018-12-07 10:52:31 +0000 | [diff] [blame] | 255 | interrupts = <GIC_SPI 8 IRQ_TYPE_LEVEL_HIGH>; |
Beniamino Galvani | 2345d50 | 2015-03-01 20:45:37 +0100 | [diff] [blame] | 256 | interrupt-names = "macirq"; |
Beniamino Galvani | 2345d50 | 2015-03-01 20:45:37 +0100 | [diff] [blame] | 257 | status = "disabled"; |
| 258 | }; |
Martin Blumenstingl | 40b5c4f | 2017-07-12 00:26:55 +0200 | [diff] [blame] | 259 | |
| 260 | ahb_sram: sram@d9000000 { |
| 261 | compatible = "mmio-sram"; |
| 262 | reg = <0xd9000000 0x20000>; |
| 263 | #address-cells = <1>; |
| 264 | #size-cells = <1>; |
| 265 | ranges = <0 0xd9000000 0x20000>; |
| 266 | }; |
Martin Blumenstingl | bd835d5 | 2017-09-23 16:14:03 +0200 | [diff] [blame] | 267 | |
| 268 | bootrom: bootrom@d9040000 { |
| 269 | compatible = "amlogic,meson-mx-bootrom", "syscon"; |
| 270 | reg = <0xd9040000 0x10000>; |
| 271 | }; |
Martin Blumenstingl | 2cb51a8 | 2017-10-03 01:28:04 +0200 | [diff] [blame] | 272 | |
| 273 | secbus: secbus@da000000 { |
| 274 | compatible = "simple-bus"; |
| 275 | reg = <0xda000000 0x6000>; |
| 276 | #address-cells = <1>; |
| 277 | #size-cells = <1>; |
| 278 | ranges = <0x0 0xda000000 0x6000>; |
| 279 | |
| 280 | efuse: nvmem@0 { |
| 281 | compatible = "amlogic,meson6-efuse"; |
| 282 | reg = <0x0 0x2000>; |
| 283 | #address-cells = <1>; |
| 284 | #size-cells = <1>; |
| 285 | }; |
| 286 | }; |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 287 | }; |
Martin Blumenstingl | 630ea31 | 2019-12-08 19:05:23 +0100 | [diff] [blame] | 288 | |
| 289 | xtal: xtal-clk { |
| 290 | compatible = "fixed-clock"; |
| 291 | clock-frequency = <24000000>; |
| 292 | clock-output-names = "xtal"; |
| 293 | #clock-cells = <0>; |
| 294 | }; |
Carlo Caione | 6b112e2 | 2014-09-09 22:12:56 +0200 | [diff] [blame] | 295 | }; /* end of / */ |