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