Neil Armstrong | 114abfe | 2018-02-27 12:30:33 +0100 | [diff] [blame] | 1 | // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 2 | /* |
Andreas Färber | 0e26f26 | 2016-11-06 20:25:34 +0100 | [diff] [blame] | 3 | * Copyright (c) 2016 Andreas Färber |
| 4 | * |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 5 | * Copyright (c) 2016 BayLibre, SAS. |
| 6 | * Author: Neil Armstrong <narmstrong@baylibre.com> |
| 7 | * |
| 8 | * Copyright (c) 2016 Endless Computers, Inc. |
| 9 | * Author: Carlo Caione <carlo@endlessm.com> |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 10 | */ |
| 11 | |
| 12 | #include <dt-bindings/gpio/gpio.h> |
| 13 | #include <dt-bindings/interrupt-controller/irq.h> |
| 14 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
| 15 | |
| 16 | / { |
| 17 | interrupt-parent = <&gic>; |
| 18 | #address-cells = <2>; |
| 19 | #size-cells = <2>; |
| 20 | |
Neil Armstrong | bba8e3f | 2017-01-20 08:20:25 -0800 | [diff] [blame] | 21 | reserved-memory { |
| 22 | #address-cells = <2>; |
| 23 | #size-cells = <2>; |
| 24 | ranges; |
| 25 | |
| 26 | /* 16 MiB reserved for Hardware ROM Firmware */ |
| 27 | hwrom_reserved: hwrom@0 { |
| 28 | reg = <0x0 0x0 0x0 0x1000000>; |
| 29 | no-map; |
| 30 | }; |
| 31 | |
| 32 | /* 2 MiB reserved for ARM Trusted Firmware (BL31) */ |
| 33 | secmon_reserved: secmon@10000000 { |
| 34 | reg = <0x0 0x10000000 0x0 0x200000>; |
| 35 | no-map; |
| 36 | }; |
Neil Armstrong | e9da728 | 2017-03-21 16:25:45 +0100 | [diff] [blame] | 37 | |
| 38 | linux,cma { |
| 39 | compatible = "shared-dma-pool"; |
| 40 | reusable; |
| 41 | size = <0x0 0xbc00000>; |
| 42 | alignment = <0x0 0x400000>; |
| 43 | linux,cma-default; |
| 44 | }; |
Neil Armstrong | bba8e3f | 2017-01-20 08:20:25 -0800 | [diff] [blame] | 45 | }; |
| 46 | |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 47 | cpus { |
| 48 | #address-cells = <0x2>; |
| 49 | #size-cells = <0x0>; |
| 50 | |
| 51 | cpu0: cpu@0 { |
| 52 | device_type = "cpu"; |
| 53 | compatible = "arm,cortex-a53", "arm,armv8"; |
| 54 | reg = <0x0 0x0>; |
| 55 | enable-method = "psci"; |
Neil Armstrong | 214ec52 | 2016-10-05 15:53:50 +0200 | [diff] [blame] | 56 | next-level-cache = <&l2>; |
Martin Blumenstingl | 47961f1 | 2016-12-03 00:08:48 +0100 | [diff] [blame] | 57 | clocks = <&scpi_dvfs 0>; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 58 | }; |
| 59 | |
| 60 | cpu1: cpu@1 { |
| 61 | device_type = "cpu"; |
| 62 | compatible = "arm,cortex-a53", "arm,armv8"; |
| 63 | reg = <0x0 0x1>; |
| 64 | enable-method = "psci"; |
Neil Armstrong | 214ec52 | 2016-10-05 15:53:50 +0200 | [diff] [blame] | 65 | next-level-cache = <&l2>; |
Martin Blumenstingl | 47961f1 | 2016-12-03 00:08:48 +0100 | [diff] [blame] | 66 | clocks = <&scpi_dvfs 0>; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 67 | }; |
| 68 | |
| 69 | cpu2: cpu@2 { |
| 70 | device_type = "cpu"; |
| 71 | compatible = "arm,cortex-a53", "arm,armv8"; |
| 72 | reg = <0x0 0x2>; |
| 73 | enable-method = "psci"; |
Neil Armstrong | 214ec52 | 2016-10-05 15:53:50 +0200 | [diff] [blame] | 74 | next-level-cache = <&l2>; |
Martin Blumenstingl | 47961f1 | 2016-12-03 00:08:48 +0100 | [diff] [blame] | 75 | clocks = <&scpi_dvfs 0>; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 76 | }; |
| 77 | |
| 78 | cpu3: cpu@3 { |
| 79 | device_type = "cpu"; |
| 80 | compatible = "arm,cortex-a53", "arm,armv8"; |
| 81 | reg = <0x0 0x3>; |
| 82 | enable-method = "psci"; |
Neil Armstrong | 214ec52 | 2016-10-05 15:53:50 +0200 | [diff] [blame] | 83 | next-level-cache = <&l2>; |
Martin Blumenstingl | 47961f1 | 2016-12-03 00:08:48 +0100 | [diff] [blame] | 84 | clocks = <&scpi_dvfs 0>; |
Neil Armstrong | 214ec52 | 2016-10-05 15:53:50 +0200 | [diff] [blame] | 85 | }; |
| 86 | |
| 87 | l2: l2-cache0 { |
| 88 | compatible = "cache"; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 89 | }; |
| 90 | }; |
| 91 | |
| 92 | arm-pmu { |
| 93 | compatible = "arm,cortex-a53-pmu"; |
| 94 | interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, |
| 95 | <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>, |
| 96 | <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, |
| 97 | <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; |
| 98 | interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; |
| 99 | }; |
| 100 | |
| 101 | psci { |
| 102 | compatible = "arm,psci-0.2"; |
| 103 | method = "smc"; |
| 104 | }; |
| 105 | |
| 106 | timer { |
| 107 | compatible = "arm,armv8-timer"; |
| 108 | interrupts = <GIC_PPI 13 |
| 109 | (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, |
| 110 | <GIC_PPI 14 |
| 111 | (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, |
| 112 | <GIC_PPI 11 |
| 113 | (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>, |
| 114 | <GIC_PPI 10 |
| 115 | (GIC_CPU_MASK_RAW(0xff) | IRQ_TYPE_LEVEL_LOW)>; |
| 116 | }; |
| 117 | |
| 118 | xtal: xtal-clk { |
| 119 | compatible = "fixed-clock"; |
| 120 | clock-frequency = <24000000>; |
| 121 | clock-output-names = "xtal"; |
| 122 | #clock-cells = <0>; |
| 123 | }; |
| 124 | |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 125 | firmware { |
| 126 | sm: secure-monitor { |
| 127 | compatible = "amlogic,meson-gx-sm", "amlogic,meson-gxbb-sm"; |
| 128 | }; |
| 129 | }; |
| 130 | |
| 131 | efuse: efuse { |
| 132 | compatible = "amlogic,meson-gx-efuse", "amlogic,meson-gxbb-efuse"; |
| 133 | #address-cells = <1>; |
| 134 | #size-cells = <1>; |
Jerome Brunet | c339f0e | 2018-03-16 15:50:21 +0100 | [diff] [blame^] | 135 | read-only; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 136 | |
| 137 | sn: sn@14 { |
| 138 | reg = <0x14 0x10>; |
| 139 | }; |
| 140 | |
| 141 | eth_mac: eth_mac@34 { |
| 142 | reg = <0x34 0x10>; |
| 143 | }; |
| 144 | |
| 145 | bid: bid@46 { |
| 146 | reg = <0x46 0x30>; |
| 147 | }; |
| 148 | }; |
| 149 | |
Martin Blumenstingl | 47961f1 | 2016-12-03 00:08:48 +0100 | [diff] [blame] | 150 | scpi { |
| 151 | compatible = "amlogic,meson-gxbb-scpi", "arm,scpi-pre-1.0"; |
| 152 | mboxes = <&mailbox 1 &mailbox 2>; |
| 153 | shmem = <&cpu_scp_lpri &cpu_scp_hpri>; |
| 154 | |
| 155 | scpi_clocks: clocks { |
| 156 | compatible = "arm,scpi-clocks"; |
| 157 | |
| 158 | scpi_dvfs: scpi_clocks@0 { |
| 159 | compatible = "arm,scpi-dvfs-clocks"; |
| 160 | #clock-cells = <1>; |
| 161 | clock-indices = <0>; |
| 162 | clock-output-names = "vcpu"; |
| 163 | }; |
| 164 | }; |
| 165 | |
| 166 | scpi_sensors: sensors { |
Carlo Caione | 5f3195e | 2017-06-06 12:23:42 +0200 | [diff] [blame] | 167 | compatible = "amlogic,meson-gxbb-scpi-sensors", "arm,scpi-sensors"; |
Martin Blumenstingl | 47961f1 | 2016-12-03 00:08:48 +0100 | [diff] [blame] | 168 | #thermal-sensor-cells = <1>; |
| 169 | }; |
| 170 | }; |
| 171 | |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 172 | soc { |
| 173 | compatible = "simple-bus"; |
| 174 | #address-cells = <2>; |
| 175 | #size-cells = <2>; |
| 176 | ranges; |
| 177 | |
Kevin Hilman | 0cb6c60 | 2017-12-06 11:30:05 -0800 | [diff] [blame] | 178 | cbus: bus@c1100000 { |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 179 | compatible = "simple-bus"; |
| 180 | reg = <0x0 0xc1100000 0x0 0x100000>; |
| 181 | #address-cells = <2>; |
| 182 | #size-cells = <2>; |
| 183 | ranges = <0x0 0x0 0x0 0xc1100000 0x0 0x100000>; |
| 184 | |
Jerome Brunet | 9dbb56e | 2017-10-19 14:01:42 +0200 | [diff] [blame] | 185 | gpio_intc: interrupt-controller@9880 { |
| 186 | compatible = "amlogic,meson-gpio-intc"; |
| 187 | reg = <0x0 0x9880 0x0 0x10>; |
| 188 | interrupt-controller; |
| 189 | #interrupt-cells = <2>; |
| 190 | amlogic,channel-interrupts = <64 65 66 67 68 69 70 71>; |
| 191 | status = "disabled"; |
| 192 | }; |
| 193 | |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 194 | reset: reset-controller@4404 { |
| 195 | compatible = "amlogic,meson-gx-reset", "amlogic,meson-gxbb-reset"; |
Neil Armstrong | 1eb0919 | 2017-11-20 15:19:56 +0100 | [diff] [blame] | 196 | reg = <0x0 0x04404 0x0 0x9c>; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 197 | #reset-cells = <1>; |
| 198 | }; |
| 199 | |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 200 | uart_A: serial@84c0 { |
Neil Armstrong | a87f854 | 2017-10-11 17:39:40 +0200 | [diff] [blame] | 201 | compatible = "amlogic,meson-gx-uart"; |
Yixun Lan | 77f5cdb | 2018-01-11 10:33:57 +0800 | [diff] [blame] | 202 | reg = <0x0 0x84c0 0x0 0x18>; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 203 | interrupts = <GIC_SPI 26 IRQ_TYPE_EDGE_RISING>; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 204 | status = "disabled"; |
| 205 | }; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 206 | |
| 207 | uart_B: serial@84dc { |
Neil Armstrong | a87f854 | 2017-10-11 17:39:40 +0200 | [diff] [blame] | 208 | compatible = "amlogic,meson-gx-uart"; |
Yixun Lan | 77f5cdb | 2018-01-11 10:33:57 +0800 | [diff] [blame] | 209 | reg = <0x0 0x84dc 0x0 0x18>; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 210 | interrupts = <GIC_SPI 75 IRQ_TYPE_EDGE_RISING>; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 211 | status = "disabled"; |
| 212 | }; |
| 213 | |
| 214 | i2c_A: i2c@8500 { |
Neil Armstrong | e19e64a | 2017-03-13 10:10:52 +0100 | [diff] [blame] | 215 | compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c"; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 216 | reg = <0x0 0x08500 0x0 0x20>; |
| 217 | interrupts = <GIC_SPI 21 IRQ_TYPE_EDGE_RISING>; |
| 218 | #address-cells = <1>; |
| 219 | #size-cells = <0>; |
| 220 | status = "disabled"; |
| 221 | }; |
| 222 | |
| 223 | pwm_ab: pwm@8550 { |
| 224 | compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm"; |
| 225 | reg = <0x0 0x08550 0x0 0x10>; |
| 226 | #pwm-cells = <3>; |
| 227 | status = "disabled"; |
| 228 | }; |
| 229 | |
| 230 | pwm_cd: pwm@8650 { |
| 231 | compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm"; |
| 232 | reg = <0x0 0x08650 0x0 0x10>; |
| 233 | #pwm-cells = <3>; |
| 234 | status = "disabled"; |
| 235 | }; |
| 236 | |
Martin Blumenstingl | bd80ef5 | 2017-01-22 19:17:14 +0100 | [diff] [blame] | 237 | saradc: adc@8680 { |
| 238 | compatible = "amlogic,meson-saradc"; |
| 239 | reg = <0x0 0x8680 0x0 0x34>; |
| 240 | #io-channel-cells = <1>; |
| 241 | interrupts = <GIC_SPI 73 IRQ_TYPE_EDGE_RISING>; |
| 242 | status = "disabled"; |
| 243 | }; |
| 244 | |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 245 | pwm_ef: pwm@86c0 { |
| 246 | compatible = "amlogic,meson-gx-pwm", "amlogic,meson-gxbb-pwm"; |
| 247 | reg = <0x0 0x086c0 0x0 0x10>; |
| 248 | #pwm-cells = <3>; |
| 249 | status = "disabled"; |
| 250 | }; |
| 251 | |
| 252 | uart_C: serial@8700 { |
Neil Armstrong | a87f854 | 2017-10-11 17:39:40 +0200 | [diff] [blame] | 253 | compatible = "amlogic,meson-gx-uart"; |
Yixun Lan | 77f5cdb | 2018-01-11 10:33:57 +0800 | [diff] [blame] | 254 | reg = <0x0 0x8700 0x0 0x18>; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 255 | interrupts = <GIC_SPI 93 IRQ_TYPE_EDGE_RISING>; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 256 | status = "disabled"; |
| 257 | }; |
| 258 | |
| 259 | i2c_B: i2c@87c0 { |
Neil Armstrong | e19e64a | 2017-03-13 10:10:52 +0100 | [diff] [blame] | 260 | compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c"; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 261 | reg = <0x0 0x087c0 0x0 0x20>; |
| 262 | interrupts = <GIC_SPI 214 IRQ_TYPE_EDGE_RISING>; |
| 263 | #address-cells = <1>; |
| 264 | #size-cells = <0>; |
| 265 | status = "disabled"; |
| 266 | }; |
| 267 | |
| 268 | i2c_C: i2c@87e0 { |
Neil Armstrong | e19e64a | 2017-03-13 10:10:52 +0100 | [diff] [blame] | 269 | compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c"; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 270 | reg = <0x0 0x087e0 0x0 0x20>; |
| 271 | interrupts = <GIC_SPI 215 IRQ_TYPE_EDGE_RISING>; |
| 272 | #address-cells = <1>; |
| 273 | #size-cells = <0>; |
| 274 | status = "disabled"; |
| 275 | }; |
| 276 | |
Neil Armstrong | fa80863 | 2017-05-29 10:09:55 +0200 | [diff] [blame] | 277 | spicc: spi@8d80 { |
| 278 | compatible = "amlogic,meson-gx-spicc"; |
| 279 | reg = <0x0 0x08d80 0x0 0x80>; |
| 280 | interrupts = <GIC_SPI 81 IRQ_TYPE_LEVEL_HIGH>; |
| 281 | #address-cells = <1>; |
| 282 | #size-cells = <0>; |
| 283 | status = "disabled"; |
| 284 | }; |
| 285 | |
Neil Armstrong | 04b36df | 2017-03-13 10:10:50 +0100 | [diff] [blame] | 286 | spifc: spi@8c80 { |
Neil Armstrong | e19e64a | 2017-03-13 10:10:52 +0100 | [diff] [blame] | 287 | compatible = "amlogic,meson-gx-spifc", "amlogic,meson-gxbb-spifc"; |
Neil Armstrong | 04b36df | 2017-03-13 10:10:50 +0100 | [diff] [blame] | 288 | reg = <0x0 0x08c80 0x0 0x80>; |
| 289 | #address-cells = <1>; |
| 290 | #size-cells = <0>; |
| 291 | status = "disabled"; |
| 292 | }; |
| 293 | |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 294 | watchdog@98d0 { |
| 295 | compatible = "amlogic,meson-gx-wdt", "amlogic,meson-gxbb-wdt"; |
| 296 | reg = <0x0 0x098d0 0x0 0x10>; |
| 297 | clocks = <&xtal>; |
| 298 | }; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 299 | }; |
| 300 | |
| 301 | gic: interrupt-controller@c4301000 { |
| 302 | compatible = "arm,gic-400"; |
| 303 | reg = <0x0 0xc4301000 0 0x1000>, |
| 304 | <0x0 0xc4302000 0 0x2000>, |
| 305 | <0x0 0xc4304000 0 0x2000>, |
| 306 | <0x0 0xc4306000 0 0x2000>; |
| 307 | interrupt-controller; |
| 308 | interrupts = <GIC_PPI 9 |
| 309 | (GIC_CPU_MASK_SIMPLE(8) | IRQ_TYPE_LEVEL_HIGH)>; |
| 310 | #interrupt-cells = <3>; |
| 311 | #address-cells = <0>; |
| 312 | }; |
| 313 | |
Martin Blumenstingl | 47961f1 | 2016-12-03 00:08:48 +0100 | [diff] [blame] | 314 | sram: sram@c8000000 { |
Neil Armstrong | e19e64a | 2017-03-13 10:10:52 +0100 | [diff] [blame] | 315 | compatible = "amlogic,meson-gx-sram", "amlogic,meson-gxbb-sram", "mmio-sram"; |
Martin Blumenstingl | 47961f1 | 2016-12-03 00:08:48 +0100 | [diff] [blame] | 316 | reg = <0x0 0xc8000000 0x0 0x14000>; |
| 317 | |
| 318 | #address-cells = <1>; |
| 319 | #size-cells = <1>; |
| 320 | ranges = <0 0x0 0xc8000000 0x14000>; |
| 321 | |
| 322 | cpu_scp_lpri: scp-shmem@0 { |
Neil Armstrong | e19e64a | 2017-03-13 10:10:52 +0100 | [diff] [blame] | 323 | compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem"; |
Martin Blumenstingl | 47961f1 | 2016-12-03 00:08:48 +0100 | [diff] [blame] | 324 | reg = <0x13000 0x400>; |
| 325 | }; |
| 326 | |
| 327 | cpu_scp_hpri: scp-shmem@200 { |
Neil Armstrong | e19e64a | 2017-03-13 10:10:52 +0100 | [diff] [blame] | 328 | compatible = "amlogic,meson-gx-scp-shmem", "amlogic,meson-gxbb-scp-shmem"; |
Martin Blumenstingl | 47961f1 | 2016-12-03 00:08:48 +0100 | [diff] [blame] | 329 | reg = <0x13400 0x400>; |
| 330 | }; |
| 331 | }; |
| 332 | |
Kevin Hilman | 0cb6c60 | 2017-12-06 11:30:05 -0800 | [diff] [blame] | 333 | aobus: bus@c8100000 { |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 334 | compatible = "simple-bus"; |
| 335 | reg = <0x0 0xc8100000 0x0 0x100000>; |
| 336 | #address-cells = <2>; |
| 337 | #size-cells = <2>; |
| 338 | ranges = <0x0 0x0 0x0 0xc8100000 0x0 0x100000>; |
| 339 | |
Neil Armstrong | 7fd2c35 | 2017-08-04 15:12:12 +0200 | [diff] [blame] | 340 | sysctrl_AO: sys-ctrl@0 { |
| 341 | compatible = "amlogic,meson-gx-ao-sysctrl", "syscon", "simple-mfd"; |
| 342 | reg = <0x0 0x0 0x0 0x100>; |
| 343 | |
Neil Armstrong | 74d1c6e | 2017-11-20 15:19:54 +0100 | [diff] [blame] | 344 | pwrc_vpu: power-controller-vpu { |
| 345 | compatible = "amlogic,meson-gx-pwrc-vpu"; |
| 346 | #power-domain-cells = <0>; |
| 347 | amlogic,hhi-sysctrl = <&sysctrl>; |
| 348 | }; |
| 349 | |
Neil Armstrong | 7fd2c35 | 2017-08-04 15:12:12 +0200 | [diff] [blame] | 350 | clkc_AO: clock-controller { |
| 351 | compatible = "amlogic,meson-gx-aoclkc"; |
| 352 | #clock-cells = <1>; |
| 353 | #reset-cells = <1>; |
| 354 | }; |
Neil Armstrong | 04b36df | 2017-03-13 10:10:50 +0100 | [diff] [blame] | 355 | }; |
| 356 | |
Neil Armstrong | b16c71c | 2017-08-04 15:12:13 +0200 | [diff] [blame] | 357 | cec_AO: cec@100 { |
| 358 | compatible = "amlogic,meson-gx-ao-cec"; |
| 359 | reg = <0x0 0x00100 0x0 0x14>; |
| 360 | interrupts = <GIC_SPI 199 IRQ_TYPE_EDGE_RISING>; |
| 361 | }; |
| 362 | |
Neil Armstrong | c9fe1cf | 2017-06-23 10:28:17 +0200 | [diff] [blame] | 363 | sec_AO: ao-secure@140 { |
| 364 | compatible = "amlogic,meson-gx-ao-secure", "syscon"; |
| 365 | reg = <0x0 0x140 0x0 0x140>; |
| 366 | amlogic,has-chip-id; |
| 367 | }; |
| 368 | |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 369 | uart_AO: serial@4c0 { |
Neil Armstrong | a87f854 | 2017-10-11 17:39:40 +0200 | [diff] [blame] | 370 | compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; |
Yixun Lan | 77f5cdb | 2018-01-11 10:33:57 +0800 | [diff] [blame] | 371 | reg = <0x0 0x004c0 0x0 0x18>; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 372 | interrupts = <GIC_SPI 193 IRQ_TYPE_EDGE_RISING>; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 373 | status = "disabled"; |
| 374 | }; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 375 | |
Martin Blumenstingl | 890a96a | 2017-01-15 23:20:29 +0100 | [diff] [blame] | 376 | uart_AO_B: serial@4e0 { |
Neil Armstrong | a87f854 | 2017-10-11 17:39:40 +0200 | [diff] [blame] | 377 | compatible = "amlogic,meson-gx-uart", "amlogic,meson-ao-uart"; |
Yixun Lan | 77f5cdb | 2018-01-11 10:33:57 +0800 | [diff] [blame] | 378 | reg = <0x0 0x004e0 0x0 0x18>; |
Martin Blumenstingl | 890a96a | 2017-01-15 23:20:29 +0100 | [diff] [blame] | 379 | interrupts = <GIC_SPI 197 IRQ_TYPE_EDGE_RISING>; |
Martin Blumenstingl | 890a96a | 2017-01-15 23:20:29 +0100 | [diff] [blame] | 380 | status = "disabled"; |
| 381 | }; |
| 382 | |
Neil Armstrong | 04b36df | 2017-03-13 10:10:50 +0100 | [diff] [blame] | 383 | i2c_AO: i2c@500 { |
| 384 | compatible = "amlogic,meson-gx-i2c", "amlogic,meson-gxbb-i2c"; |
| 385 | reg = <0x0 0x500 0x0 0x20>; |
| 386 | interrupts = <GIC_SPI 195 IRQ_TYPE_EDGE_RISING>; |
| 387 | #address-cells = <1>; |
| 388 | #size-cells = <0>; |
| 389 | status = "disabled"; |
| 390 | }; |
| 391 | |
Martin Blumenstingl | e485122 | 2017-01-22 22:05:26 +0100 | [diff] [blame] | 392 | pwm_AO_ab: pwm@550 { |
Jerome Brunet | 6620f14 | 2017-06-08 14:39:55 +0200 | [diff] [blame] | 393 | compatible = "amlogic,meson-gx-ao-pwm", "amlogic,meson-gxbb-ao-pwm"; |
Martin Blumenstingl | e485122 | 2017-01-22 22:05:26 +0100 | [diff] [blame] | 394 | reg = <0x0 0x00550 0x0 0x10>; |
| 395 | #pwm-cells = <3>; |
| 396 | status = "disabled"; |
| 397 | }; |
| 398 | |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 399 | ir: ir@580 { |
Neil Armstrong | e19e64a | 2017-03-13 10:10:52 +0100 | [diff] [blame] | 400 | compatible = "amlogic,meson-gx-ir", "amlogic,meson-gxbb-ir"; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 401 | reg = <0x0 0x00580 0x0 0x40>; |
| 402 | interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>; |
| 403 | status = "disabled"; |
| 404 | }; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 405 | }; |
| 406 | |
| 407 | periphs: periphs@c8834000 { |
| 408 | compatible = "simple-bus"; |
| 409 | reg = <0x0 0xc8834000 0x0 0x2000>; |
| 410 | #address-cells = <2>; |
| 411 | #size-cells = <2>; |
| 412 | ranges = <0x0 0x0 0x0 0xc8834000 0x0 0x2000>; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 413 | |
Heiner Kallweit | 1b3f6d1 | 2017-02-22 08:00:55 +0100 | [diff] [blame] | 414 | hwrng: rng { |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 415 | compatible = "amlogic,meson-rng"; |
| 416 | reg = <0x0 0x0 0x0 0x4>; |
| 417 | }; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 418 | }; |
| 419 | |
Kevin Hilman | 0cb6c60 | 2017-12-06 11:30:05 -0800 | [diff] [blame] | 420 | hiubus: bus@c883c000 { |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 421 | compatible = "simple-bus"; |
| 422 | reg = <0x0 0xc883c000 0x0 0x2000>; |
| 423 | #address-cells = <2>; |
| 424 | #size-cells = <2>; |
| 425 | ranges = <0x0 0x0 0x0 0xc883c000 0x0 0x2000>; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 426 | |
Neil Armstrong | 74d1c6e | 2017-11-20 15:19:54 +0100 | [diff] [blame] | 427 | sysctrl: system-controller@0 { |
| 428 | compatible = "amlogic,meson-gx-hhi-sysctrl", "syscon", "simple-mfd"; |
| 429 | reg = <0 0 0 0x400>; |
| 430 | }; |
| 431 | |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 432 | mailbox: mailbox@404 { |
| 433 | compatible = "amlogic,meson-gx-mhu", "amlogic,meson-gxbb-mhu"; |
| 434 | reg = <0 0x404 0 0x4c>; |
Martin Blumenstingl | 5e3465f | 2017-07-16 16:11:45 +0200 | [diff] [blame] | 435 | interrupts = <GIC_SPI 208 IRQ_TYPE_EDGE_RISING>, |
| 436 | <GIC_SPI 209 IRQ_TYPE_EDGE_RISING>, |
| 437 | <GIC_SPI 210 IRQ_TYPE_EDGE_RISING>; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 438 | #mbox-cells = <1>; |
| 439 | }; |
| 440 | }; |
| 441 | |
| 442 | ethmac: ethernet@c9410000 { |
| 443 | compatible = "amlogic,meson-gx-dwmac", "amlogic,meson-gxbb-dwmac", "snps,dwmac"; |
| 444 | reg = <0x0 0xc9410000 0x0 0x10000 |
| 445 | 0x0 0xc8834540 0x0 0x4>; |
Martin Blumenstingl | 5e3465f | 2017-07-16 16:11:45 +0200 | [diff] [blame] | 446 | interrupts = <GIC_SPI 8 IRQ_TYPE_EDGE_RISING>; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 447 | interrupt-names = "macirq"; |
Neil Armstrong | 998a9c8 | 2016-10-31 17:44:39 +0100 | [diff] [blame] | 448 | status = "disabled"; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 449 | }; |
| 450 | |
| 451 | apb: apb@d0000000 { |
| 452 | compatible = "simple-bus"; |
| 453 | reg = <0x0 0xd0000000 0x0 0x200000>; |
| 454 | #address-cells = <2>; |
| 455 | #size-cells = <2>; |
| 456 | ranges = <0x0 0x0 0x0 0xd0000000 0x0 0x200000>; |
Kevin Hilman | ef8d2ff | 2016-10-20 13:42:54 +0200 | [diff] [blame] | 457 | |
| 458 | sd_emmc_a: mmc@70000 { |
| 459 | compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc"; |
| 460 | reg = <0x0 0x70000 0x0 0x2000>; |
| 461 | interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>; |
| 462 | status = "disabled"; |
| 463 | }; |
| 464 | |
| 465 | sd_emmc_b: mmc@72000 { |
| 466 | compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc"; |
| 467 | reg = <0x0 0x72000 0x0 0x2000>; |
| 468 | interrupts = <GIC_SPI 217 IRQ_TYPE_EDGE_RISING>; |
| 469 | status = "disabled"; |
| 470 | }; |
| 471 | |
| 472 | sd_emmc_c: mmc@74000 { |
| 473 | compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc"; |
| 474 | reg = <0x0 0x74000 0x0 0x2000>; |
| 475 | interrupts = <GIC_SPI 218 IRQ_TYPE_EDGE_RISING>; |
| 476 | status = "disabled"; |
| 477 | }; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 478 | }; |
Neil Armstrong | fafdbdf | 2016-12-01 10:05:58 +0100 | [diff] [blame] | 479 | |
| 480 | vpu: vpu@d0100000 { |
| 481 | compatible = "amlogic,meson-gx-vpu"; |
| 482 | reg = <0x0 0xd0100000 0x0 0x100000>, |
| 483 | <0x0 0xc883c000 0x0 0x1000>, |
| 484 | <0x0 0xc8838000 0x0 0x1000>; |
| 485 | reg-names = "vpu", "hhi", "dmc"; |
| 486 | interrupts = <GIC_SPI 3 IRQ_TYPE_EDGE_RISING>; |
| 487 | #address-cells = <1>; |
| 488 | #size-cells = <0>; |
| 489 | |
| 490 | /* CVBS VDAC output port */ |
| 491 | cvbs_vdac_port: port@0 { |
| 492 | reg = <0>; |
| 493 | }; |
Neil Armstrong | 6939db7 | 2017-03-21 16:25:46 +0100 | [diff] [blame] | 494 | |
| 495 | /* HDMI-TX output port */ |
| 496 | hdmi_tx_port: port@1 { |
| 497 | reg = <1>; |
| 498 | |
| 499 | hdmi_tx_out: endpoint { |
| 500 | remote-endpoint = <&hdmi_tx_in>; |
| 501 | }; |
| 502 | }; |
| 503 | }; |
| 504 | |
| 505 | hdmi_tx: hdmi-tx@c883a000 { |
| 506 | compatible = "amlogic,meson-gx-dw-hdmi"; |
| 507 | reg = <0x0 0xc883a000 0x0 0x1c>; |
| 508 | interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>; |
| 509 | #address-cells = <1>; |
| 510 | #size-cells = <0>; |
| 511 | status = "disabled"; |
| 512 | |
| 513 | /* VPU VENC Input */ |
| 514 | hdmi_tx_venc_port: port@0 { |
| 515 | reg = <0>; |
| 516 | |
| 517 | hdmi_tx_in: endpoint { |
| 518 | remote-endpoint = <&hdmi_tx_out>; |
| 519 | }; |
| 520 | }; |
| 521 | |
| 522 | /* TMDS Output */ |
| 523 | hdmi_tx_tmds_port: port@1 { |
| 524 | reg = <1>; |
| 525 | }; |
Neil Armstrong | fafdbdf | 2016-12-01 10:05:58 +0100 | [diff] [blame] | 526 | }; |
Neil Armstrong | c328666 | 2016-10-04 17:37:08 +0200 | [diff] [blame] | 527 | }; |
| 528 | }; |