Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2014 Carlo Caione <carlo@caione.org> |
| 3 | * |
| 4 | * This file is dual-licensed: you can use it either under the terms |
| 5 | * of the GPL or the X11 license, at your option. Note that this dual |
| 6 | * licensing only applies to this file, and not this project as a |
| 7 | * whole. |
| 8 | * |
| 9 | * a) This library is free software; you can redistribute it and/or |
| 10 | * modify it under the terms of the GNU General Public License as |
| 11 | * published by the Free Software Foundation; either version 2 of the |
| 12 | * License, or (at your option) any later version. |
| 13 | * |
| 14 | * This library is distributed in the hope that it will be useful, |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 | * GNU General Public License for more details. |
| 18 | * |
| 19 | * You should have received a copy of the GNU General Public License |
| 20 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 21 | * |
| 22 | * Or, alternatively, |
| 23 | * |
| 24 | * b) Permission is hereby granted, free of charge, to any person |
| 25 | * obtaining a copy of this software and associated documentation |
| 26 | * files (the "Software"), to deal in the Software without |
| 27 | * restriction, including without limitation the rights to use, |
| 28 | * copy, modify, merge, publish, distribute, sublicense, and/or |
| 29 | * sell copies of the Software, and to permit persons to whom the |
| 30 | * Software is furnished to do so, subject to the following |
| 31 | * conditions: |
| 32 | * |
| 33 | * The above copyright notice and this permission notice shall be |
| 34 | * included in all copies or substantial portions of the Software. |
| 35 | * |
| 36 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 37 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 38 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 39 | * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 40 | * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 41 | * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 42 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 43 | * OTHER DEALINGS IN THE SOFTWARE. |
| 44 | */ |
| 45 | |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 46 | #include <dt-bindings/clock/meson8b-clkc.h> |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 47 | #include <dt-bindings/gpio/meson8-gpio.h> |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 48 | #include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h> |
Martin Blumenstingl | e3087187 | 2018-01-21 23:14:13 +0100 | [diff] [blame] | 49 | #include <dt-bindings/reset/amlogic,meson8b-reset.h> |
Martin Blumenstingl | 7a16f06 | 2017-06-15 23:33:43 +0200 | [diff] [blame] | 50 | #include "meson.dtsi" |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 51 | |
| 52 | / { |
| 53 | model = "Amlogic Meson8 SoC"; |
| 54 | compatible = "amlogic,meson8"; |
| 55 | |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 56 | cpus { |
| 57 | #address-cells = <1>; |
| 58 | #size-cells = <0>; |
| 59 | |
Martin Blumenstingl | 17b6602 | 2018-04-22 12:45:01 +0200 | [diff] [blame] | 60 | cpu0: cpu@200 { |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 61 | device_type = "cpu"; |
| 62 | compatible = "arm,cortex-a9"; |
Beniamino Galvani | 550ab39 | 2014-11-18 15:30:35 +0100 | [diff] [blame] | 63 | next-level-cache = <&L2>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 64 | reg = <0x200>; |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 65 | enable-method = "amlogic,meson8-smp"; |
| 66 | resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 67 | }; |
| 68 | |
Martin Blumenstingl | 17b6602 | 2018-04-22 12:45:01 +0200 | [diff] [blame] | 69 | cpu1: cpu@201 { |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 70 | device_type = "cpu"; |
| 71 | compatible = "arm,cortex-a9"; |
Beniamino Galvani | 550ab39 | 2014-11-18 15:30:35 +0100 | [diff] [blame] | 72 | next-level-cache = <&L2>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 73 | reg = <0x201>; |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 74 | enable-method = "amlogic,meson8-smp"; |
| 75 | resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 76 | }; |
| 77 | |
Martin Blumenstingl | 17b6602 | 2018-04-22 12:45:01 +0200 | [diff] [blame] | 78 | cpu2: cpu@202 { |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 79 | device_type = "cpu"; |
| 80 | compatible = "arm,cortex-a9"; |
Beniamino Galvani | 550ab39 | 2014-11-18 15:30:35 +0100 | [diff] [blame] | 81 | next-level-cache = <&L2>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 82 | reg = <0x202>; |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 83 | enable-method = "amlogic,meson8-smp"; |
| 84 | resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 85 | }; |
| 86 | |
Martin Blumenstingl | 17b6602 | 2018-04-22 12:45:01 +0200 | [diff] [blame] | 87 | cpu3: cpu@203 { |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 88 | device_type = "cpu"; |
| 89 | compatible = "arm,cortex-a9"; |
Beniamino Galvani | 550ab39 | 2014-11-18 15:30:35 +0100 | [diff] [blame] | 90 | next-level-cache = <&L2>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 91 | reg = <0x203>; |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 92 | enable-method = "amlogic,meson8-smp"; |
| 93 | resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>; |
Beniamino Galvani | aeff05a | 2014-10-05 23:59:14 +0200 | [diff] [blame] | 94 | }; |
| 95 | }; |
Martin Blumenstingl | 8a7f0c5 | 2017-06-15 23:33:48 +0200 | [diff] [blame] | 96 | |
Martin Blumenstingl | 17b6602 | 2018-04-22 12:45:01 +0200 | [diff] [blame] | 97 | pmu { |
| 98 | compatible = "arm,cortex-a9-pmu"; |
| 99 | interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>, |
| 100 | <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>, |
| 101 | <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>, |
| 102 | <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>; |
| 103 | interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>; |
| 104 | }; |
| 105 | |
Martin Blumenstingl | 8a7f0c5 | 2017-06-15 23:33:48 +0200 | [diff] [blame] | 106 | reserved-memory { |
| 107 | #address-cells = <1>; |
| 108 | #size-cells = <1>; |
| 109 | ranges; |
| 110 | |
| 111 | /* 2 MiB reserved for Hardware ROM Firmware? */ |
| 112 | hwrom@0 { |
| 113 | reg = <0x0 0x200000>; |
| 114 | no-map; |
| 115 | }; |
| 116 | |
| 117 | /* |
| 118 | * 1 MiB reserved for the "ARM Power Firmware": this is ARM |
| 119 | * code which is responsible for system suspend. It loads a |
| 120 | * piece of ARC code ("arc_power" in the vendor u-boot tree) |
| 121 | * into SRAM, executes that and shuts down the (last) ARM core. |
| 122 | * The arc_power firmware then checks various wakeup sources |
| 123 | * (IR remote receiver, HDMI CEC, WIFI and Bluetooth wakeup or |
| 124 | * simply the power key) and re-starts the ARM core once it |
| 125 | * detects a wakeup request. |
| 126 | */ |
| 127 | power-firmware@4f00000 { |
| 128 | reg = <0x4f00000 0x100000>; |
| 129 | no-map; |
| 130 | }; |
| 131 | }; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 132 | }; /* end of / */ |
| 133 | |
| 134 | &aobus { |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 135 | pmu: pmu@e0 { |
| 136 | compatible = "amlogic,meson8-pmu", "syscon"; |
| 137 | reg = <0xe0 0x8>; |
| 138 | }; |
| 139 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 140 | pinctrl_aobus: pinctrl@84 { |
| 141 | compatible = "amlogic,meson8-aobus-pinctrl"; |
| 142 | reg = <0x84 0xc>; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 143 | #address-cells = <1>; |
| 144 | #size-cells = <1>; |
| 145 | ranges; |
| 146 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 147 | gpio_ao: ao-bank@14 { |
| 148 | reg = <0x14 0x4>, |
| 149 | <0x2c 0x4>, |
| 150 | <0x24 0x8>; |
| 151 | reg-names = "mux", "pull", "gpio"; |
| 152 | gpio-controller; |
| 153 | #gpio-cells = <2>; |
Jerome Brunet | 677c432 | 2017-09-21 19:14:44 +0200 | [diff] [blame] | 154 | gpio-ranges = <&pinctrl_aobus 0 0 16>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 155 | }; |
| 156 | |
| 157 | uart_ao_a_pins: uart_ao_a { |
| 158 | mux { |
| 159 | groups = "uart_tx_ao_a", "uart_rx_ao_a"; |
| 160 | function = "uart_ao"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 161 | bias-disable; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 162 | }; |
| 163 | }; |
| 164 | |
| 165 | i2c_ao_pins: i2c_mst_ao { |
| 166 | mux { |
| 167 | groups = "i2c_mst_sck_ao", "i2c_mst_sda_ao"; |
| 168 | function = "i2c_mst_ao"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 169 | bias-disable; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 170 | }; |
| 171 | }; |
Martin Blumenstingl | 79eb80b | 2017-06-10 00:20:39 +0200 | [diff] [blame] | 172 | |
| 173 | ir_recv_pins: remote { |
| 174 | mux { |
| 175 | groups = "remote_input"; |
| 176 | function = "remote"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 177 | bias-disable; |
Martin Blumenstingl | 79eb80b | 2017-06-10 00:20:39 +0200 | [diff] [blame] | 178 | }; |
| 179 | }; |
Martin Blumenstingl | 192ec77 | 2017-06-15 23:33:45 +0200 | [diff] [blame] | 180 | |
| 181 | pwm_f_ao_pins: pwm-f-ao { |
| 182 | mux { |
| 183 | groups = "pwm_f_ao"; |
| 184 | function = "pwm_f_ao"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 185 | bias-disable; |
Martin Blumenstingl | 192ec77 | 2017-06-15 23:33:45 +0200 | [diff] [blame] | 186 | }; |
| 187 | }; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 188 | }; |
| 189 | }; |
| 190 | |
| 191 | &cbus { |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 192 | clkc: clock-controller@4000 { |
| 193 | #clock-cells = <1>; |
Martin Blumenstingl | 45631ea | 2017-07-28 23:13:13 +0200 | [diff] [blame] | 194 | #reset-cells = <1>; |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 195 | compatible = "amlogic,meson8-clkc"; |
Martin Blumenstingl | f7f9da8 | 2018-07-21 21:05:52 +0200 | [diff] [blame] | 196 | reg = <0x8000 0x4>, <0x4000 0x400>; |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 197 | }; |
| 198 | |
Martin Blumenstingl | e3087187 | 2018-01-21 23:14:13 +0100 | [diff] [blame] | 199 | reset: reset-controller@4404 { |
| 200 | compatible = "amlogic,meson8b-reset"; |
| 201 | reg = <0x4404 0x9c>; |
| 202 | #reset-cells = <1>; |
| 203 | }; |
| 204 | |
Martin Blumenstingl | bd835d5 | 2017-09-23 16:14:03 +0200 | [diff] [blame] | 205 | analog_top: analog-top@81a8 { |
| 206 | compatible = "amlogic,meson8-analog-top", "syscon"; |
| 207 | reg = <0x81a8 0x14>; |
| 208 | }; |
| 209 | |
Martin Blumenstingl | 43d91c5 | 2017-07-12 00:20:15 +0200 | [diff] [blame] | 210 | pwm_ef: pwm@86c0 { |
| 211 | compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm"; |
| 212 | reg = <0x86c0 0x10>; |
| 213 | #pwm-cells = <3>; |
| 214 | status = "disabled"; |
| 215 | }; |
| 216 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 217 | pinctrl_cbus: pinctrl@9880 { |
| 218 | compatible = "amlogic,meson8-cbus-pinctrl"; |
| 219 | reg = <0x9880 0x10>; |
| 220 | #address-cells = <1>; |
| 221 | #size-cells = <1>; |
| 222 | ranges; |
| 223 | |
| 224 | gpio: banks@80b0 { |
| 225 | reg = <0x80b0 0x28>, |
| 226 | <0x80e8 0x18>, |
| 227 | <0x8120 0x18>, |
| 228 | <0x8030 0x30>; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 229 | reg-names = "mux", "pull", "pull-enable", "gpio"; |
| 230 | gpio-controller; |
| 231 | #gpio-cells = <2>; |
Neil Armstrong | 90f349a | 2017-03-23 17:27:26 +0100 | [diff] [blame] | 232 | gpio-ranges = <&pinctrl_cbus 0 0 120>; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 233 | }; |
| 234 | |
Martin Blumenstingl | d42ce5a | 2017-06-15 23:33:46 +0200 | [diff] [blame] | 235 | sd_a_pins: sd-a { |
| 236 | mux { |
| 237 | groups = "sd_d0_a", "sd_d1_a", "sd_d2_a", |
| 238 | "sd_d3_a", "sd_clk_a", "sd_cmd_a"; |
| 239 | function = "sd_a"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 240 | bias-disable; |
Martin Blumenstingl | d42ce5a | 2017-06-15 23:33:46 +0200 | [diff] [blame] | 241 | }; |
| 242 | }; |
| 243 | |
| 244 | sd_b_pins: sd-b { |
| 245 | mux { |
| 246 | groups = "sd_d0_b", "sd_d1_b", "sd_d2_b", |
| 247 | "sd_d3_b", "sd_clk_b", "sd_cmd_b"; |
| 248 | function = "sd_b"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 249 | bias-disable; |
Martin Blumenstingl | d42ce5a | 2017-06-15 23:33:46 +0200 | [diff] [blame] | 250 | }; |
| 251 | }; |
| 252 | |
| 253 | sd_c_pins: sd-c { |
| 254 | mux { |
| 255 | groups = "sd_d0_c", "sd_d1_c", "sd_d2_c", |
| 256 | "sd_d3_c", "sd_clk_c", "sd_cmd_c"; |
| 257 | function = "sd_c"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 258 | bias-disable; |
Martin Blumenstingl | d42ce5a | 2017-06-15 23:33:46 +0200 | [diff] [blame] | 259 | }; |
| 260 | }; |
| 261 | |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 262 | spi_nor_pins: nor { |
| 263 | mux { |
| 264 | groups = "nor_d", "nor_q", "nor_c", "nor_cs"; |
| 265 | function = "nor"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 266 | bias-disable; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 267 | }; |
| 268 | }; |
| 269 | |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 270 | eth_pins: ethernet { |
| 271 | mux { |
| 272 | groups = "eth_tx_clk_50m", "eth_tx_en", |
| 273 | "eth_txd1", "eth_txd0", |
| 274 | "eth_rx_clk_in", "eth_rx_dv", |
| 275 | "eth_rxd1", "eth_rxd0", "eth_mdio", |
| 276 | "eth_mdc"; |
| 277 | function = "ethernet"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 278 | bias-disable; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 279 | }; |
| 280 | }; |
Martin Blumenstingl | 192ec77 | 2017-06-15 23:33:45 +0200 | [diff] [blame] | 281 | |
| 282 | pwm_e_pins: pwm-e { |
| 283 | mux { |
| 284 | groups = "pwm_e"; |
| 285 | function = "pwm_e"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 286 | bias-disable; |
Martin Blumenstingl | 192ec77 | 2017-06-15 23:33:45 +0200 | [diff] [blame] | 287 | }; |
| 288 | }; |
Martin Blumenstingl | e981e45 | 2018-05-10 01:50:36 +0200 | [diff] [blame] | 289 | |
| 290 | uart_a1_pins: uart-a1 { |
| 291 | mux { |
| 292 | groups = "uart_tx_a1", |
| 293 | "uart_rx_a1"; |
| 294 | function = "uart_a"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 295 | bias-disable; |
Martin Blumenstingl | e981e45 | 2018-05-10 01:50:36 +0200 | [diff] [blame] | 296 | }; |
| 297 | }; |
| 298 | |
| 299 | uart_a1_cts_rts_pins: uart-a1-cts-rts { |
| 300 | mux { |
| 301 | groups = "uart_cts_a1", |
| 302 | "uart_rts_a1"; |
| 303 | function = "uart_a"; |
Jerome Brunet | 7e26335 | 2018-11-09 15:04:45 +0100 | [diff] [blame] | 304 | bias-disable; |
Martin Blumenstingl | e981e45 | 2018-05-10 01:50:36 +0200 | [diff] [blame] | 305 | }; |
| 306 | }; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 307 | }; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 308 | }; |
Beniamino Galvani | d9fea88 | 2015-01-17 19:15:16 +0100 | [diff] [blame] | 309 | |
Martin Blumenstingl | 4a5a271 | 2017-09-17 18:45:22 +0200 | [diff] [blame] | 310 | &ahb_sram { |
| 311 | smp-sram@1ff80 { |
| 312 | compatible = "amlogic,meson8-smp-sram"; |
| 313 | reg = <0x1ff80 0x8>; |
| 314 | }; |
| 315 | }; |
| 316 | |
Martin Blumenstingl | 2cb51a8 | 2017-10-03 01:28:04 +0200 | [diff] [blame] | 317 | &efuse { |
| 318 | compatible = "amlogic,meson8-efuse"; |
| 319 | clocks = <&clkc CLKID_EFUSE>; |
| 320 | clock-names = "core"; |
| 321 | }; |
| 322 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 323 | ðmac { |
Martin Blumenstingl | f28d4bd | 2017-06-15 23:33:52 +0200 | [diff] [blame] | 324 | clocks = <&clkc CLKID_ETH>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 325 | clock-names = "stmmaceth"; |
| 326 | }; |
Carlo Caione | b60e115 | 2016-03-23 10:13:59 +0100 | [diff] [blame] | 327 | |
Martin Blumenstingl | 59e45c6 | 2017-10-30 00:05:22 +0100 | [diff] [blame] | 328 | &gpio_intc { |
| 329 | compatible = "amlogic,meson8-gpio-intc", "amlogic,meson-gpio-intc"; |
| 330 | status = "okay"; |
| 331 | }; |
| 332 | |
Martin Blumenstingl | a35910d | 2017-06-15 23:33:49 +0200 | [diff] [blame] | 333 | &hwrng { |
| 334 | compatible = "amlogic,meson8-rng", "amlogic,meson-rng"; |
| 335 | clocks = <&clkc CLKID_RNG0>; |
| 336 | clock-names = "core"; |
| 337 | }; |
| 338 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 339 | &i2c_AO { |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 340 | clocks = <&clkc CLKID_CLK81>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 341 | }; |
Carlo Caione | b60e115 | 2016-03-23 10:13:59 +0100 | [diff] [blame] | 342 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 343 | &i2c_A { |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 344 | clocks = <&clkc CLKID_CLK81>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 345 | }; |
Carlo Caione | b60e115 | 2016-03-23 10:13:59 +0100 | [diff] [blame] | 346 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 347 | &i2c_B { |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 348 | clocks = <&clkc CLKID_CLK81>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 349 | }; |
| 350 | |
Carlo Caione | bbe5b23 | 2017-04-17 23:42:44 +0200 | [diff] [blame] | 351 | &L2 { |
| 352 | arm,data-latency = <3 3 3>; |
| 353 | arm,tag-latency = <2 2 2>; |
| 354 | arm,filter-ranges = <0x100000 0xc0000000>; |
Martin Blumenstingl | 6844e96 | 2017-10-31 23:23:16 +0100 | [diff] [blame] | 355 | prefetch-data = <1>; |
| 356 | prefetch-instr = <1>; |
| 357 | arm,shared-override; |
Carlo Caione | bbe5b23 | 2017-04-17 23:42:44 +0200 | [diff] [blame] | 358 | }; |
| 359 | |
Martin Blumenstingl | e8c276d | 2018-11-23 20:53:07 +0100 | [diff] [blame] | 360 | &periph { |
| 361 | scu@0 { |
| 362 | compatible = "arm,cortex-a9-scu"; |
| 363 | reg = <0x0 0x100>; |
| 364 | }; |
Martin Blumenstingl | 1124d79 | 2018-11-23 20:53:08 +0100 | [diff] [blame] | 365 | |
Martin Blumenstingl | 2710e8d | 2018-11-23 20:53:09 +0100 | [diff] [blame^] | 366 | timer@200 { |
| 367 | compatible = "arm,cortex-a9-global-timer"; |
| 368 | reg = <0x200 0x20>; |
| 369 | interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>; |
| 370 | clocks = <&clkc CLKID_PERIPH>; |
| 371 | |
| 372 | /* |
| 373 | * the arm_global_timer driver currently does not handle clock |
| 374 | * rate changes. Keep it disabled for now. |
| 375 | */ |
| 376 | status = "disabled"; |
| 377 | }; |
| 378 | |
Martin Blumenstingl | 1124d79 | 2018-11-23 20:53:08 +0100 | [diff] [blame] | 379 | timer@600 { |
| 380 | compatible = "arm,cortex-a9-twd-timer"; |
| 381 | reg = <0x600 0x20>; |
| 382 | interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>; |
| 383 | clocks = <&clkc CLKID_PERIPH>; |
| 384 | }; |
Martin Blumenstingl | e8c276d | 2018-11-23 20:53:07 +0100 | [diff] [blame] | 385 | }; |
| 386 | |
Martin Blumenstingl | 43d91c5 | 2017-07-12 00:20:15 +0200 | [diff] [blame] | 387 | &pwm_ab { |
| 388 | compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm"; |
| 389 | }; |
| 390 | |
| 391 | &pwm_cd { |
| 392 | compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm"; |
| 393 | }; |
| 394 | |
Martin Blumenstingl | a39a3b9 | 2017-06-15 23:33:47 +0200 | [diff] [blame] | 395 | &saradc { |
| 396 | compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc"; |
| 397 | clocks = <&clkc CLKID_XTAL>, |
Xingyu Chen | b9b9db0 | 2017-11-16 17:01:15 +0800 | [diff] [blame] | 398 | <&clkc CLKID_SAR_ADC>; |
| 399 | clock-names = "clkin", "core"; |
Martin Blumenstingl | a39a3b9 | 2017-06-15 23:33:47 +0200 | [diff] [blame] | 400 | }; |
| 401 | |
Martin Blumenstingl | 88b1b18 | 2017-10-07 18:29:39 +0200 | [diff] [blame] | 402 | &sdio { |
| 403 | compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio"; |
| 404 | clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>; |
| 405 | clock-names = "core", "clkin"; |
| 406 | }; |
| 407 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 408 | &spifc { |
Martin Blumenstingl | 2c323c4 | 2017-06-04 20:33:41 +0200 | [diff] [blame] | 409 | clocks = <&clkc CLKID_CLK81>; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 410 | }; |
| 411 | |
Martin Blumenstingl | 7b141ab | 2018-11-16 21:42:35 +0100 | [diff] [blame] | 412 | &timer_abcde { |
| 413 | clocks = <&clkc CLKID_XTAL>, <&clkc CLKID_CLK81>; |
| 414 | clock-names = "xtal", "pclk"; |
| 415 | }; |
| 416 | |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 417 | &uart_AO { |
Martin Blumenstingl | 6ca7750 | 2017-11-17 23:58:56 +0100 | [diff] [blame] | 418 | compatible = "amlogic,meson8-uart", "amlogic,meson-uart"; |
| 419 | clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_CLK81>; |
| 420 | clock-names = "baud", "xtal", "pclk"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 421 | }; |
| 422 | |
| 423 | &uart_A { |
Martin Blumenstingl | 6ca7750 | 2017-11-17 23:58:56 +0100 | [diff] [blame] | 424 | compatible = "amlogic,meson8-uart", "amlogic,meson-uart"; |
| 425 | clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART0>; |
| 426 | clock-names = "baud", "xtal", "pclk"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 427 | }; |
| 428 | |
| 429 | &uart_B { |
Martin Blumenstingl | 6ca7750 | 2017-11-17 23:58:56 +0100 | [diff] [blame] | 430 | compatible = "amlogic,meson8-uart", "amlogic,meson-uart"; |
| 431 | clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART1>; |
| 432 | clock-names = "baud", "xtal", "pclk"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 433 | }; |
| 434 | |
| 435 | &uart_C { |
Martin Blumenstingl | 6ca7750 | 2017-11-17 23:58:56 +0100 | [diff] [blame] | 436 | compatible = "amlogic,meson8-uart", "amlogic,meson-uart"; |
| 437 | clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART2>; |
| 438 | clock-names = "baud", "xtal", "pclk"; |
Martin Blumenstingl | 200a575 | 2017-04-17 23:39:37 +0200 | [diff] [blame] | 439 | }; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 440 | |
| 441 | &usb0 { |
| 442 | compatible = "amlogic,meson8-usb", "snps,dwc2"; |
| 443 | clocks = <&clkc CLKID_USB0_DDR_BRIDGE>; |
| 444 | clock-names = "otg"; |
| 445 | }; |
| 446 | |
| 447 | &usb1 { |
| 448 | compatible = "amlogic,meson8-usb", "snps,dwc2"; |
| 449 | clocks = <&clkc CLKID_USB1_DDR_BRIDGE>; |
| 450 | clock-names = "otg"; |
| 451 | }; |
| 452 | |
| 453 | &usb0_phy { |
| 454 | compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy"; |
| 455 | clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>; |
| 456 | clock-names = "usb_general", "usb"; |
Martin Blumenstingl | e1fa57d | 2018-01-21 23:14:14 +0100 | [diff] [blame] | 457 | resets = <&reset RESET_USB_OTG>; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 458 | }; |
| 459 | |
| 460 | &usb1_phy { |
| 461 | compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy"; |
| 462 | clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>; |
| 463 | clock-names = "usb_general", "usb"; |
Martin Blumenstingl | e1fa57d | 2018-01-21 23:14:14 +0100 | [diff] [blame] | 464 | resets = <&reset RESET_USB_OTG>; |
Martin Blumenstingl | e29b1cf | 2017-06-15 23:33:50 +0200 | [diff] [blame] | 465 | }; |