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