| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0 OR MIT |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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 | 4 | */ |
|---|
| 45 | 5 | |
|---|
| 6 | +#include <dt-bindings/clock/meson8-ddr-clkc.h> |
|---|
| 46 | 7 | #include <dt-bindings/clock/meson8b-clkc.h> |
|---|
| 47 | 8 | #include <dt-bindings/gpio/meson8-gpio.h> |
|---|
| 9 | +#include <dt-bindings/power/meson8-power.h> |
|---|
| 48 | 10 | #include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h> |
|---|
| 49 | 11 | #include <dt-bindings/reset/amlogic,meson8b-reset.h> |
|---|
| 50 | 12 | #include "meson.dtsi" |
|---|
| .. | .. |
|---|
| 64 | 26 | reg = <0x200>; |
|---|
| 65 | 27 | enable-method = "amlogic,meson8-smp"; |
|---|
| 66 | 28 | resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>; |
|---|
| 29 | + operating-points-v2 = <&cpu_opp_table>; |
|---|
| 30 | + clocks = <&clkc CLKID_CPUCLK>; |
|---|
| 67 | 31 | }; |
|---|
| 68 | 32 | |
|---|
| 69 | 33 | cpu1: cpu@201 { |
|---|
| .. | .. |
|---|
| 73 | 37 | reg = <0x201>; |
|---|
| 74 | 38 | enable-method = "amlogic,meson8-smp"; |
|---|
| 75 | 39 | resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>; |
|---|
| 40 | + operating-points-v2 = <&cpu_opp_table>; |
|---|
| 41 | + clocks = <&clkc CLKID_CPUCLK>; |
|---|
| 76 | 42 | }; |
|---|
| 77 | 43 | |
|---|
| 78 | 44 | cpu2: cpu@202 { |
|---|
| .. | .. |
|---|
| 82 | 48 | reg = <0x202>; |
|---|
| 83 | 49 | enable-method = "amlogic,meson8-smp"; |
|---|
| 84 | 50 | resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>; |
|---|
| 51 | + operating-points-v2 = <&cpu_opp_table>; |
|---|
| 52 | + clocks = <&clkc CLKID_CPUCLK>; |
|---|
| 85 | 53 | }; |
|---|
| 86 | 54 | |
|---|
| 87 | 55 | cpu3: cpu@203 { |
|---|
| .. | .. |
|---|
| 91 | 59 | reg = <0x203>; |
|---|
| 92 | 60 | enable-method = "amlogic,meson8-smp"; |
|---|
| 93 | 61 | resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>; |
|---|
| 62 | + operating-points-v2 = <&cpu_opp_table>; |
|---|
| 63 | + clocks = <&clkc CLKID_CPUCLK>; |
|---|
| 64 | + }; |
|---|
| 65 | + }; |
|---|
| 66 | + |
|---|
| 67 | + cpu_opp_table: opp-table { |
|---|
| 68 | + compatible = "operating-points-v2"; |
|---|
| 69 | + opp-shared; |
|---|
| 70 | + |
|---|
| 71 | + opp-96000000 { |
|---|
| 72 | + opp-hz = /bits/ 64 <96000000>; |
|---|
| 73 | + opp-microvolt = <825000>; |
|---|
| 74 | + }; |
|---|
| 75 | + opp-192000000 { |
|---|
| 76 | + opp-hz = /bits/ 64 <192000000>; |
|---|
| 77 | + opp-microvolt = <825000>; |
|---|
| 78 | + }; |
|---|
| 79 | + opp-312000000 { |
|---|
| 80 | + opp-hz = /bits/ 64 <312000000>; |
|---|
| 81 | + opp-microvolt = <825000>; |
|---|
| 82 | + }; |
|---|
| 83 | + opp-408000000 { |
|---|
| 84 | + opp-hz = /bits/ 64 <408000000>; |
|---|
| 85 | + opp-microvolt = <825000>; |
|---|
| 86 | + }; |
|---|
| 87 | + opp-504000000 { |
|---|
| 88 | + opp-hz = /bits/ 64 <504000000>; |
|---|
| 89 | + opp-microvolt = <825000>; |
|---|
| 90 | + }; |
|---|
| 91 | + opp-600000000 { |
|---|
| 92 | + opp-hz = /bits/ 64 <600000000>; |
|---|
| 93 | + opp-microvolt = <850000>; |
|---|
| 94 | + }; |
|---|
| 95 | + opp-720000000 { |
|---|
| 96 | + opp-hz = /bits/ 64 <720000000>; |
|---|
| 97 | + opp-microvolt = <850000>; |
|---|
| 98 | + }; |
|---|
| 99 | + opp-816000000 { |
|---|
| 100 | + opp-hz = /bits/ 64 <816000000>; |
|---|
| 101 | + opp-microvolt = <875000>; |
|---|
| 102 | + }; |
|---|
| 103 | + opp-1008000000 { |
|---|
| 104 | + opp-hz = /bits/ 64 <1008000000>; |
|---|
| 105 | + opp-microvolt = <925000>; |
|---|
| 106 | + }; |
|---|
| 107 | + opp-1200000000 { |
|---|
| 108 | + opp-hz = /bits/ 64 <1200000000>; |
|---|
| 109 | + opp-microvolt = <975000>; |
|---|
| 110 | + }; |
|---|
| 111 | + opp-1416000000 { |
|---|
| 112 | + opp-hz = /bits/ 64 <1416000000>; |
|---|
| 113 | + opp-microvolt = <1025000>; |
|---|
| 114 | + }; |
|---|
| 115 | + opp-1608000000 { |
|---|
| 116 | + opp-hz = /bits/ 64 <1608000000>; |
|---|
| 117 | + opp-microvolt = <1100000>; |
|---|
| 118 | + }; |
|---|
| 119 | + opp-1800000000 { |
|---|
| 120 | + status = "disabled"; |
|---|
| 121 | + opp-hz = /bits/ 64 <1800000000>; |
|---|
| 122 | + opp-microvolt = <1125000>; |
|---|
| 123 | + }; |
|---|
| 124 | + opp-1992000000 { |
|---|
| 125 | + status = "disabled"; |
|---|
| 126 | + opp-hz = /bits/ 64 <1992000000>; |
|---|
| 127 | + opp-microvolt = <1150000>; |
|---|
| 128 | + }; |
|---|
| 129 | + }; |
|---|
| 130 | + |
|---|
| 131 | + gpu_opp_table: gpu-opp-table { |
|---|
| 132 | + compatible = "operating-points-v2"; |
|---|
| 133 | + |
|---|
| 134 | + opp-182142857 { |
|---|
| 135 | + opp-hz = /bits/ 64 <182142857>; |
|---|
| 136 | + opp-microvolt = <1150000>; |
|---|
| 137 | + }; |
|---|
| 138 | + opp-318750000 { |
|---|
| 139 | + opp-hz = /bits/ 64 <318750000>; |
|---|
| 140 | + opp-microvolt = <1150000>; |
|---|
| 141 | + }; |
|---|
| 142 | + opp-425000000 { |
|---|
| 143 | + opp-hz = /bits/ 64 <425000000>; |
|---|
| 144 | + opp-microvolt = <1150000>; |
|---|
| 145 | + }; |
|---|
| 146 | + opp-510000000 { |
|---|
| 147 | + opp-hz = /bits/ 64 <510000000>; |
|---|
| 148 | + opp-microvolt = <1150000>; |
|---|
| 149 | + }; |
|---|
| 150 | + opp-637500000 { |
|---|
| 151 | + opp-hz = /bits/ 64 <637500000>; |
|---|
| 152 | + opp-microvolt = <1150000>; |
|---|
| 153 | + turbo-mode; |
|---|
| 94 | 154 | }; |
|---|
| 95 | 155 | }; |
|---|
| 96 | 156 | |
|---|
| .. | .. |
|---|
| 130 | 190 | }; |
|---|
| 131 | 191 | }; |
|---|
| 132 | 192 | |
|---|
| 133 | | - scu@c4300000 { |
|---|
| 134 | | - compatible = "arm,cortex-a9-scu"; |
|---|
| 135 | | - reg = <0xc4300000 0x100>; |
|---|
| 193 | + mmcbus: bus@c8000000 { |
|---|
| 194 | + compatible = "simple-bus"; |
|---|
| 195 | + reg = <0xc8000000 0x8000>; |
|---|
| 196 | + #address-cells = <1>; |
|---|
| 197 | + #size-cells = <1>; |
|---|
| 198 | + ranges = <0x0 0xc8000000 0x8000>; |
|---|
| 199 | + |
|---|
| 200 | + ddr_clkc: clock-controller@400 { |
|---|
| 201 | + compatible = "amlogic,meson8-ddr-clkc"; |
|---|
| 202 | + reg = <0x400 0x20>; |
|---|
| 203 | + clocks = <&xtal>; |
|---|
| 204 | + clock-names = "xtal"; |
|---|
| 205 | + #clock-cells = <1>; |
|---|
| 206 | + }; |
|---|
| 207 | + |
|---|
| 208 | + dmcbus: bus@6000 { |
|---|
| 209 | + compatible = "simple-bus"; |
|---|
| 210 | + reg = <0x6000 0x400>; |
|---|
| 211 | + #address-cells = <1>; |
|---|
| 212 | + #size-cells = <1>; |
|---|
| 213 | + ranges = <0x0 0x6000 0x400>; |
|---|
| 214 | + |
|---|
| 215 | + canvas: video-lut@20 { |
|---|
| 216 | + compatible = "amlogic,meson8-canvas", |
|---|
| 217 | + "amlogic,canvas"; |
|---|
| 218 | + reg = <0x20 0x14>; |
|---|
| 219 | + }; |
|---|
| 220 | + }; |
|---|
| 221 | + }; |
|---|
| 222 | + |
|---|
| 223 | + apb: bus@d0000000 { |
|---|
| 224 | + compatible = "simple-bus"; |
|---|
| 225 | + reg = <0xd0000000 0x200000>; |
|---|
| 226 | + #address-cells = <1>; |
|---|
| 227 | + #size-cells = <1>; |
|---|
| 228 | + ranges = <0x0 0xd0000000 0x200000>; |
|---|
| 229 | + |
|---|
| 230 | + mali: gpu@c0000 { |
|---|
| 231 | + compatible = "amlogic,meson8-mali", "arm,mali-450"; |
|---|
| 232 | + reg = <0xc0000 0x40000>; |
|---|
| 233 | + interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 234 | + <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 235 | + <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 236 | + <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 237 | + <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 238 | + <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 239 | + <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 240 | + <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 241 | + <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 242 | + <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 243 | + <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 244 | + <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 245 | + <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 246 | + <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 247 | + <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>, |
|---|
| 248 | + <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>; |
|---|
| 249 | + interrupt-names = "gp", "gpmmu", "pp", "pmu", |
|---|
| 250 | + "pp0", "ppmmu0", "pp1", "ppmmu1", |
|---|
| 251 | + "pp2", "ppmmu2", "pp4", "ppmmu4", |
|---|
| 252 | + "pp5", "ppmmu5", "pp6", "ppmmu6"; |
|---|
| 253 | + resets = <&reset RESET_MALI>; |
|---|
| 254 | + |
|---|
| 255 | + clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>; |
|---|
| 256 | + clock-names = "bus", "core"; |
|---|
| 257 | + |
|---|
| 258 | + assigned-clocks = <&clkc CLKID_MALI>; |
|---|
| 259 | + assigned-clock-rates = <318750000>; |
|---|
| 260 | + |
|---|
| 261 | + operating-points-v2 = <&gpu_opp_table>; |
|---|
| 262 | + }; |
|---|
| 136 | 263 | }; |
|---|
| 137 | 264 | }; /* end of / */ |
|---|
| 138 | 265 | |
|---|
| .. | .. |
|---|
| 163 | 290 | mux { |
|---|
| 164 | 291 | groups = "uart_tx_ao_a", "uart_rx_ao_a"; |
|---|
| 165 | 292 | function = "uart_ao"; |
|---|
| 293 | + bias-disable; |
|---|
| 166 | 294 | }; |
|---|
| 167 | 295 | }; |
|---|
| 168 | 296 | |
|---|
| .. | .. |
|---|
| 170 | 298 | mux { |
|---|
| 171 | 299 | groups = "i2c_mst_sck_ao", "i2c_mst_sda_ao"; |
|---|
| 172 | 300 | function = "i2c_mst_ao"; |
|---|
| 301 | + bias-disable; |
|---|
| 173 | 302 | }; |
|---|
| 174 | 303 | }; |
|---|
| 175 | 304 | |
|---|
| .. | .. |
|---|
| 177 | 306 | mux { |
|---|
| 178 | 307 | groups = "remote_input"; |
|---|
| 179 | 308 | function = "remote"; |
|---|
| 309 | + bias-disable; |
|---|
| 180 | 310 | }; |
|---|
| 181 | 311 | }; |
|---|
| 182 | 312 | |
|---|
| .. | .. |
|---|
| 184 | 314 | mux { |
|---|
| 185 | 315 | groups = "pwm_f_ao"; |
|---|
| 186 | 316 | function = "pwm_f_ao"; |
|---|
| 317 | + bias-disable; |
|---|
| 187 | 318 | }; |
|---|
| 188 | 319 | }; |
|---|
| 189 | 320 | }; |
|---|
| 190 | 321 | }; |
|---|
| 191 | 322 | |
|---|
| 192 | 323 | &cbus { |
|---|
| 193 | | - clkc: clock-controller@4000 { |
|---|
| 194 | | - #clock-cells = <1>; |
|---|
| 195 | | - #reset-cells = <1>; |
|---|
| 196 | | - compatible = "amlogic,meson8-clkc"; |
|---|
| 197 | | - reg = <0x8000 0x4>, <0x4000 0x400>; |
|---|
| 198 | | - }; |
|---|
| 199 | | - |
|---|
| 200 | 324 | reset: reset-controller@4404 { |
|---|
| 201 | 325 | compatible = "amlogic,meson8b-reset"; |
|---|
| 202 | 326 | reg = <0x4404 0x9c>; |
|---|
| .. | .. |
|---|
| 213 | 337 | reg = <0x86c0 0x10>; |
|---|
| 214 | 338 | #pwm-cells = <3>; |
|---|
| 215 | 339 | status = "disabled"; |
|---|
| 340 | + }; |
|---|
| 341 | + |
|---|
| 342 | + clock-measure@8758 { |
|---|
| 343 | + compatible = "amlogic,meson8-clk-measure"; |
|---|
| 344 | + reg = <0x8758 0x1c>; |
|---|
| 216 | 345 | }; |
|---|
| 217 | 346 | |
|---|
| 218 | 347 | pinctrl_cbus: pinctrl@9880 { |
|---|
| .. | .. |
|---|
| 238 | 367 | groups = "sd_d0_a", "sd_d1_a", "sd_d2_a", |
|---|
| 239 | 368 | "sd_d3_a", "sd_clk_a", "sd_cmd_a"; |
|---|
| 240 | 369 | function = "sd_a"; |
|---|
| 370 | + bias-disable; |
|---|
| 241 | 371 | }; |
|---|
| 242 | 372 | }; |
|---|
| 243 | 373 | |
|---|
| .. | .. |
|---|
| 246 | 376 | groups = "sd_d0_b", "sd_d1_b", "sd_d2_b", |
|---|
| 247 | 377 | "sd_d3_b", "sd_clk_b", "sd_cmd_b"; |
|---|
| 248 | 378 | function = "sd_b"; |
|---|
| 379 | + bias-disable; |
|---|
| 249 | 380 | }; |
|---|
| 250 | 381 | }; |
|---|
| 251 | 382 | |
|---|
| .. | .. |
|---|
| 254 | 385 | groups = "sd_d0_c", "sd_d1_c", "sd_d2_c", |
|---|
| 255 | 386 | "sd_d3_c", "sd_clk_c", "sd_cmd_c"; |
|---|
| 256 | 387 | function = "sd_c"; |
|---|
| 388 | + bias-disable; |
|---|
| 389 | + }; |
|---|
| 390 | + }; |
|---|
| 391 | + |
|---|
| 392 | + sdxc_b_pins: sdxc-b { |
|---|
| 393 | + mux { |
|---|
| 394 | + groups = "sdxc_d0_b", "sdxc_d13_b", |
|---|
| 395 | + "sdxc_clk_b", "sdxc_cmd_b"; |
|---|
| 396 | + function = "sdxc_b"; |
|---|
| 397 | + bias-pull-up; |
|---|
| 257 | 398 | }; |
|---|
| 258 | 399 | }; |
|---|
| 259 | 400 | |
|---|
| .. | .. |
|---|
| 261 | 402 | mux { |
|---|
| 262 | 403 | groups = "nor_d", "nor_q", "nor_c", "nor_cs"; |
|---|
| 263 | 404 | function = "nor"; |
|---|
| 405 | + bias-disable; |
|---|
| 264 | 406 | }; |
|---|
| 265 | 407 | }; |
|---|
| 266 | 408 | |
|---|
| .. | .. |
|---|
| 272 | 414 | "eth_rxd1", "eth_rxd0", "eth_mdio", |
|---|
| 273 | 415 | "eth_mdc"; |
|---|
| 274 | 416 | function = "ethernet"; |
|---|
| 417 | + bias-disable; |
|---|
| 275 | 418 | }; |
|---|
| 276 | 419 | }; |
|---|
| 277 | 420 | |
|---|
| .. | .. |
|---|
| 279 | 422 | mux { |
|---|
| 280 | 423 | groups = "pwm_e"; |
|---|
| 281 | 424 | function = "pwm_e"; |
|---|
| 425 | + bias-disable; |
|---|
| 282 | 426 | }; |
|---|
| 283 | 427 | }; |
|---|
| 284 | 428 | |
|---|
| .. | .. |
|---|
| 287 | 431 | groups = "uart_tx_a1", |
|---|
| 288 | 432 | "uart_rx_a1"; |
|---|
| 289 | 433 | function = "uart_a"; |
|---|
| 434 | + bias-disable; |
|---|
| 290 | 435 | }; |
|---|
| 291 | 436 | }; |
|---|
| 292 | 437 | |
|---|
| .. | .. |
|---|
| 295 | 440 | groups = "uart_cts_a1", |
|---|
| 296 | 441 | "uart_rts_a1"; |
|---|
| 297 | 442 | function = "uart_a"; |
|---|
| 443 | + bias-disable; |
|---|
| 298 | 444 | }; |
|---|
| 299 | 445 | }; |
|---|
| 300 | 446 | }; |
|---|
| .. | .. |
|---|
| 311 | 457 | compatible = "amlogic,meson8-efuse"; |
|---|
| 312 | 458 | clocks = <&clkc CLKID_EFUSE>; |
|---|
| 313 | 459 | clock-names = "core"; |
|---|
| 460 | + |
|---|
| 461 | + temperature_calib: calib@1f4 { |
|---|
| 462 | + /* only the upper two bytes are relevant */ |
|---|
| 463 | + reg = <0x1f4 0x4>; |
|---|
| 464 | + }; |
|---|
| 314 | 465 | }; |
|---|
| 315 | 466 | |
|---|
| 316 | 467 | ðmac { |
|---|
| 317 | 468 | clocks = <&clkc CLKID_ETH>; |
|---|
| 318 | 469 | clock-names = "stmmaceth"; |
|---|
| 470 | + |
|---|
| 471 | + power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>; |
|---|
| 319 | 472 | }; |
|---|
| 320 | 473 | |
|---|
| 321 | 474 | &gpio_intc { |
|---|
| 322 | 475 | compatible = "amlogic,meson8-gpio-intc", "amlogic,meson-gpio-intc"; |
|---|
| 323 | 476 | status = "okay"; |
|---|
| 477 | +}; |
|---|
| 478 | + |
|---|
| 479 | +&hhi { |
|---|
| 480 | + clkc: clock-controller { |
|---|
| 481 | + compatible = "amlogic,meson8-clkc"; |
|---|
| 482 | + clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>; |
|---|
| 483 | + clock-names = "xtal", "ddr_pll"; |
|---|
| 484 | + #clock-cells = <1>; |
|---|
| 485 | + #reset-cells = <1>; |
|---|
| 486 | + }; |
|---|
| 487 | + |
|---|
| 488 | + pwrc: power-controller { |
|---|
| 489 | + compatible = "amlogic,meson8-pwrc"; |
|---|
| 490 | + #power-domain-cells = <1>; |
|---|
| 491 | + amlogic,ao-sysctrl = <&pmu>; |
|---|
| 492 | + clocks = <&clkc CLKID_VPU>; |
|---|
| 493 | + clock-names = "vpu"; |
|---|
| 494 | + assigned-clocks = <&clkc CLKID_VPU>; |
|---|
| 495 | + assigned-clock-rates = <364285714>; |
|---|
| 496 | + }; |
|---|
| 324 | 497 | }; |
|---|
| 325 | 498 | |
|---|
| 326 | 499 | &hwrng { |
|---|
| .. | .. |
|---|
| 350 | 523 | arm,shared-override; |
|---|
| 351 | 524 | }; |
|---|
| 352 | 525 | |
|---|
| 526 | +&periph { |
|---|
| 527 | + scu@0 { |
|---|
| 528 | + compatible = "arm,cortex-a9-scu"; |
|---|
| 529 | + reg = <0x0 0x100>; |
|---|
| 530 | + }; |
|---|
| 531 | + |
|---|
| 532 | + timer@200 { |
|---|
| 533 | + compatible = "arm,cortex-a9-global-timer"; |
|---|
| 534 | + reg = <0x200 0x20>; |
|---|
| 535 | + interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>; |
|---|
| 536 | + clocks = <&clkc CLKID_PERIPH>; |
|---|
| 537 | + |
|---|
| 538 | + /* |
|---|
| 539 | + * the arm_global_timer driver currently does not handle clock |
|---|
| 540 | + * rate changes. Keep it disabled for now. |
|---|
| 541 | + */ |
|---|
| 542 | + status = "disabled"; |
|---|
| 543 | + }; |
|---|
| 544 | + |
|---|
| 545 | + timer@600 { |
|---|
| 546 | + compatible = "arm,cortex-a9-twd-timer"; |
|---|
| 547 | + reg = <0x600 0x20>; |
|---|
| 548 | + interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>; |
|---|
| 549 | + clocks = <&clkc CLKID_PERIPH>; |
|---|
| 550 | + }; |
|---|
| 551 | +}; |
|---|
| 552 | + |
|---|
| 353 | 553 | &pwm_ab { |
|---|
| 354 | 554 | compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm"; |
|---|
| 355 | 555 | }; |
|---|
| .. | .. |
|---|
| 358 | 558 | compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm"; |
|---|
| 359 | 559 | }; |
|---|
| 360 | 560 | |
|---|
| 561 | +&rtc { |
|---|
| 562 | + compatible = "amlogic,meson8-rtc"; |
|---|
| 563 | + resets = <&reset RESET_RTC>; |
|---|
| 564 | +}; |
|---|
| 565 | + |
|---|
| 361 | 566 | &saradc { |
|---|
| 362 | 567 | compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc"; |
|---|
| 363 | | - clocks = <&clkc CLKID_XTAL>, |
|---|
| 364 | | - <&clkc CLKID_SAR_ADC>; |
|---|
| 568 | + clocks = <&xtal>, <&clkc CLKID_SAR_ADC>; |
|---|
| 365 | 569 | clock-names = "clkin", "core"; |
|---|
| 570 | + amlogic,hhi-sysctrl = <&hhi>; |
|---|
| 571 | + nvmem-cells = <&temperature_calib>; |
|---|
| 572 | + nvmem-cell-names = "temperature_calib"; |
|---|
| 573 | +}; |
|---|
| 574 | + |
|---|
| 575 | +&sdhc { |
|---|
| 576 | + compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc"; |
|---|
| 577 | + clocks = <&xtal>, |
|---|
| 578 | + <&clkc CLKID_FCLK_DIV4>, |
|---|
| 579 | + <&clkc CLKID_FCLK_DIV3>, |
|---|
| 580 | + <&clkc CLKID_FCLK_DIV5>, |
|---|
| 581 | + <&clkc CLKID_SDHC>; |
|---|
| 582 | + clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk"; |
|---|
| 366 | 583 | }; |
|---|
| 367 | 584 | |
|---|
| 368 | 585 | &sdio { |
|---|
| .. | .. |
|---|
| 375 | 592 | clocks = <&clkc CLKID_CLK81>; |
|---|
| 376 | 593 | }; |
|---|
| 377 | 594 | |
|---|
| 595 | +&timer_abcde { |
|---|
| 596 | + clocks = <&xtal>, <&clkc CLKID_CLK81>; |
|---|
| 597 | + clock-names = "xtal", "pclk"; |
|---|
| 598 | +}; |
|---|
| 599 | + |
|---|
| 378 | 600 | &uart_AO { |
|---|
| 379 | | - compatible = "amlogic,meson8-uart", "amlogic,meson-uart"; |
|---|
| 380 | | - clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_CLK81>; |
|---|
| 381 | | - clock-names = "baud", "xtal", "pclk"; |
|---|
| 601 | + compatible = "amlogic,meson8-uart", "amlogic,meson-ao-uart"; |
|---|
| 602 | + clocks = <&xtal>, <&clkc CLKID_CLK81>, <&clkc CLKID_CLK81>; |
|---|
| 603 | + clock-names = "xtal", "pclk", "baud"; |
|---|
| 382 | 604 | }; |
|---|
| 383 | 605 | |
|---|
| 384 | 606 | &uart_A { |
|---|
| 385 | | - compatible = "amlogic,meson8-uart", "amlogic,meson-uart"; |
|---|
| 386 | | - clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART0>; |
|---|
| 387 | | - clock-names = "baud", "xtal", "pclk"; |
|---|
| 607 | + compatible = "amlogic,meson8-uart"; |
|---|
| 608 | + clocks = <&xtal>, <&clkc CLKID_UART0>, <&clkc CLKID_CLK81>; |
|---|
| 609 | + clock-names = "xtal", "pclk", "baud"; |
|---|
| 388 | 610 | }; |
|---|
| 389 | 611 | |
|---|
| 390 | 612 | &uart_B { |
|---|
| 391 | | - compatible = "amlogic,meson8-uart", "amlogic,meson-uart"; |
|---|
| 392 | | - clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART1>; |
|---|
| 393 | | - clock-names = "baud", "xtal", "pclk"; |
|---|
| 613 | + compatible = "amlogic,meson8-uart"; |
|---|
| 614 | + clocks = <&xtal>, <&clkc CLKID_UART1>, <&clkc CLKID_CLK81>; |
|---|
| 615 | + clock-names = "xtal", "pclk", "baud"; |
|---|
| 394 | 616 | }; |
|---|
| 395 | 617 | |
|---|
| 396 | 618 | &uart_C { |
|---|
| 397 | | - compatible = "amlogic,meson8-uart", "amlogic,meson-uart"; |
|---|
| 398 | | - clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_XTAL>, <&clkc CLKID_UART2>; |
|---|
| 399 | | - clock-names = "baud", "xtal", "pclk"; |
|---|
| 619 | + compatible = "amlogic,meson8-uart"; |
|---|
| 620 | + clocks = <&xtal>, <&clkc CLKID_UART2>, <&clkc CLKID_CLK81>; |
|---|
| 621 | + clock-names = "xtal", "pclk", "baud"; |
|---|
| 400 | 622 | }; |
|---|
| 401 | 623 | |
|---|
| 402 | 624 | &usb0 { |
|---|