Neil Armstrong | 41e359ed | 2019-05-27 15:38:52 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 OR MIT |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2014 Carlo Caione <carlo@caione.org> |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 4 | */ |
| 5 | |
Martin Blumenstingl | c4ac5c3 | 2019-12-08 19:05:24 +0100 | [diff] [blame] | 6 | #include <dt-bindings/clock/meson8-ddr-clkc.h> |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 7 | #include <dt-bindings/clock/meson8b-clkc.h> |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 8 | #include <dt-bindings/gpio/meson8-gpio.h> |
Martin Blumenstingl | aecc72b | 2020-06-20 18:10:08 +0200 | [diff] [blame] | 9 | #include <dt-bindings/power/meson8-power.h> |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 10 | #include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h> |
Martin Blumenstingl | e3087187 | 2018-01-21 23:14:13 +0100 | [diff] [blame] | 11 | #include <dt-bindings/reset/amlogic,meson8b-reset.h> |
Martin Blumenstingl | ecdb744 | 2020-12-21 19:13:04 +0100 | [diff] [blame] | 12 | #include <dt-bindings/thermal/thermal.h> |
Martin Blumenstingl | 7a16f06 | 2017-06-15 23:33:43 +0200 | [diff] [blame] | 13 | #include "meson.dtsi" |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 14 | |
| 15 | / { |
| 16 | model = "Amlogic Meson8 SoC"; |
| 17 | compatible = "amlogic,meson8"; |
| 18 | |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 19 | cpus { |
| 20 | #address-cells = <1>; |
| 21 | #size-cells = <0>; |
| 22 | |
Martin Blumenstingl | 17b6602 | 2018-04-22 12:45:01 +0200 | [diff] [blame] | 23 | cpu0: cpu@200 { |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 24 | device_type = "cpu"; |
| 25 | compatible = "arm,cortex-a9"; |
Beniamino Galvani | 550ab39 | 2014-11-18 15:30:35 +0100 | [diff] [blame] | 26 | next-level-cache = <&L2>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 27 | reg = <0x200>; |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 28 | enable-method = "amlogic,meson8-smp"; |
| 29 | resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>; |
Martin Blumenstingl | 622b982 | 2018-11-30 00:00:43 +0100 | [diff] [blame] | 30 | operating-points-v2 = <&cpu_opp_table>; |
| 31 | clocks = <&clkc CLKID_CPUCLK>; |
Martin Blumenstingl | ecdb744 | 2020-12-21 19:13:04 +0100 | [diff] [blame] | 32 | #cooling-cells = <2>; /* min followed by max */ |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 33 | }; |
| 34 | |
Martin Blumenstingl | 17b6602 | 2018-04-22 12:45:01 +0200 | [diff] [blame] | 35 | cpu1: cpu@201 { |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 36 | device_type = "cpu"; |
| 37 | compatible = "arm,cortex-a9"; |
Beniamino Galvani | 550ab39 | 2014-11-18 15:30:35 +0100 | [diff] [blame] | 38 | next-level-cache = <&L2>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 39 | reg = <0x201>; |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 40 | enable-method = "amlogic,meson8-smp"; |
| 41 | resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>; |
Martin Blumenstingl | 622b982 | 2018-11-30 00:00:43 +0100 | [diff] [blame] | 42 | operating-points-v2 = <&cpu_opp_table>; |
| 43 | clocks = <&clkc CLKID_CPUCLK>; |
Martin Blumenstingl | ecdb744 | 2020-12-21 19:13:04 +0100 | [diff] [blame] | 44 | #cooling-cells = <2>; /* min followed by max */ |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 45 | }; |
| 46 | |
Martin Blumenstingl | 17b6602 | 2018-04-22 12:45:01 +0200 | [diff] [blame] | 47 | cpu2: cpu@202 { |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 48 | device_type = "cpu"; |
| 49 | compatible = "arm,cortex-a9"; |
Beniamino Galvani | 550ab39 | 2014-11-18 15:30:35 +0100 | [diff] [blame] | 50 | next-level-cache = <&L2>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 51 | reg = <0x202>; |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 52 | enable-method = "amlogic,meson8-smp"; |
| 53 | resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>; |
Martin Blumenstingl | 622b982 | 2018-11-30 00:00:43 +0100 | [diff] [blame] | 54 | operating-points-v2 = <&cpu_opp_table>; |
| 55 | clocks = <&clkc CLKID_CPUCLK>; |
Martin Blumenstingl | ecdb744 | 2020-12-21 19:13:04 +0100 | [diff] [blame] | 56 | #cooling-cells = <2>; /* min followed by max */ |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 57 | }; |
| 58 | |
Martin Blumenstingl | 17b6602 | 2018-04-22 12:45:01 +0200 | [diff] [blame] | 59 | cpu3: cpu@203 { |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 60 | device_type = "cpu"; |
| 61 | compatible = "arm,cortex-a9"; |
Beniamino Galvani | 550ab39 | 2014-11-18 15:30:35 +0100 | [diff] [blame] | 62 | next-level-cache = <&L2>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 63 | reg = <0x203>; |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 64 | enable-method = "amlogic,meson8-smp"; |
| 65 | resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>; |
Martin Blumenstingl | 622b982 | 2018-11-30 00:00:43 +0100 | [diff] [blame] | 66 | operating-points-v2 = <&cpu_opp_table>; |
| 67 | clocks = <&clkc CLKID_CPUCLK>; |
Martin Blumenstingl | ecdb744 | 2020-12-21 19:13:04 +0100 | [diff] [blame] | 68 | #cooling-cells = <2>; /* min followed by max */ |
Martin Blumenstingl | 622b982 | 2018-11-30 00:00:43 +0100 | [diff] [blame] | 69 | }; |
| 70 | }; |
| 71 | |
| 72 | cpu_opp_table: opp-table { |
| 73 | compatible = "operating-points-v2"; |
| 74 | opp-shared; |
| 75 | |
| 76 | opp-96000000 { |
| 77 | opp-hz = /bits/ 64 <96000000>; |
| 78 | opp-microvolt = <825000>; |
| 79 | }; |
| 80 | opp-192000000 { |
| 81 | opp-hz = /bits/ 64 <192000000>; |
| 82 | opp-microvolt = <825000>; |
| 83 | }; |
| 84 | opp-312000000 { |
| 85 | opp-hz = /bits/ 64 <312000000>; |
| 86 | opp-microvolt = <825000>; |
| 87 | }; |
| 88 | opp-408000000 { |
| 89 | opp-hz = /bits/ 64 <408000000>; |
| 90 | opp-microvolt = <825000>; |
| 91 | }; |
| 92 | opp-504000000 { |
| 93 | opp-hz = /bits/ 64 <504000000>; |
| 94 | opp-microvolt = <825000>; |
| 95 | }; |
| 96 | opp-600000000 { |
| 97 | opp-hz = /bits/ 64 <600000000>; |
| 98 | opp-microvolt = <850000>; |
| 99 | }; |
| 100 | opp-720000000 { |
| 101 | opp-hz = /bits/ 64 <720000000>; |
| 102 | opp-microvolt = <850000>; |
| 103 | }; |
| 104 | opp-816000000 { |
| 105 | opp-hz = /bits/ 64 <816000000>; |
| 106 | opp-microvolt = <875000>; |
| 107 | }; |
| 108 | opp-1008000000 { |
| 109 | opp-hz = /bits/ 64 <1008000000>; |
| 110 | opp-microvolt = <925000>; |
| 111 | }; |
| 112 | opp-1200000000 { |
| 113 | opp-hz = /bits/ 64 <1200000000>; |
| 114 | opp-microvolt = <975000>; |
| 115 | }; |
| 116 | opp-1416000000 { |
| 117 | opp-hz = /bits/ 64 <1416000000>; |
| 118 | opp-microvolt = <1025000>; |
| 119 | }; |
| 120 | opp-1608000000 { |
| 121 | opp-hz = /bits/ 64 <1608000000>; |
| 122 | opp-microvolt = <1100000>; |
| 123 | }; |
| 124 | opp-1800000000 { |
| 125 | status = "disabled"; |
| 126 | opp-hz = /bits/ 64 <1800000000>; |
| 127 | opp-microvolt = <1125000>; |
| 128 | }; |
| 129 | opp-1992000000 { |
| 130 | status = "disabled"; |
| 131 | opp-hz = /bits/ 64 <1992000000>; |
| 132 | opp-microvolt = <1150000>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 133 | }; |
| 134 | }; |
Martin Blumenstingl | 8a7f0c5 | 2017-06-15 23:33:48 +0200 | [diff] [blame] | 135 | |
Martin Blumenstingl | 7d3f6b5 | 2018-12-08 18:12:46 +0100 | [diff] [blame] | 136 | gpu_opp_table: gpu-opp-table { |
| 137 | compatible = "operating-points-v2"; |
| 138 | |
Martin Blumenstingl | fe634a7a | 2019-12-25 02:06:06 +0100 | [diff] [blame] | 139 | opp-182142857 { |
| 140 | opp-hz = /bits/ 64 <182142857>; |
Martin Blumenstingl | 7d3f6b5 | 2018-12-08 18:12:46 +0100 | [diff] [blame] | 141 | opp-microvolt = <1150000>; |
| 142 | }; |
| 143 | opp-318750000 { |
| 144 | opp-hz = /bits/ 64 <318750000>; |
| 145 | opp-microvolt = <1150000>; |
| 146 | }; |
| 147 | opp-425000000 { |
| 148 | opp-hz = /bits/ 64 <425000000>; |
| 149 | opp-microvolt = <1150000>; |
| 150 | }; |
| 151 | opp-510000000 { |
| 152 | opp-hz = /bits/ 64 <510000000>; |
| 153 | opp-microvolt = <1150000>; |
| 154 | }; |
| 155 | opp-637500000 { |
| 156 | opp-hz = /bits/ 64 <637500000>; |
| 157 | opp-microvolt = <1150000>; |
| 158 | turbo-mode; |
| 159 | }; |
| 160 | }; |
| 161 | |
Martin Blumenstingl | 17b6602 | 2018-04-22 12:45:01 +0200 | [diff] [blame] | 162 | pmu { |
| 163 | compatible = "arm,cortex-a9-pmu"; |
| 164 | interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, |
| 165 | <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>, |
| 166 | <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, |
| 167 | <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; |
| 168 | interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; |
| 169 | }; |
| 170 | |
Martin Blumenstingl | 8a7f0c5 | 2017-06-15 23:33:48 +0200 | [diff] [blame] | 171 | reserved-memory { |
| 172 | #address-cells = <1>; |
| 173 | #size-cells = <1>; |
| 174 | ranges; |
| 175 | |
| 176 | /* 2 MiB reserved for Hardware ROM Firmware? */ |
| 177 | hwrom@0 { |
| 178 | reg = <0x0 0x200000>; |
| 179 | no-map; |
| 180 | }; |
| 181 | |
| 182 | /* |
| 183 | * 1 MiB reserved for the "ARM Power Firmware": this is ARM |
| 184 | * code which is responsible for system suspend. It loads a |
| 185 | * piece of ARC code ("arc_power" in the vendor u-boot tree) |
| 186 | * into SRAM, executes that and shuts down the (last) ARM core. |
| 187 | * The arc_power firmware then checks various wakeup sources |
| 188 | * (IR remote receiver, HDMI CEC, WIFI and Bluetooth wakeup or |
| 189 | * simply the power key) and re-starts the ARM core once it |
| 190 | * detects a wakeup request. |
| 191 | */ |
| 192 | power-firmware@4f00000 { |
| 193 | reg = <0x4f00000 0x100000>; |
| 194 | no-map; |
| 195 | }; |
| 196 | }; |
Martin Blumenstingl | 7e22d72 | 2018-12-08 17:50:24 +0100 | [diff] [blame] | 197 | |
Martin Blumenstingl | ecdb744 | 2020-12-21 19:13:04 +0100 | [diff] [blame] | 198 | thermal-zones { |
| 199 | soc { |
| 200 | polling-delay-passive = <250>; /* milliseconds */ |
| 201 | polling-delay = <1000>; /* milliseconds */ |
| 202 | thermal-sensors = <&thermal_sensor>; |
| 203 | |
| 204 | cooling-maps { |
| 205 | map0 { |
| 206 | trip = <&soc_passive>; |
| 207 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 208 | <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 209 | <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 210 | <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 211 | <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 212 | }; |
| 213 | |
| 214 | map1 { |
| 215 | trip = <&soc_hot>; |
| 216 | cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 217 | <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 218 | <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 219 | <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, |
| 220 | <&mali THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; |
| 221 | }; |
| 222 | }; |
| 223 | |
| 224 | trips { |
| 225 | soc_passive: soc-passive { |
| 226 | temperature = <80000>; /* millicelsius */ |
| 227 | hysteresis = <2000>; /* millicelsius */ |
| 228 | type = "passive"; |
| 229 | }; |
| 230 | |
| 231 | soc_hot: soc-hot { |
| 232 | temperature = <90000>; /* millicelsius */ |
| 233 | hysteresis = <2000>; /* millicelsius */ |
| 234 | type = "hot"; |
| 235 | }; |
| 236 | |
| 237 | soc_critical: soc-critical { |
| 238 | temperature = <110000>; /* millicelsius */ |
| 239 | hysteresis = <2000>; /* millicelsius */ |
| 240 | type = "critical"; |
| 241 | }; |
| 242 | }; |
| 243 | }; |
| 244 | }; |
| 245 | |
Martin Blumenstingl | 47b5818 | 2019-05-20 21:43:51 +0200 | [diff] [blame] | 246 | mmcbus: bus@c8000000 { |
| 247 | compatible = "simple-bus"; |
| 248 | reg = <0xc8000000 0x8000>; |
| 249 | #address-cells = <1>; |
| 250 | #size-cells = <1>; |
| 251 | ranges = <0x0 0xc8000000 0x8000>; |
| 252 | |
Martin Blumenstingl | c4ac5c3 | 2019-12-08 19:05:24 +0100 | [diff] [blame] | 253 | ddr_clkc: clock-controller@400 { |
| 254 | compatible = "amlogic,meson8-ddr-clkc"; |
| 255 | reg = <0x400 0x20>; |
| 256 | clocks = <&xtal>; |
| 257 | clock-names = "xtal"; |
| 258 | #clock-cells = <1>; |
| 259 | }; |
| 260 | |
Martin Blumenstingl | 47b5818 | 2019-05-20 21:43:51 +0200 | [diff] [blame] | 261 | dmcbus: bus@6000 { |
| 262 | compatible = "simple-bus"; |
| 263 | reg = <0x6000 0x400>; |
| 264 | #address-cells = <1>; |
| 265 | #size-cells = <1>; |
| 266 | ranges = <0x0 0x6000 0x400>; |
| 267 | |
| 268 | canvas: video-lut@20 { |
| 269 | compatible = "amlogic,meson8-canvas", |
| 270 | "amlogic,canvas"; |
| 271 | reg = <0x20 0x14>; |
| 272 | }; |
| 273 | }; |
| 274 | }; |
| 275 | |
Martin Blumenstingl | 7e22d72 | 2018-12-08 17:50:24 +0100 | [diff] [blame] | 276 | apb: bus@d0000000 { |
| 277 | compatible = "simple-bus"; |
| 278 | reg = <0xd0000000 0x200000>; |
| 279 | #address-cells = <1>; |
| 280 | #size-cells = <1>; |
| 281 | ranges = <0x0 0xd0000000 0x200000>; |
Martin Blumenstingl | 7d3f6b5 | 2018-12-08 18:12:46 +0100 | [diff] [blame] | 282 | |
| 283 | mali: gpu@c0000 { |
| 284 | compatible = "amlogic,meson8-mali", "arm,mali-450"; |
| 285 | reg = <0xc0000 0x40000>; |
| 286 | interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, |
| 287 | <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, |
| 288 | <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, |
| 289 | <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, |
| 290 | <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, |
| 291 | <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, |
| 292 | <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>, |
| 293 | <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>, |
| 294 | <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, |
| 295 | <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>, |
Martin Blumenstingl | 7d3f6b5 | 2018-12-08 18:12:46 +0100 | [diff] [blame] | 296 | <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>, |
| 297 | <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>, |
| 298 | <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>, |
| 299 | <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>, |
| 300 | <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>, |
| 301 | <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; |
| 302 | interrupt-names = "gp", "gpmmu", "pp", "pmu", |
| 303 | "pp0", "ppmmu0", "pp1", "ppmmu1", |
| 304 | "pp2", "ppmmu2", "pp4", "ppmmu4", |
| 305 | "pp5", "ppmmu5", "pp6", "ppmmu6"; |
| 306 | resets = <&reset RESET_MALI>; |
Martin Blumenstingl | 44cf630 | 2021-07-11 23:40:23 +0200 | [diff] [blame] | 307 | |
Martin Blumenstingl | 7d3f6b5 | 2018-12-08 18:12:46 +0100 | [diff] [blame] | 308 | clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>; |
| 309 | clock-names = "bus", "core"; |
Martin Blumenstingl | 44cf630 | 2021-07-11 23:40:23 +0200 | [diff] [blame] | 310 | |
| 311 | assigned-clocks = <&clkc CLKID_MALI>; |
| 312 | assigned-clock-rates = <318750000>; |
| 313 | |
Martin Blumenstingl | 7d3f6b5 | 2018-12-08 18:12:46 +0100 | [diff] [blame] | 314 | operating-points-v2 = <&gpu_opp_table>; |
Martin Blumenstingl | ecdb744 | 2020-12-21 19:13:04 +0100 | [diff] [blame] | 315 | #cooling-cells = <2>; /* min followed by max */ |
Martin Blumenstingl | 7d3f6b5 | 2018-12-08 18:12:46 +0100 | [diff] [blame] | 316 | }; |
Martin Blumenstingl | 7e22d72 | 2018-12-08 17:50:24 +0100 | [diff] [blame] | 317 | }; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 318 | }; /* end of / */ |
| 319 | |
Martin Blumenstingl | 4f8ca13 | 2021-07-18 01:30:29 +0200 | [diff] [blame] | 320 | &aiu { |
| 321 | compatible = "amlogic,aiu-meson8", "amlogic,aiu"; |
| 322 | clocks = <&clkc CLKID_AIU_GLUE>, |
| 323 | <&clkc CLKID_I2S_OUT>, |
| 324 | <&clkc CLKID_AOCLK_GATE>, |
| 325 | <&clkc CLKID_CTS_AMCLK>, |
| 326 | <&clkc CLKID_MIXER_IFACE>, |
| 327 | <&clkc CLKID_IEC958>, |
| 328 | <&clkc CLKID_IEC958_GATE>, |
| 329 | <&clkc CLKID_CTS_MCLK_I958>, |
| 330 | <&clkc CLKID_CTS_I958>; |
| 331 | clock-names = "pclk", |
| 332 | "i2s_pclk", |
| 333 | "i2s_aoclk", |
| 334 | "i2s_mclk", |
| 335 | "i2s_mixer", |
| 336 | "spdif_pclk", |
| 337 | "spdif_aoclk", |
| 338 | "spdif_mclk", |
| 339 | "spdif_mclk_sel"; |
| 340 | resets = <&reset RESET_AIU>; |
| 341 | }; |
| 342 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 343 | &aobus { |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 344 | pmu: pmu@e0 { |
| 345 | compatible = "amlogic,meson8-pmu", "syscon"; |
Martin Blumenstingl | 46c9585 | 2019-11-17 16:41:54 +0100 | [diff] [blame] | 346 | reg = <0xe0 0x18>; |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 347 | }; |
| 348 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 349 | pinctrl_aobus: pinctrl@84 { |
| 350 | compatible = "amlogic,meson8-aobus-pinctrl"; |
| 351 | reg = <0x84 0xc>; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 352 | #address-cells = <1>; |
| 353 | #size-cells = <1>; |
| 354 | ranges; |
| 355 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 356 | gpio_ao: ao-bank@14 { |
| 357 | reg = <0x14 0x4>, |
| 358 | <0x2c 0x4>, |
| 359 | <0x24 0x8>; |
| 360 | reg-names = "mux", "pull", "gpio"; |
| 361 | gpio-controller; |
| 362 | #gpio-cells = <2>; |
Jerome Brunet | 677c432 | 2017-09-21 19:14:44 +0200 | [diff] [blame] | 363 | gpio-ranges = <&pinctrl_aobus 0 0 16>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 364 | }; |
| 365 | |
Martin Blumenstingl | 4f8ca13 | 2021-07-18 01:30:29 +0200 | [diff] [blame] | 366 | i2s_am_clk_pins: i2s-am-clk-out { |
| 367 | mux { |
| 368 | groups = "i2s_am_clk_out_ao"; |
| 369 | function = "i2s_ao"; |
| 370 | bias-disable; |
| 371 | }; |
| 372 | }; |
| 373 | |
| 374 | i2s_out_ao_clk_pins: i2s-ao-clk-out { |
| 375 | mux { |
| 376 | groups = "i2s_ao_clk_out_ao"; |
| 377 | function = "i2s_ao"; |
| 378 | bias-disable; |
| 379 | }; |
| 380 | }; |
| 381 | |
| 382 | i2s_out_lr_clk_pins: i2s-lr-clk-out { |
| 383 | mux { |
| 384 | groups = "i2s_lr_clk_out_ao"; |
| 385 | function = "i2s_ao"; |
| 386 | bias-disable; |
| 387 | }; |
| 388 | }; |
| 389 | |
| 390 | i2s_out_ch01_ao_pins: i2s-out-ch01 { |
| 391 | mux { |
| 392 | groups = "i2s_out_ch01_ao"; |
| 393 | function = "i2s_ao"; |
| 394 | bias-disable; |
| 395 | }; |
| 396 | }; |
| 397 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 398 | uart_ao_a_pins: uart_ao_a { |
| 399 | mux { |
| 400 | groups = "uart_tx_ao_a", "uart_rx_ao_a"; |
| 401 | function = "uart_ao"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 402 | bias-disable; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 403 | }; |
| 404 | }; |
| 405 | |
| 406 | i2c_ao_pins: i2c_mst_ao { |
| 407 | mux { |
| 408 | groups = "i2c_mst_sck_ao", "i2c_mst_sda_ao"; |
| 409 | function = "i2c_mst_ao"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 410 | bias-disable; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 411 | }; |
| 412 | }; |
Martin Blumenstingl | 79eb80b | 2017-06-10 00:20:39 +0200 | [diff] [blame] | 413 | |
| 414 | ir_recv_pins: remote { |
| 415 | mux { |
| 416 | groups = "remote_input"; |
| 417 | function = "remote"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 418 | bias-disable; |
Martin Blumenstingl | 79eb80b | 2017-06-10 00:20:39 +0200 | [diff] [blame] | 419 | }; |
| 420 | }; |
Martin Blumenstingl | 192ec77 | 2017-06-15 23:33:45 +0200 | [diff] [blame] | 421 | |
| 422 | pwm_f_ao_pins: pwm-f-ao { |
| 423 | mux { |
| 424 | groups = "pwm_f_ao"; |
| 425 | function = "pwm_f_ao"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 426 | bias-disable; |
Martin Blumenstingl | 192ec77 | 2017-06-15 23:33:45 +0200 | [diff] [blame] | 427 | }; |
| 428 | }; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 429 | }; |
| 430 | }; |
| 431 | |
Martin Blumenstingl | fb606cd | 2021-01-02 21:59:04 +0100 | [diff] [blame] | 432 | &ao_arc_rproc { |
| 433 | compatible= "amlogic,meson8-ao-arc", "amlogic,meson-mx-ao-arc"; |
| 434 | amlogic,secbus2 = <&secbus2>; |
| 435 | sram = <&ao_arc_sram>; |
| 436 | resets = <&reset RESET_MEDIA_CPU>; |
| 437 | clocks = <&clkc CLKID_AO_MEDIA_CPU>; |
| 438 | }; |
| 439 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 440 | &cbus { |
Martin Blumenstingl | e3087187 | 2018-01-21 23:14:13 +0100 | [diff] [blame] | 441 | reset: reset-controller@4404 { |
| 442 | compatible = "amlogic,meson8b-reset"; |
| 443 | reg = <0x4404 0x9c>; |
| 444 | #reset-cells = <1>; |
| 445 | }; |
| 446 | |
Martin Blumenstingl | bd835d5 | 2017-09-23 16:14:03 +0200 | [diff] [blame] | 447 | analog_top: analog-top@81a8 { |
| 448 | compatible = "amlogic,meson8-analog-top", "syscon"; |
| 449 | reg = <0x81a8 0x14>; |
| 450 | }; |
| 451 | |
Martin Blumenstingl | 43d91c5 | 2017-07-12 00:20:15 +0200 | [diff] [blame] | 452 | pwm_ef: pwm@86c0 { |
| 453 | compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm"; |
| 454 | reg = <0x86c0 0x10>; |
| 455 | #pwm-cells = <3>; |
| 456 | status = "disabled"; |
| 457 | }; |
| 458 | |
Martin Blumenstingl | b6eac0d | 2019-02-09 01:26:40 +0100 | [diff] [blame] | 459 | clock-measure@8758 { |
| 460 | compatible = "amlogic,meson8-clk-measure"; |
| 461 | reg = <0x8758 0x1c>; |
| 462 | }; |
| 463 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 464 | pinctrl_cbus: pinctrl@9880 { |
| 465 | compatible = "amlogic,meson8-cbus-pinctrl"; |
| 466 | reg = <0x9880 0x10>; |
| 467 | #address-cells = <1>; |
| 468 | #size-cells = <1>; |
| 469 | ranges; |
| 470 | |
| 471 | gpio: banks@80b0 { |
| 472 | reg = <0x80b0 0x28>, |
| 473 | <0x80e8 0x18>, |
| 474 | <0x8120 0x18>, |
| 475 | <0x8030 0x30>; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 476 | reg-names = "mux", "pull", "pull-enable", "gpio"; |
| 477 | gpio-controller; |
| 478 | #gpio-cells = <2>; |
Neil Armstrong | 90f349a | 2017-03-23 17:27:26 +0100 | [diff] [blame] | 479 | gpio-ranges = <&pinctrl_cbus 0 0 120>; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 480 | }; |
| 481 | |
Martin Blumenstingl | d42ce5a | 2017-06-15 23:33:46 +0200 | [diff] [blame] | 482 | sd_a_pins: sd-a { |
| 483 | mux { |
| 484 | groups = "sd_d0_a", "sd_d1_a", "sd_d2_a", |
| 485 | "sd_d3_a", "sd_clk_a", "sd_cmd_a"; |
| 486 | function = "sd_a"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 487 | bias-disable; |
Martin Blumenstingl | d42ce5a | 2017-06-15 23:33:46 +0200 | [diff] [blame] | 488 | }; |
| 489 | }; |
| 490 | |
| 491 | sd_b_pins: sd-b { |
| 492 | mux { |
| 493 | groups = "sd_d0_b", "sd_d1_b", "sd_d2_b", |
| 494 | "sd_d3_b", "sd_clk_b", "sd_cmd_b"; |
| 495 | function = "sd_b"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 496 | bias-disable; |
Martin Blumenstingl | d42ce5a | 2017-06-15 23:33:46 +0200 | [diff] [blame] | 497 | }; |
| 498 | }; |
| 499 | |
| 500 | sd_c_pins: sd-c { |
| 501 | mux { |
| 502 | groups = "sd_d0_c", "sd_d1_c", "sd_d2_c", |
| 503 | "sd_d3_c", "sd_clk_c", "sd_cmd_c"; |
| 504 | function = "sd_c"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 505 | bias-disable; |
Martin Blumenstingl | d42ce5a | 2017-06-15 23:33:46 +0200 | [diff] [blame] | 506 | }; |
| 507 | }; |
| 508 | |
Martin Blumenstingl | 73106f7 | 2020-06-20 18:36:52 +0200 | [diff] [blame] | 509 | sdxc_b_pins: sdxc-b { |
| 510 | mux { |
| 511 | groups = "sdxc_d0_b", "sdxc_d13_b", |
| 512 | "sdxc_clk_b", "sdxc_cmd_b"; |
| 513 | function = "sdxc_b"; |
| 514 | bias-pull-up; |
| 515 | }; |
| 516 | }; |
| 517 | |
Martin Blumenstingl | 4f8ca13 | 2021-07-18 01:30:29 +0200 | [diff] [blame] | 518 | spdif_out_pins: spdif-out { |
| 519 | mux { |
| 520 | groups = "spdif_out"; |
| 521 | function = "spdif"; |
| 522 | bias-disable; |
| 523 | }; |
| 524 | }; |
| 525 | |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 526 | spi_nor_pins: nor { |
| 527 | mux { |
| 528 | groups = "nor_d", "nor_q", "nor_c", "nor_cs"; |
| 529 | function = "nor"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 530 | bias-disable; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 531 | }; |
| 532 | }; |
| 533 | |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 534 | eth_pins: ethernet { |
| 535 | mux { |
| 536 | groups = "eth_tx_clk_50m", "eth_tx_en", |
| 537 | "eth_txd1", "eth_txd0", |
| 538 | "eth_rx_clk_in", "eth_rx_dv", |
| 539 | "eth_rxd1", "eth_rxd0", "eth_mdio", |
| 540 | "eth_mdc"; |
| 541 | function = "ethernet"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 542 | bias-disable; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 543 | }; |
| 544 | }; |
Martin Blumenstingl | 192ec77 | 2017-06-15 23:33:45 +0200 | [diff] [blame] | 545 | |
| 546 | pwm_e_pins: pwm-e { |
| 547 | mux { |
| 548 | groups = "pwm_e"; |
| 549 | function = "pwm_e"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 550 | bias-disable; |
Martin Blumenstingl | 192ec77 | 2017-06-15 23:33:45 +0200 | [diff] [blame] | 551 | }; |
| 552 | }; |
Martin Blumenstingl | e981e45 | 2018-05-10 01:50:36 +0200 | [diff] [blame] | 553 | |
| 554 | uart_a1_pins: uart-a1 { |
| 555 | mux { |
| 556 | groups = "uart_tx_a1", |
| 557 | "uart_rx_a1"; |
| 558 | function = "uart_a"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 559 | bias-disable; |
Martin Blumenstingl | e981e45 | 2018-05-10 01:50:36 +0200 | [diff] [blame] | 560 | }; |
| 561 | }; |
| 562 | |
| 563 | uart_a1_cts_rts_pins: uart-a1-cts-rts { |
| 564 | mux { |
| 565 | groups = "uart_cts_a1", |
| 566 | "uart_rts_a1"; |
| 567 | function = "uart_a"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 568 | bias-disable; |
Martin Blumenstingl | e981e45 | 2018-05-10 01:50:36 +0200 | [diff] [blame] | 569 | }; |
| 570 | }; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 571 | }; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 572 | }; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 573 | |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 574 | &ahb_sram { |
Martin Blumenstingl | fb606cd | 2021-01-02 21:59:04 +0100 | [diff] [blame] | 575 | ao_arc_sram: ao-arc-sram@0 { |
| 576 | compatible = "amlogic,meson8-ao-arc-sram"; |
| 577 | reg = <0x0 0x8000>; |
| 578 | pool; |
| 579 | }; |
| 580 | |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 581 | smp-sram@1ff80 { |
| 582 | compatible = "amlogic,meson8-smp-sram"; |
| 583 | reg = <0x1ff80 0x8>; |
| 584 | }; |
| 585 | }; |
| 586 | |
Martin Blumenstingl | 2cb51a8 | 2017-10-03 01:28:04 +0200 | [diff] [blame] | 587 | &efuse { |
| 588 | compatible = "amlogic,meson8-efuse"; |
| 589 | clocks = <&clkc CLKID_EFUSE>; |
| 590 | clock-names = "core"; |
Martin Blumenstingl | f4c6e8e | 2019-01-18 23:52:23 +0100 | [diff] [blame] | 591 | |
| 592 | temperature_calib: calib@1f4 { |
| 593 | /* only the upper two bytes are relevant */ |
| 594 | reg = <0x1f4 0x4>; |
| 595 | }; |
Martin Blumenstingl | 2cb51a8 | 2017-10-03 01:28:04 +0200 | [diff] [blame] | 596 | }; |
| 597 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 598 | ðmac { |
Martin Blumenstingl | f28d4bd | 2017-06-15 23:33:52 +0200 | [diff] [blame] | 599 | clocks = <&clkc CLKID_ETH>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 600 | clock-names = "stmmaceth"; |
Martin Blumenstingl | aecc72b | 2020-06-20 18:10:08 +0200 | [diff] [blame] | 601 | |
| 602 | power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 603 | }; |
Carlo Caione | b60e115 | 2016-03-23 10:13:59 +0100 | [diff] [blame] | 604 | |
Martin Blumenstingl | 59e45c6 | 2017-10-30 00:05:22 +0100 | [diff] [blame] | 605 | &gpio_intc { |
| 606 | compatible = "amlogic,meson8-gpio-intc", "amlogic,meson-gpio-intc"; |
| 607 | status = "okay"; |
| 608 | }; |
| 609 | |
Martin Blumenstingl | b6db393 | 2019-01-18 23:52:21 +0100 | [diff] [blame] | 610 | &hhi { |
| 611 | clkc: clock-controller { |
| 612 | compatible = "amlogic,meson8-clkc"; |
Martin Blumenstingl | c4ac5c3 | 2019-12-08 19:05:24 +0100 | [diff] [blame] | 613 | clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>; |
| 614 | clock-names = "xtal", "ddr_pll"; |
Martin Blumenstingl | b6db393 | 2019-01-18 23:52:21 +0100 | [diff] [blame] | 615 | #clock-cells = <1>; |
| 616 | #reset-cells = <1>; |
| 617 | }; |
Martin Blumenstingl | aecc72b | 2020-06-20 18:10:08 +0200 | [diff] [blame] | 618 | |
| 619 | pwrc: power-controller { |
| 620 | compatible = "amlogic,meson8-pwrc"; |
| 621 | #power-domain-cells = <1>; |
| 622 | amlogic,ao-sysctrl = <&pmu>; |
| 623 | clocks = <&clkc CLKID_VPU>; |
| 624 | clock-names = "vpu"; |
| 625 | assigned-clocks = <&clkc CLKID_VPU>; |
| 626 | assigned-clock-rates = <364285714>; |
| 627 | }; |
Martin Blumenstingl | b6db393 | 2019-01-18 23:52:21 +0100 | [diff] [blame] | 628 | }; |
| 629 | |
Martin Blumenstingl | a35910d | 2017-06-15 23:33:49 +0200 | [diff] [blame] | 630 | &hwrng { |
| 631 | compatible = "amlogic,meson8-rng", "amlogic,meson-rng"; |
| 632 | clocks = <&clkc CLKID_RNG0>; |
| 633 | clock-names = "core"; |
| 634 | }; |
| 635 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 636 | &i2c_AO { |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 637 | clocks = <&clkc CLKID_CLK81>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 638 | }; |
Carlo Caione | b60e115 | 2016-03-23 10:13:59 +0100 | [diff] [blame] | 639 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 640 | &i2c_A { |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 641 | clocks = <&clkc CLKID_CLK81>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 642 | }; |
Carlo Caione | b60e115 | 2016-03-23 10:13:59 +0100 | [diff] [blame] | 643 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 644 | &i2c_B { |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 645 | clocks = <&clkc CLKID_CLK81>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 646 | }; |
| 647 | |
Carlo Caione | bbe5b23 | 2017-04-17 23:42:44 +0200 | [diff] [blame] | 648 | &L2 { |
| 649 | arm,data-latency = <3 3 3>; |
| 650 | arm,tag-latency = <2 2 2>; |
| 651 | arm,filter-ranges = <0x100000 0xc0000000>; |
Martin Blumenstingl | 6844e96 | 2017-10-31 23:23:16 +0100 | [diff] [blame] | 652 | prefetch-data = <1>; |
| 653 | prefetch-instr = <1>; |
| 654 | arm,shared-override; |
Carlo Caione | bbe5b23 | 2017-04-17 23:42:44 +0200 | [diff] [blame] | 655 | }; |
| 656 | |
Martin Blumenstingl | e8c276d | 2018-11-23 20:53:07 +0100 | [diff] [blame] | 657 | &periph { |
| 658 | scu@0 { |
| 659 | compatible = "arm,cortex-a9-scu"; |
| 660 | reg = <0x0 0x100>; |
| 661 | }; |
Martin Blumenstingl | 1124d79 | 2018-11-23 20:53:08 +0100 | [diff] [blame] | 662 | |
Martin Blumenstingl | 2710e8d | 2018-11-23 20:53:09 +0100 | [diff] [blame] | 663 | timer@200 { |
| 664 | compatible = "arm,cortex-a9-global-timer"; |
| 665 | reg = <0x200 0x20>; |
| 666 | interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>; |
| 667 | clocks = <&clkc CLKID_PERIPH>; |
| 668 | |
| 669 | /* |
| 670 | * the arm_global_timer driver currently does not handle clock |
| 671 | * rate changes. Keep it disabled for now. |
| 672 | */ |
| 673 | status = "disabled"; |
| 674 | }; |
| 675 | |
Martin Blumenstingl | 1124d79 | 2018-11-23 20:53:08 +0100 | [diff] [blame] | 676 | timer@600 { |
| 677 | compatible = "arm,cortex-a9-twd-timer"; |
| 678 | reg = <0x600 0x20>; |
| 679 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>; |
| 680 | clocks = <&clkc CLKID_PERIPH>; |
| 681 | }; |
Martin Blumenstingl | e8c276d | 2018-11-23 20:53:07 +0100 | [diff] [blame] | 682 | }; |
| 683 | |
Martin Blumenstingl | 43d91c5 | 2017-07-12 00:20:15 +0200 | [diff] [blame] | 684 | &pwm_ab { |
| 685 | compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm"; |
| 686 | }; |
| 687 | |
| 688 | &pwm_cd { |
| 689 | compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm"; |
| 690 | }; |
| 691 | |
Martin Blumenstingl | f6eb973 | 2019-04-13 18:34:21 +0200 | [diff] [blame] | 692 | &rtc { |
| 693 | compatible = "amlogic,meson8-rtc"; |
| 694 | resets = <&reset RESET_RTC>; |
| 695 | }; |
| 696 | |
Martin Blumenstingl | a39a3b9 | 2017-06-15 23:33:47 +0200 | [diff] [blame] | 697 | &saradc { |
| 698 | compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc"; |
Martin Blumenstingl | 630ea31 | 2019-12-08 19:05:23 +0100 | [diff] [blame] | 699 | clocks = <&xtal>, <&clkc CLKID_SAR_ADC>; |
Xingyu Chen | b9b9db0 | 2017-11-16 17:01:15 +0800 | [diff] [blame] | 700 | clock-names = "clkin", "core"; |
Martin Blumenstingl | f4c6e8e | 2019-01-18 23:52:23 +0100 | [diff] [blame] | 701 | amlogic,hhi-sysctrl = <&hhi>; |
| 702 | nvmem-cells = <&temperature_calib>; |
| 703 | nvmem-cell-names = "temperature_calib"; |
Martin Blumenstingl | a39a3b9 | 2017-06-15 23:33:47 +0200 | [diff] [blame] | 704 | }; |
| 705 | |
Martin Blumenstingl | 73106f7 | 2020-06-20 18:36:52 +0200 | [diff] [blame] | 706 | &sdhc { |
| 707 | compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc"; |
| 708 | clocks = <&xtal>, |
| 709 | <&clkc CLKID_FCLK_DIV4>, |
| 710 | <&clkc CLKID_FCLK_DIV3>, |
| 711 | <&clkc CLKID_FCLK_DIV5>, |
| 712 | <&clkc CLKID_SDHC>; |
| 713 | clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk"; |
| 714 | }; |
| 715 | |
Martin Blumenstingl | fb606cd | 2021-01-02 21:59:04 +0100 | [diff] [blame] | 716 | &secbus { |
| 717 | secbus2: system-controller@4000 { |
| 718 | compatible = "amlogic,meson8-secbus2", "syscon"; |
| 719 | reg = <0x4000 0x2000>; |
| 720 | }; |
| 721 | }; |
| 722 | |
Martin Blumenstingl | 88b1b18 | 2017-10-07 18:29:39 +0200 | [diff] [blame] | 723 | &sdio { |
| 724 | compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio"; |
| 725 | clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>; |
| 726 | clock-names = "core", "clkin"; |
| 727 | }; |
| 728 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 729 | &spifc { |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 730 | clocks = <&clkc CLKID_CLK81>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 731 | }; |
| 732 | |
Martin Blumenstingl | 7b141ab | 2018-11-16 21:42:35 +0100 | [diff] [blame] | 733 | &timer_abcde { |
Martin Blumenstingl | 630ea31 | 2019-12-08 19:05:23 +0100 | [diff] [blame] | 734 | clocks = <&xtal>, <&clkc CLKID_CLK81>; |
Martin Blumenstingl | 7b141ab | 2018-11-16 21:42:35 +0100 | [diff] [blame] | 735 | clock-names = "xtal", "pclk"; |
| 736 | }; |
| 737 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 738 | &uart_AO { |
Martin Blumenstingl | 57007bf | 2021-12-27 19:00:25 +0100 | [diff] [blame^] | 739 | compatible = "amlogic,meson8-uart", "amlogic,meson-ao-uart"; |
| 740 | clocks = <&xtal>, <&clkc CLKID_CLK81>, <&clkc CLKID_CLK81>; |
| 741 | clock-names = "xtal", "pclk", "baud"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 742 | }; |
| 743 | |
| 744 | &uart_A { |
Martin Blumenstingl | 57007bf | 2021-12-27 19:00:25 +0100 | [diff] [blame^] | 745 | compatible = "amlogic,meson8-uart"; |
| 746 | clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>; |
| 747 | clock-names = "xtal", "pclk", "baud"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 748 | }; |
| 749 | |
| 750 | &uart_B { |
Martin Blumenstingl | 57007bf | 2021-12-27 19:00:25 +0100 | [diff] [blame^] | 751 | compatible = "amlogic,meson8-uart"; |
| 752 | clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>; |
| 753 | clock-names = "xtal", "pclk", "baud"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 754 | }; |
| 755 | |
| 756 | &uart_C { |
Martin Blumenstingl | 57007bf | 2021-12-27 19:00:25 +0100 | [diff] [blame^] | 757 | compatible = "amlogic,meson8-uart"; |
| 758 | clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>; |
| 759 | clock-names = "xtal", "pclk", "baud"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 760 | }; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 761 | |
| 762 | &usb0 { |
| 763 | compatible = "amlogic,meson8-usb", "snps,dwc2"; |
| 764 | clocks = <&clkc CLKID_USB0_DDR_BRIDGE>; |
| 765 | clock-names = "otg"; |
| 766 | }; |
| 767 | |
| 768 | &usb1 { |
| 769 | compatible = "amlogic,meson8-usb", "snps,dwc2"; |
| 770 | clocks = <&clkc CLKID_USB1_DDR_BRIDGE>; |
| 771 | clock-names = "otg"; |
| 772 | }; |
| 773 | |
| 774 | &usb0_phy { |
| 775 | compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy"; |
| 776 | clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>; |
| 777 | clock-names = "usb_general", "usb"; |
Martin Blumenstingl | e1fa57d | 2018-01-21 23:14:14 +0100 | [diff] [blame] | 778 | resets = <&reset RESET_USB_OTG>; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 779 | }; |
| 780 | |
| 781 | &usb1_phy { |
| 782 | compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy"; |
| 783 | clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>; |
| 784 | clock-names = "usb_general", "usb"; |
Martin Blumenstingl | e1fa57d | 2018-01-21 23:14:14 +0100 | [diff] [blame] | 785 | resets = <&reset RESET_USB_OTG>; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 786 | }; |