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