Neil Armstrong | 677092c | 2019-05-27 15:38:55 +0200 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0 OR MIT |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 2 | /* |
| 3 | * Copyright 2015 Endless Mobile, Inc. |
| 4 | * Author: Carlo Caione <carlo@endlessm.com> |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 5 | */ |
| 6 | |
Martin Blumenstingl | 6d549ff | 2019-12-08 19:05:25 +0100 | [diff] [blame] | 7 | #include <dt-bindings/clock/meson8-ddr-clkc.h> |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 8 | #include <dt-bindings/clock/meson8b-clkc.h> |
| 9 | #include <dt-bindings/gpio/meson8b-gpio.h> |
Martin Blumenstingl | 9960cac | 2020-06-20 18:10:10 +0200 | [diff] [blame] | 10 | #include <dt-bindings/power/meson8-power.h> |
Neil Armstrong | cad059c | 2016-05-30 15:27:18 +0200 | [diff] [blame] | 11 | #include <dt-bindings/reset/amlogic,meson8b-reset.h> |
Carlo Caione | 4692142 | 2017-09-17 18:45:23 +0200 | [diff] [blame] | 12 | #include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h> |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 13 | #include "meson.dtsi" |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 14 | |
| 15 | / { |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 16 | cpus { |
| 17 | #address-cells = <1>; |
| 18 | #size-cells = <0>; |
| 19 | |
Martin Blumenstingl | e8d85d7 | 2018-04-22 12:45:02 +0200 | [diff] [blame] | 20 | cpu0: cpu@200 { |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 21 | device_type = "cpu"; |
| 22 | compatible = "arm,cortex-a5"; |
| 23 | next-level-cache = <&L2>; |
| 24 | reg = <0x200>; |
Carlo Caione | 4692142 | 2017-09-17 18:45:23 +0200 | [diff] [blame] | 25 | enable-method = "amlogic,meson8b-smp"; |
| 26 | resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>; |
Martin Blumenstingl | c311552 | 2018-11-30 00:00:44 +0100 | [diff] [blame] | 27 | operating-points-v2 = <&cpu_opp_table>; |
| 28 | clocks = <&clkc CLKID_CPUCLK>; |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 29 | }; |
| 30 | |
Martin Blumenstingl | e8d85d7 | 2018-04-22 12:45:02 +0200 | [diff] [blame] | 31 | cpu1: cpu@201 { |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 32 | device_type = "cpu"; |
| 33 | compatible = "arm,cortex-a5"; |
| 34 | next-level-cache = <&L2>; |
| 35 | reg = <0x201>; |
Carlo Caione | 4692142 | 2017-09-17 18:45:23 +0200 | [diff] [blame] | 36 | enable-method = "amlogic,meson8b-smp"; |
| 37 | resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>; |
Martin Blumenstingl | c311552 | 2018-11-30 00:00:44 +0100 | [diff] [blame] | 38 | operating-points-v2 = <&cpu_opp_table>; |
| 39 | clocks = <&clkc CLKID_CPUCLK>; |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 40 | }; |
| 41 | |
Martin Blumenstingl | e8d85d7 | 2018-04-22 12:45:02 +0200 | [diff] [blame] | 42 | cpu2: cpu@202 { |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 43 | device_type = "cpu"; |
| 44 | compatible = "arm,cortex-a5"; |
| 45 | next-level-cache = <&L2>; |
| 46 | reg = <0x202>; |
Carlo Caione | 4692142 | 2017-09-17 18:45:23 +0200 | [diff] [blame] | 47 | enable-method = "amlogic,meson8b-smp"; |
| 48 | resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>; |
Martin Blumenstingl | c311552 | 2018-11-30 00:00:44 +0100 | [diff] [blame] | 49 | operating-points-v2 = <&cpu_opp_table>; |
| 50 | clocks = <&clkc CLKID_CPUCLK>; |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 51 | }; |
| 52 | |
Martin Blumenstingl | e8d85d7 | 2018-04-22 12:45:02 +0200 | [diff] [blame] | 53 | cpu3: cpu@203 { |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 54 | device_type = "cpu"; |
| 55 | compatible = "arm,cortex-a5"; |
| 56 | next-level-cache = <&L2>; |
| 57 | reg = <0x203>; |
Carlo Caione | 4692142 | 2017-09-17 18:45:23 +0200 | [diff] [blame] | 58 | enable-method = "amlogic,meson8b-smp"; |
| 59 | resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>; |
Martin Blumenstingl | c311552 | 2018-11-30 00:00:44 +0100 | [diff] [blame] | 60 | operating-points-v2 = <&cpu_opp_table>; |
| 61 | clocks = <&clkc CLKID_CPUCLK>; |
| 62 | }; |
| 63 | }; |
| 64 | |
| 65 | cpu_opp_table: opp-table { |
| 66 | compatible = "operating-points-v2"; |
| 67 | opp-shared; |
| 68 | |
| 69 | opp-96000000 { |
| 70 | opp-hz = /bits/ 64 <96000000>; |
| 71 | opp-microvolt = <860000>; |
| 72 | }; |
| 73 | opp-192000000 { |
| 74 | opp-hz = /bits/ 64 <192000000>; |
| 75 | opp-microvolt = <860000>; |
| 76 | }; |
| 77 | opp-312000000 { |
| 78 | opp-hz = /bits/ 64 <312000000>; |
| 79 | opp-microvolt = <860000>; |
| 80 | }; |
| 81 | opp-408000000 { |
| 82 | opp-hz = /bits/ 64 <408000000>; |
| 83 | opp-microvolt = <860000>; |
| 84 | }; |
| 85 | opp-504000000 { |
| 86 | opp-hz = /bits/ 64 <504000000>; |
| 87 | opp-microvolt = <860000>; |
| 88 | }; |
| 89 | opp-600000000 { |
| 90 | opp-hz = /bits/ 64 <600000000>; |
| 91 | opp-microvolt = <860000>; |
| 92 | }; |
| 93 | opp-720000000 { |
| 94 | opp-hz = /bits/ 64 <720000000>; |
| 95 | opp-microvolt = <860000>; |
| 96 | }; |
| 97 | opp-816000000 { |
| 98 | opp-hz = /bits/ 64 <816000000>; |
| 99 | opp-microvolt = <900000>; |
| 100 | }; |
| 101 | opp-1008000000 { |
| 102 | opp-hz = /bits/ 64 <1008000000>; |
| 103 | opp-microvolt = <1140000>; |
| 104 | }; |
| 105 | opp-1200000000 { |
| 106 | opp-hz = /bits/ 64 <1200000000>; |
| 107 | opp-microvolt = <1140000>; |
| 108 | }; |
| 109 | opp-1320000000 { |
| 110 | opp-hz = /bits/ 64 <1320000000>; |
| 111 | opp-microvolt = <1140000>; |
| 112 | }; |
| 113 | opp-1488000000 { |
| 114 | opp-hz = /bits/ 64 <1488000000>; |
| 115 | opp-microvolt = <1140000>; |
| 116 | }; |
| 117 | opp-1536000000 { |
| 118 | opp-hz = /bits/ 64 <1536000000>; |
| 119 | opp-microvolt = <1140000>; |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 120 | }; |
| 121 | }; |
Martin Blumenstingl | d8dd3d2 | 2017-06-15 23:33:51 +0200 | [diff] [blame] | 122 | |
Martin Blumenstingl | c3ea80b | 2018-12-08 18:12:47 +0100 | [diff] [blame] | 123 | gpu_opp_table: gpu-opp-table { |
| 124 | compatible = "operating-points-v2"; |
| 125 | |
| 126 | opp-255000000 { |
| 127 | opp-hz = /bits/ 64 <255000000>; |
Martin Blumenstingl | 26d6514 | 2019-05-12 21:39:36 +0200 | [diff] [blame] | 128 | opp-microvolt = <1100000>; |
Martin Blumenstingl | c3ea80b | 2018-12-08 18:12:47 +0100 | [diff] [blame] | 129 | }; |
Martin Blumenstingl | c3dd331 | 2019-12-25 02:06:07 +0100 | [diff] [blame] | 130 | opp-364285714 { |
| 131 | opp-hz = /bits/ 64 <364285714>; |
Martin Blumenstingl | 26d6514 | 2019-05-12 21:39:36 +0200 | [diff] [blame] | 132 | opp-microvolt = <1100000>; |
Martin Blumenstingl | c3ea80b | 2018-12-08 18:12:47 +0100 | [diff] [blame] | 133 | }; |
| 134 | opp-425000000 { |
| 135 | opp-hz = /bits/ 64 <425000000>; |
Martin Blumenstingl | 26d6514 | 2019-05-12 21:39:36 +0200 | [diff] [blame] | 136 | opp-microvolt = <1100000>; |
Martin Blumenstingl | c3ea80b | 2018-12-08 18:12:47 +0100 | [diff] [blame] | 137 | }; |
| 138 | opp-510000000 { |
| 139 | opp-hz = /bits/ 64 <510000000>; |
Martin Blumenstingl | 26d6514 | 2019-05-12 21:39:36 +0200 | [diff] [blame] | 140 | opp-microvolt = <1100000>; |
Martin Blumenstingl | c3ea80b | 2018-12-08 18:12:47 +0100 | [diff] [blame] | 141 | }; |
| 142 | opp-637500000 { |
| 143 | opp-hz = /bits/ 64 <637500000>; |
Martin Blumenstingl | 26d6514 | 2019-05-12 21:39:36 +0200 | [diff] [blame] | 144 | opp-microvolt = <1100000>; |
Martin Blumenstingl | c3ea80b | 2018-12-08 18:12:47 +0100 | [diff] [blame] | 145 | turbo-mode; |
| 146 | }; |
| 147 | }; |
| 148 | |
Martin Blumenstingl | e8d85d7 | 2018-04-22 12:45:02 +0200 | [diff] [blame] | 149 | pmu { |
| 150 | compatible = "arm,cortex-a5-pmu"; |
| 151 | interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, |
| 152 | <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>, |
| 153 | <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, |
| 154 | <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; |
| 155 | interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; |
| 156 | }; |
| 157 | |
Linus Lüssing | b9b4bf5 | 2017-10-02 17:59:03 +0200 | [diff] [blame] | 158 | reserved-memory { |
| 159 | #address-cells = <1>; |
| 160 | #size-cells = <1>; |
| 161 | ranges; |
| 162 | |
| 163 | /* 2 MiB reserved for Hardware ROM Firmware? */ |
| 164 | hwrom@0 { |
| 165 | reg = <0x0 0x200000>; |
| 166 | no-map; |
| 167 | }; |
| 168 | }; |
Martin Blumenstingl | e402d24 | 2018-12-08 17:50:25 +0100 | [diff] [blame] | 169 | |
Martin Blumenstingl | 872f881 | 2019-05-20 21:43:53 +0200 | [diff] [blame] | 170 | mmcbus: bus@c8000000 { |
| 171 | compatible = "simple-bus"; |
| 172 | reg = <0xc8000000 0x8000>; |
| 173 | #address-cells = <1>; |
| 174 | #size-cells = <1>; |
| 175 | ranges = <0x0 0xc8000000 0x8000>; |
| 176 | |
Martin Blumenstingl | 6d549ff | 2019-12-08 19:05:25 +0100 | [diff] [blame] | 177 | ddr_clkc: clock-controller@400 { |
| 178 | compatible = "amlogic,meson8b-ddr-clkc"; |
| 179 | reg = <0x400 0x20>; |
| 180 | clocks = <&xtal>; |
| 181 | clock-names = "xtal"; |
| 182 | #clock-cells = <1>; |
| 183 | }; |
| 184 | |
Martin Blumenstingl | 872f881 | 2019-05-20 21:43:53 +0200 | [diff] [blame] | 185 | dmcbus: bus@6000 { |
| 186 | compatible = "simple-bus"; |
| 187 | reg = <0x6000 0x400>; |
| 188 | #address-cells = <1>; |
| 189 | #size-cells = <1>; |
| 190 | ranges = <0x0 0x6000 0x400>; |
| 191 | |
| 192 | canvas: video-lut@48 { |
| 193 | compatible = "amlogic,meson8b-canvas", |
| 194 | "amlogic,canvas"; |
| 195 | reg = <0x48 0x14>; |
| 196 | }; |
| 197 | }; |
| 198 | }; |
| 199 | |
Martin Blumenstingl | e402d24 | 2018-12-08 17:50:25 +0100 | [diff] [blame] | 200 | apb: bus@d0000000 { |
| 201 | compatible = "simple-bus"; |
| 202 | reg = <0xd0000000 0x200000>; |
| 203 | #address-cells = <1>; |
| 204 | #size-cells = <1>; |
| 205 | ranges = <0x0 0xd0000000 0x200000>; |
Martin Blumenstingl | c3ea80b | 2018-12-08 18:12:47 +0100 | [diff] [blame] | 206 | |
| 207 | mali: gpu@c0000 { |
| 208 | compatible = "amlogic,meson8b-mali", "arm,mali-450"; |
| 209 | reg = <0xc0000 0x40000>; |
| 210 | interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, |
| 211 | <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, |
| 212 | <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, |
| 213 | <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, |
| 214 | <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, |
| 215 | <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, |
| 216 | <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>, |
| 217 | <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>; |
| 218 | interrupt-names = "gp", "gpmmu", "pp", "pmu", |
| 219 | "pp0", "ppmmu0", "pp1", "ppmmu1"; |
| 220 | resets = <&reset RESET_MALI>; |
| 221 | clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>; |
| 222 | clock-names = "bus", "core"; |
| 223 | operating-points-v2 = <&gpu_opp_table>; |
Martin Blumenstingl | c3ea80b | 2018-12-08 18:12:47 +0100 | [diff] [blame] | 224 | }; |
Martin Blumenstingl | e402d24 | 2018-12-08 17:50:25 +0100 | [diff] [blame] | 225 | }; |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 226 | }; /* end of / */ |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 227 | |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 228 | &aobus { |
Carlo Caione | 4692142 | 2017-09-17 18:45:23 +0200 | [diff] [blame] | 229 | pmu: pmu@e0 { |
| 230 | compatible = "amlogic,meson8b-pmu", "syscon"; |
| 231 | reg = <0xe0 0x18>; |
| 232 | }; |
| 233 | |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 234 | pinctrl_aobus: pinctrl@84 { |
| 235 | compatible = "amlogic,meson8b-aobus-pinctrl"; |
| 236 | reg = <0x84 0xc>; |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 237 | #address-cells = <1>; |
| 238 | #size-cells = <1>; |
| 239 | ranges; |
| 240 | |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 241 | gpio_ao: ao-bank@14 { |
| 242 | reg = <0x14 0x4>, |
| 243 | <0x2c 0x4>, |
| 244 | <0x24 0x8>; |
| 245 | reg-names = "mux", "pull", "gpio"; |
| 246 | gpio-controller; |
| 247 | #gpio-cells = <2>; |
Jerome Brunet | 677c432 | 2017-09-21 19:14:44 +0200 | [diff] [blame] | 248 | gpio-ranges = <&pinctrl_aobus 0 0 16>; |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 249 | }; |
| 250 | |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 251 | uart_ao_a_pins: uart_ao_a { |
| 252 | mux { |
| 253 | groups = "uart_tx_ao_a", "uart_rx_ao_a"; |
| 254 | function = "uart_ao"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 255 | bias-disable; |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 256 | }; |
| 257 | }; |
Martin Blumenstingl | 15b520f | 2018-05-06 22:57:49 +0200 | [diff] [blame] | 258 | |
| 259 | ir_recv_pins: remote { |
| 260 | mux { |
| 261 | groups = "remote_input"; |
| 262 | function = "remote"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 263 | bias-disable; |
Martin Blumenstingl | 15b520f | 2018-05-06 22:57:49 +0200 | [diff] [blame] | 264 | }; |
| 265 | }; |
Carlo Caione | 4a69fcd | 2015-10-07 22:31:04 +0200 | [diff] [blame] | 266 | }; |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 267 | }; |
| 268 | |
| 269 | &cbus { |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 270 | reset: reset-controller@4404 { |
| 271 | compatible = "amlogic,meson8b-reset"; |
Martin Blumenstingl | a2730ed | 2018-01-21 23:14:12 +0100 | [diff] [blame] | 272 | reg = <0x4404 0x9c>; |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 273 | #reset-cells = <1>; |
| 274 | }; |
| 275 | |
Martin Blumenstingl | bd835d5 | 2017-09-23 16:14:03 +0200 | [diff] [blame] | 276 | analog_top: analog-top@81a8 { |
| 277 | compatible = "amlogic,meson8b-analog-top", "syscon"; |
| 278 | reg = <0x81a8 0x14>; |
| 279 | }; |
| 280 | |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 281 | pwm_ef: pwm@86c0 { |
| 282 | compatible = "amlogic,meson8b-pwm"; |
| 283 | reg = <0x86c0 0x10>; |
| 284 | #pwm-cells = <3>; |
| 285 | status = "disabled"; |
| 286 | }; |
| 287 | |
Martin Blumenstingl | f1975b98 | 2019-02-09 01:26:41 +0100 | [diff] [blame] | 288 | clock-measure@8758 { |
| 289 | compatible = "amlogic,meson8b-clk-measure"; |
| 290 | reg = <0x8758 0x1c>; |
| 291 | }; |
| 292 | |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 293 | pinctrl_cbus: pinctrl@9880 { |
| 294 | compatible = "amlogic,meson8b-cbus-pinctrl"; |
| 295 | reg = <0x9880 0x10>; |
| 296 | #address-cells = <1>; |
| 297 | #size-cells = <1>; |
| 298 | ranges; |
| 299 | |
| 300 | gpio: banks@80b0 { |
| 301 | reg = <0x80b0 0x28>, |
| 302 | <0x80e8 0x18>, |
| 303 | <0x8120 0x18>, |
| 304 | <0x8030 0x38>; |
| 305 | reg-names = "mux", "pull", "pull-enable", "gpio"; |
| 306 | gpio-controller; |
| 307 | #gpio-cells = <2>; |
Martin Blumenstingl | 4e461e6 | 2018-03-12 21:57:09 +0100 | [diff] [blame] | 308 | gpio-ranges = <&pinctrl_cbus 0 0 83>; |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 309 | }; |
Emiliano Ingrassia | b964465 | 2018-01-19 02:48:00 +0100 | [diff] [blame] | 310 | |
| 311 | eth_rgmii_pins: eth-rgmii { |
| 312 | mux { |
| 313 | groups = "eth_tx_clk", |
| 314 | "eth_tx_en", |
| 315 | "eth_txd1_0", |
Emiliano Ingrassia | b964465 | 2018-01-19 02:48:00 +0100 | [diff] [blame] | 316 | "eth_txd0_0", |
Emiliano Ingrassia | b964465 | 2018-01-19 02:48:00 +0100 | [diff] [blame] | 317 | "eth_rx_clk", |
| 318 | "eth_rx_dv", |
| 319 | "eth_rxd1", |
| 320 | "eth_rxd0", |
| 321 | "eth_mdio_en", |
| 322 | "eth_mdc", |
| 323 | "eth_ref_clk", |
| 324 | "eth_txd2", |
Martin Blumenstingl | 29f0023 | 2018-12-29 15:35:56 +0100 | [diff] [blame] | 325 | "eth_txd3", |
| 326 | "eth_rxd3", |
| 327 | "eth_rxd2"; |
Emiliano Ingrassia | b964465 | 2018-01-19 02:48:00 +0100 | [diff] [blame] | 328 | function = "ethernet"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 329 | bias-disable; |
Emiliano Ingrassia | b964465 | 2018-01-19 02:48:00 +0100 | [diff] [blame] | 330 | }; |
| 331 | }; |
Linus Lüssing | e03efbc | 2018-03-17 21:11:14 +0100 | [diff] [blame] | 332 | |
Martin Blumenstingl | a77d0ba | 2018-09-22 17:10:02 +0200 | [diff] [blame] | 333 | eth_rmii_pins: eth-rmii { |
| 334 | mux { |
| 335 | groups = "eth_tx_en", |
| 336 | "eth_txd1_0", |
| 337 | "eth_txd0_0", |
| 338 | "eth_rx_clk", |
| 339 | "eth_rx_dv", |
| 340 | "eth_rxd1", |
| 341 | "eth_rxd0", |
| 342 | "eth_mdio_en", |
| 343 | "eth_mdc"; |
| 344 | function = "ethernet"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 345 | bias-disable; |
Martin Blumenstingl | a77d0ba | 2018-09-22 17:10:02 +0200 | [diff] [blame] | 346 | }; |
| 347 | }; |
| 348 | |
Martin Blumenstingl | c821b81 | 2018-09-22 17:10:01 +0200 | [diff] [blame] | 349 | i2c_a_pins: i2c-a { |
| 350 | mux { |
| 351 | groups = "i2c_sda_a", "i2c_sck_a"; |
| 352 | function = "i2c_a"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 353 | bias-disable; |
Martin Blumenstingl | c821b81 | 2018-09-22 17:10:01 +0200 | [diff] [blame] | 354 | }; |
| 355 | }; |
| 356 | |
Linus Lüssing | e03efbc | 2018-03-17 21:11:14 +0100 | [diff] [blame] | 357 | sd_b_pins: sd-b { |
| 358 | mux { |
| 359 | groups = "sd_d0_b", "sd_d1_b", "sd_d2_b", |
| 360 | "sd_d3_b", "sd_clk_b", "sd_cmd_b"; |
| 361 | function = "sd_b"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 362 | bias-disable; |
Linus Lüssing | e03efbc | 2018-03-17 21:11:14 +0100 | [diff] [blame] | 363 | }; |
| 364 | }; |
Martin Blumenstingl | c821b81 | 2018-09-22 17:10:01 +0200 | [diff] [blame] | 365 | |
Martin Blumenstingl | 73106f7 | 2020-06-20 18:36:52 +0200 | [diff] [blame^] | 366 | sdxc_c_pins: sdxc-c { |
| 367 | mux { |
| 368 | groups = "sdxc_d0_c", "sdxc_d13_c", |
| 369 | "sdxc_d47_c", "sdxc_clk_c", |
| 370 | "sdxc_cmd_c"; |
| 371 | function = "sdxc_c"; |
| 372 | bias-pull-up; |
| 373 | }; |
| 374 | }; |
| 375 | |
Martin Blumenstingl | c821b81 | 2018-09-22 17:10:01 +0200 | [diff] [blame] | 376 | pwm_c1_pins: pwm-c1 { |
| 377 | mux { |
| 378 | groups = "pwm_c1"; |
| 379 | function = "pwm_c"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 380 | bias-disable; |
Martin Blumenstingl | c821b81 | 2018-09-22 17:10:01 +0200 | [diff] [blame] | 381 | }; |
| 382 | }; |
| 383 | |
Martin Blumenstingl | ea241bd | 2019-07-27 14:12:54 +0200 | [diff] [blame] | 384 | pwm_d_pins: pwm-d { |
| 385 | mux { |
| 386 | groups = "pwm_d"; |
| 387 | function = "pwm_d"; |
| 388 | bias-disable; |
| 389 | }; |
| 390 | }; |
| 391 | |
Martin Blumenstingl | c821b81 | 2018-09-22 17:10:01 +0200 | [diff] [blame] | 392 | uart_b0_pins: uart-b0 { |
| 393 | mux { |
| 394 | groups = "uart_tx_b0", |
| 395 | "uart_rx_b0"; |
| 396 | function = "uart_b"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 397 | bias-disable; |
Martin Blumenstingl | c821b81 | 2018-09-22 17:10:01 +0200 | [diff] [blame] | 398 | }; |
| 399 | }; |
| 400 | |
| 401 | uart_b0_cts_rts_pins: uart-b0-cts-rts { |
| 402 | mux { |
| 403 | groups = "uart_cts_b0", |
| 404 | "uart_rts_b0"; |
| 405 | function = "uart_b"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 406 | bias-disable; |
Martin Blumenstingl | c821b81 | 2018-09-22 17:10:01 +0200 | [diff] [blame] | 407 | }; |
| 408 | }; |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 409 | }; |
| 410 | }; |
| 411 | |
Carlo Caione | 4692142 | 2017-09-17 18:45:23 +0200 | [diff] [blame] | 412 | &ahb_sram { |
| 413 | smp-sram@1ff80 { |
| 414 | compatible = "amlogic,meson8b-smp-sram"; |
| 415 | reg = <0x1ff80 0x8>; |
| 416 | }; |
| 417 | }; |
| 418 | |
Martin Blumenstingl | 2cb51a8 | 2017-10-03 01:28:04 +0200 | [diff] [blame] | 419 | |
| 420 | &efuse { |
| 421 | compatible = "amlogic,meson8b-efuse"; |
| 422 | clocks = <&clkc CLKID_EFUSE>; |
| 423 | clock-names = "core"; |
Martin Blumenstingl | bbbcf64 | 2019-01-18 23:52:24 +0100 | [diff] [blame] | 424 | |
| 425 | temperature_calib: calib@1f4 { |
| 426 | /* only the upper two bytes are relevant */ |
| 427 | reg = <0x1f4 0x4>; |
| 428 | }; |
Martin Blumenstingl | 2cb51a8 | 2017-10-03 01:28:04 +0200 | [diff] [blame] | 429 | }; |
| 430 | |
Martin Blumenstingl | f28d4bd | 2017-06-15 23:33:52 +0200 | [diff] [blame] | 431 | ðmac { |
Emiliano Ingrassia | b964465 | 2018-01-19 02:48:00 +0100 | [diff] [blame] | 432 | compatible = "amlogic,meson8b-dwmac", "snps,dwmac-3.70a", "snps,dwmac"; |
| 433 | |
| 434 | reg = <0xc9410000 0x10000 |
| 435 | 0xc1108140 0x4>; |
| 436 | |
| 437 | clocks = <&clkc CLKID_ETH>, |
| 438 | <&clkc CLKID_MPLL2>, |
Martin Blumenstingl | b632506c | 2020-05-12 23:51:47 +0200 | [diff] [blame] | 439 | <&clkc CLKID_MPLL2>, |
| 440 | <&clkc CLKID_FCLK_DIV2>; |
| 441 | clock-names = "stmmaceth", "clkin0", "clkin1", "timing-adjustment"; |
Jerome Brunet | 4f0303d | 2019-07-18 11:36:23 +0200 | [diff] [blame] | 442 | rx-fifo-depth = <4096>; |
| 443 | tx-fifo-depth = <2048>; |
Emiliano Ingrassia | b964465 | 2018-01-19 02:48:00 +0100 | [diff] [blame] | 444 | |
| 445 | resets = <&reset RESET_ETHERNET>; |
| 446 | reset-names = "stmmaceth"; |
Martin Blumenstingl | 9960cac | 2020-06-20 18:10:10 +0200 | [diff] [blame] | 447 | |
| 448 | power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>; |
Martin Blumenstingl | f28d4bd | 2017-06-15 23:33:52 +0200 | [diff] [blame] | 449 | }; |
| 450 | |
Jerome Brunet | 7d32bc0 | 2017-10-19 14:01:41 +0200 | [diff] [blame] | 451 | &gpio_intc { |
| 452 | compatible = "amlogic,meson-gpio-intc", |
| 453 | "amlogic,meson8b-gpio-intc"; |
| 454 | status = "okay"; |
| 455 | }; |
| 456 | |
Martin Blumenstingl | b6db393 | 2019-01-18 23:52:21 +0100 | [diff] [blame] | 457 | &hhi { |
| 458 | clkc: clock-controller { |
Martin Blumenstingl | da25655 | 2019-12-25 02:06:05 +0100 | [diff] [blame] | 459 | compatible = "amlogic,meson8b-clkc"; |
Martin Blumenstingl | 6d549ff | 2019-12-08 19:05:25 +0100 | [diff] [blame] | 460 | clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>; |
| 461 | clock-names = "xtal", "ddr_pll"; |
Martin Blumenstingl | b6db393 | 2019-01-18 23:52:21 +0100 | [diff] [blame] | 462 | #clock-cells = <1>; |
| 463 | #reset-cells = <1>; |
| 464 | }; |
Martin Blumenstingl | 9960cac | 2020-06-20 18:10:10 +0200 | [diff] [blame] | 465 | |
| 466 | pwrc: power-controller { |
| 467 | compatible = "amlogic,meson8b-pwrc"; |
| 468 | #power-domain-cells = <1>; |
| 469 | amlogic,ao-sysctrl = <&pmu>; |
| 470 | resets = <&reset RESET_DBLK>, |
| 471 | <&reset RESET_PIC_DC>, |
| 472 | <&reset RESET_HDMI_APB>, |
| 473 | <&reset RESET_HDMI_SYSTEM_RESET>, |
| 474 | <&reset RESET_VENCI>, |
| 475 | <&reset RESET_VENCP>, |
| 476 | <&reset RESET_VDAC_4>, |
| 477 | <&reset RESET_VENCL>, |
| 478 | <&reset RESET_VIU>, |
| 479 | <&reset RESET_VENC>, |
| 480 | <&reset RESET_RDMA>; |
| 481 | reset-names = "dblk", "pic_dc", "hdmi_apb", "hdmi_system", |
| 482 | "venci", "vencp", "vdac", "vencl", "viu", |
| 483 | "venc", "rdma"; |
| 484 | clocks = <&clkc CLKID_VPU>; |
| 485 | clock-names = "vpu"; |
| 486 | assigned-clocks = <&clkc CLKID_VPU>; |
| 487 | assigned-clock-rates = <182142857>; |
| 488 | }; |
Martin Blumenstingl | b6db393 | 2019-01-18 23:52:21 +0100 | [diff] [blame] | 489 | }; |
| 490 | |
Martin Blumenstingl | a35910d | 2017-06-15 23:33:49 +0200 | [diff] [blame] | 491 | &hwrng { |
| 492 | compatible = "amlogic,meson8b-rng", "amlogic,meson-rng"; |
| 493 | clocks = <&clkc CLKID_RNG0>; |
| 494 | clock-names = "core"; |
| 495 | }; |
| 496 | |
Martin Blumenstingl | 7a6cc8b | 2018-02-17 17:06:50 +0100 | [diff] [blame] | 497 | &i2c_AO { |
| 498 | clocks = <&clkc CLKID_CLK81>; |
| 499 | }; |
| 500 | |
| 501 | &i2c_A { |
| 502 | clocks = <&clkc CLKID_I2C>; |
| 503 | }; |
| 504 | |
| 505 | &i2c_B { |
| 506 | clocks = <&clkc CLKID_I2C>; |
| 507 | }; |
| 508 | |
Carlo Caione | bbe5b23 | 2017-04-17 23:42:44 +0200 | [diff] [blame] | 509 | &L2 { |
| 510 | arm,data-latency = <3 3 3>; |
| 511 | arm,tag-latency = <2 2 2>; |
| 512 | arm,filter-ranges = <0x100000 0xc0000000>; |
Martin Blumenstingl | 9bef306 | 2017-10-31 23:23:15 +0100 | [diff] [blame] | 513 | prefetch-data = <1>; |
| 514 | prefetch-instr = <1>; |
| 515 | arm,shared-override; |
Carlo Caione | bbe5b23 | 2017-04-17 23:42:44 +0200 | [diff] [blame] | 516 | }; |
| 517 | |
Martin Blumenstingl | e8c276d | 2018-11-23 20:53:07 +0100 | [diff] [blame] | 518 | &periph { |
| 519 | scu@0 { |
| 520 | compatible = "arm,cortex-a5-scu"; |
| 521 | reg = <0x0 0x100>; |
| 522 | }; |
Martin Blumenstingl | f5506e8 | 2018-11-23 20:53:10 +0100 | [diff] [blame] | 523 | |
Martin Blumenstingl | da38636 | 2018-11-23 20:53:11 +0100 | [diff] [blame] | 524 | timer@200 { |
| 525 | compatible = "arm,cortex-a5-global-timer"; |
| 526 | reg = <0x200 0x20>; |
| 527 | interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>; |
| 528 | clocks = <&clkc CLKID_PERIPH>; |
| 529 | |
| 530 | /* |
| 531 | * the arm_global_timer driver currently does not handle clock |
| 532 | * rate changes. Keep it disabled for now. |
| 533 | */ |
| 534 | status = "disabled"; |
| 535 | }; |
| 536 | |
Martin Blumenstingl | f5506e8 | 2018-11-23 20:53:10 +0100 | [diff] [blame] | 537 | timer@600 { |
| 538 | compatible = "arm,cortex-a5-twd-timer"; |
| 539 | reg = <0x600 0x20>; |
| 540 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>; |
| 541 | clocks = <&clkc CLKID_PERIPH>; |
| 542 | }; |
Martin Blumenstingl | e8c276d | 2018-11-23 20:53:07 +0100 | [diff] [blame] | 543 | }; |
| 544 | |
Martin Blumenstingl | 440bdcd | 2017-07-12 00:20:14 +0200 | [diff] [blame] | 545 | &pwm_ab { |
| 546 | compatible = "amlogic,meson8b-pwm"; |
| 547 | }; |
| 548 | |
| 549 | &pwm_cd { |
| 550 | compatible = "amlogic,meson8b-pwm"; |
| 551 | }; |
| 552 | |
Martin Blumenstingl | f6eb973 | 2019-04-13 18:34:21 +0200 | [diff] [blame] | 553 | &rtc { |
| 554 | compatible = "amlogic,meson8b-rtc"; |
| 555 | resets = <&reset RESET_RTC>; |
| 556 | }; |
| 557 | |
Martin Blumenstingl | a39a3b9 | 2017-06-15 23:33:47 +0200 | [diff] [blame] | 558 | &saradc { |
| 559 | compatible = "amlogic,meson8b-saradc", "amlogic,meson-saradc"; |
Martin Blumenstingl | 630ea31 | 2019-12-08 19:05:23 +0100 | [diff] [blame] | 560 | clocks = <&xtal>, <&clkc CLKID_SAR_ADC>; |
Xingyu Chen | b9b9db0 | 2017-11-16 17:01:15 +0800 | [diff] [blame] | 561 | clock-names = "clkin", "core"; |
Martin Blumenstingl | bbbcf64 | 2019-01-18 23:52:24 +0100 | [diff] [blame] | 562 | amlogic,hhi-sysctrl = <&hhi>; |
| 563 | nvmem-cells = <&temperature_calib>; |
| 564 | nvmem-cell-names = "temperature_calib"; |
Martin Blumenstingl | a39a3b9 | 2017-06-15 23:33:47 +0200 | [diff] [blame] | 565 | }; |
| 566 | |
Martin Blumenstingl | 73106f7 | 2020-06-20 18:36:52 +0200 | [diff] [blame^] | 567 | &sdhc { |
| 568 | compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc"; |
| 569 | clocks = <&xtal>, |
| 570 | <&clkc CLKID_FCLK_DIV4>, |
| 571 | <&clkc CLKID_FCLK_DIV3>, |
| 572 | <&clkc CLKID_FCLK_DIV5>, |
| 573 | <&clkc CLKID_SDHC>; |
| 574 | clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk"; |
| 575 | }; |
| 576 | |
Martin Blumenstingl | 88b1b18 | 2017-10-07 18:29:39 +0200 | [diff] [blame] | 577 | &sdio { |
| 578 | compatible = "amlogic,meson8b-sdio", "amlogic,meson-mx-sdio"; |
| 579 | clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>; |
| 580 | clock-names = "core", "clkin"; |
| 581 | }; |
| 582 | |
Martin Blumenstingl | 7b141ab | 2018-11-16 21:42:35 +0100 | [diff] [blame] | 583 | &timer_abcde { |
Martin Blumenstingl | 630ea31 | 2019-12-08 19:05:23 +0100 | [diff] [blame] | 584 | clocks = <&xtal>, <&clkc CLKID_CLK81>; |
Martin Blumenstingl | 7b141ab | 2018-11-16 21:42:35 +0100 | [diff] [blame] | 585 | clock-names = "xtal", "pclk"; |
| 586 | }; |
| 587 | |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 588 | &uart_AO { |
Martin Blumenstingl | b02d6e7 | 2017-11-17 23:58:57 +0100 | [diff] [blame] | 589 | compatible = "amlogic,meson8b-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 630ea31 | 2019-12-08 19:05:23 +0100 | [diff] [blame] | 590 | clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_CLK81>; |
Martin Blumenstingl | b02d6e7 | 2017-11-17 23:58:57 +0100 | [diff] [blame] | 591 | clock-names = "baud", "xtal", "pclk"; |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 592 | }; |
| 593 | |
| 594 | &uart_A { |
Martin Blumenstingl | b02d6e7 | 2017-11-17 23:58:57 +0100 | [diff] [blame] | 595 | compatible = "amlogic,meson8b-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 630ea31 | 2019-12-08 19:05:23 +0100 | [diff] [blame] | 596 | clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART0>; |
Martin Blumenstingl | b02d6e7 | 2017-11-17 23:58:57 +0100 | [diff] [blame] | 597 | clock-names = "baud", "xtal", "pclk"; |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 598 | }; |
| 599 | |
| 600 | &uart_B { |
Martin Blumenstingl | b02d6e7 | 2017-11-17 23:58:57 +0100 | [diff] [blame] | 601 | compatible = "amlogic,meson8b-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 630ea31 | 2019-12-08 19:05:23 +0100 | [diff] [blame] | 602 | clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART1>; |
Martin Blumenstingl | b02d6e7 | 2017-11-17 23:58:57 +0100 | [diff] [blame] | 603 | clock-names = "baud", "xtal", "pclk"; |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 604 | }; |
| 605 | |
| 606 | &uart_C { |
Martin Blumenstingl | b02d6e7 | 2017-11-17 23:58:57 +0100 | [diff] [blame] | 607 | compatible = "amlogic,meson8b-uart", "amlogic,meson-uart"; |
Martin Blumenstingl | 630ea31 | 2019-12-08 19:05:23 +0100 | [diff] [blame] | 608 | clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART2>; |
Martin Blumenstingl | b02d6e7 | 2017-11-17 23:58:57 +0100 | [diff] [blame] | 609 | clock-names = "baud", "xtal", "pclk"; |
Martin Blumenstingl | f44135e | 2017-04-17 23:39:38 +0200 | [diff] [blame] | 610 | }; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 611 | |
| 612 | &usb0 { |
| 613 | compatible = "amlogic,meson8b-usb", "snps,dwc2"; |
| 614 | clocks = <&clkc CLKID_USB0_DDR_BRIDGE>; |
| 615 | clock-names = "otg"; |
| 616 | }; |
| 617 | |
| 618 | &usb1 { |
| 619 | compatible = "amlogic,meson8b-usb", "snps,dwc2"; |
| 620 | clocks = <&clkc CLKID_USB1_DDR_BRIDGE>; |
| 621 | clock-names = "otg"; |
| 622 | }; |
| 623 | |
| 624 | &usb0_phy { |
| 625 | compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy"; |
| 626 | clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>; |
| 627 | clock-names = "usb_general", "usb"; |
| 628 | resets = <&reset RESET_USB_OTG>; |
| 629 | }; |
| 630 | |
| 631 | &usb1_phy { |
| 632 | compatible = "amlogic,meson8b-usb2-phy", "amlogic,meson-mx-usb2-phy"; |
| 633 | clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>; |
| 634 | clock-names = "usb_general", "usb"; |
| 635 | resets = <&reset RESET_USB_OTG>; |
| 636 | }; |
Martin Blumenstingl | 2eca2a1 | 2017-07-12 00:22:22 +0200 | [diff] [blame] | 637 | |
| 638 | &wdt { |
| 639 | compatible = "amlogic,meson8b-wdt"; |
| 640 | }; |