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