1 // SPDX-License-Identifier: GPL-2.0 OR MIT
3 * Copyright 2014 Carlo Caione <carlo@caione.org>
6 #include <dt-bindings/clock/meson8-ddr-clkc.h>
7 #include <dt-bindings/clock/meson8b-clkc.h>
8 #include <dt-bindings/gpio/meson8-gpio.h>
9 #include <dt-bindings/power/meson8-power.h>
10 #include <dt-bindings/reset/amlogic,meson8b-clkc-reset.h>
11 #include <dt-bindings/reset/amlogic,meson8b-reset.h>
15 model = "Amlogic Meson8 SoC";
16 compatible = "amlogic,meson8";
24 compatible = "arm,cortex-a9";
25 next-level-cache = <&L2>;
27 enable-method = "amlogic,meson8-smp";
28 resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
29 operating-points-v2 = <&cpu_opp_table>;
30 clocks = <&clkc CLKID_CPUCLK>;
35 compatible = "arm,cortex-a9";
36 next-level-cache = <&L2>;
38 enable-method = "amlogic,meson8-smp";
39 resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
40 operating-points-v2 = <&cpu_opp_table>;
41 clocks = <&clkc CLKID_CPUCLK>;
46 compatible = "arm,cortex-a9";
47 next-level-cache = <&L2>;
49 enable-method = "amlogic,meson8-smp";
50 resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
51 operating-points-v2 = <&cpu_opp_table>;
52 clocks = <&clkc CLKID_CPUCLK>;
57 compatible = "arm,cortex-a9";
58 next-level-cache = <&L2>;
60 enable-method = "amlogic,meson8-smp";
61 resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
62 operating-points-v2 = <&cpu_opp_table>;
63 clocks = <&clkc CLKID_CPUCLK>;
67 cpu_opp_table: opp-table {
68 compatible = "operating-points-v2";
72 opp-hz = /bits/ 64 <96000000>;
73 opp-microvolt = <825000>;
76 opp-hz = /bits/ 64 <192000000>;
77 opp-microvolt = <825000>;
80 opp-hz = /bits/ 64 <312000000>;
81 opp-microvolt = <825000>;
84 opp-hz = /bits/ 64 <408000000>;
85 opp-microvolt = <825000>;
88 opp-hz = /bits/ 64 <504000000>;
89 opp-microvolt = <825000>;
92 opp-hz = /bits/ 64 <600000000>;
93 opp-microvolt = <850000>;
96 opp-hz = /bits/ 64 <720000000>;
97 opp-microvolt = <850000>;
100 opp-hz = /bits/ 64 <816000000>;
101 opp-microvolt = <875000>;
104 opp-hz = /bits/ 64 <1008000000>;
105 opp-microvolt = <925000>;
108 opp-hz = /bits/ 64 <1200000000>;
109 opp-microvolt = <975000>;
112 opp-hz = /bits/ 64 <1416000000>;
113 opp-microvolt = <1025000>;
116 opp-hz = /bits/ 64 <1608000000>;
117 opp-microvolt = <1100000>;
121 opp-hz = /bits/ 64 <1800000000>;
122 opp-microvolt = <1125000>;
126 opp-hz = /bits/ 64 <1992000000>;
127 opp-microvolt = <1150000>;
131 gpu_opp_table: gpu-opp-table {
132 compatible = "operating-points-v2";
135 opp-hz = /bits/ 64 <182142857>;
136 opp-microvolt = <1150000>;
139 opp-hz = /bits/ 64 <318750000>;
140 opp-microvolt = <1150000>;
143 opp-hz = /bits/ 64 <425000000>;
144 opp-microvolt = <1150000>;
147 opp-hz = /bits/ 64 <510000000>;
148 opp-microvolt = <1150000>;
151 opp-hz = /bits/ 64 <637500000>;
152 opp-microvolt = <1150000>;
158 compatible = "arm,cortex-a9-pmu";
159 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
160 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
161 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
162 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
163 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
167 #address-cells = <1>;
171 /* 2 MiB reserved for Hardware ROM Firmware? */
173 reg = <0x0 0x200000>;
178 * 1 MiB reserved for the "ARM Power Firmware": this is ARM
179 * code which is responsible for system suspend. It loads a
180 * piece of ARC code ("arc_power" in the vendor u-boot tree)
181 * into SRAM, executes that and shuts down the (last) ARM core.
182 * The arc_power firmware then checks various wakeup sources
183 * (IR remote receiver, HDMI CEC, WIFI and Bluetooth wakeup or
184 * simply the power key) and re-starts the ARM core once it
185 * detects a wakeup request.
187 power-firmware@4f00000 {
188 reg = <0x4f00000 0x100000>;
193 mmcbus: bus@c8000000 {
194 compatible = "simple-bus";
195 reg = <0xc8000000 0x8000>;
196 #address-cells = <1>;
198 ranges = <0x0 0xc8000000 0x8000>;
200 ddr_clkc: clock-controller@400 {
201 compatible = "amlogic,meson8-ddr-clkc";
204 clock-names = "xtal";
209 compatible = "simple-bus";
210 reg = <0x6000 0x400>;
211 #address-cells = <1>;
213 ranges = <0x0 0x6000 0x400>;
215 canvas: video-lut@20 {
216 compatible = "amlogic,meson8-canvas",
224 compatible = "simple-bus";
225 reg = <0xd0000000 0x200000>;
226 #address-cells = <1>;
228 ranges = <0x0 0xd0000000 0x200000>;
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 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
255 clock-names = "bus", "core";
256 operating-points-v2 = <&gpu_opp_table>;
263 compatible = "amlogic,meson8-pmu", "syscon";
267 pinctrl_aobus: pinctrl@84 {
268 compatible = "amlogic,meson8-aobus-pinctrl";
270 #address-cells = <1>;
274 gpio_ao: ao-bank@14 {
278 reg-names = "mux", "pull", "gpio";
281 gpio-ranges = <&pinctrl_aobus 0 0 16>;
284 uart_ao_a_pins: uart_ao_a {
286 groups = "uart_tx_ao_a", "uart_rx_ao_a";
287 function = "uart_ao";
292 i2c_ao_pins: i2c_mst_ao {
294 groups = "i2c_mst_sck_ao", "i2c_mst_sda_ao";
295 function = "i2c_mst_ao";
300 ir_recv_pins: remote {
302 groups = "remote_input";
308 pwm_f_ao_pins: pwm-f-ao {
311 function = "pwm_f_ao";
319 reset: reset-controller@4404 {
320 compatible = "amlogic,meson8b-reset";
325 analog_top: analog-top@81a8 {
326 compatible = "amlogic,meson8-analog-top", "syscon";
331 compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
338 compatible = "amlogic,meson8-clk-measure";
342 pinctrl_cbus: pinctrl@9880 {
343 compatible = "amlogic,meson8-cbus-pinctrl";
345 #address-cells = <1>;
354 reg-names = "mux", "pull", "pull-enable", "gpio";
357 gpio-ranges = <&pinctrl_cbus 0 0 120>;
362 groups = "sd_d0_a", "sd_d1_a", "sd_d2_a",
363 "sd_d3_a", "sd_clk_a", "sd_cmd_a";
371 groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
372 "sd_d3_b", "sd_clk_b", "sd_cmd_b";
380 groups = "sd_d0_c", "sd_d1_c", "sd_d2_c",
381 "sd_d3_c", "sd_clk_c", "sd_cmd_c";
387 sdxc_b_pins: sdxc-b {
389 groups = "sdxc_d0_b", "sdxc_d13_b",
390 "sdxc_clk_b", "sdxc_cmd_b";
398 groups = "nor_d", "nor_q", "nor_c", "nor_cs";
406 groups = "eth_tx_clk_50m", "eth_tx_en",
407 "eth_txd1", "eth_txd0",
408 "eth_rx_clk_in", "eth_rx_dv",
409 "eth_rxd1", "eth_rxd0", "eth_mdio",
411 function = "ethernet";
424 uart_a1_pins: uart-a1 {
426 groups = "uart_tx_a1",
433 uart_a1_cts_rts_pins: uart-a1-cts-rts {
435 groups = "uart_cts_a1",
446 compatible = "amlogic,meson8-smp-sram";
452 compatible = "amlogic,meson8-efuse";
453 clocks = <&clkc CLKID_EFUSE>;
454 clock-names = "core";
456 temperature_calib: calib@1f4 {
457 /* only the upper two bytes are relevant */
463 clocks = <&clkc CLKID_ETH>;
464 clock-names = "stmmaceth";
466 power-domains = <&pwrc PWRC_MESON8_ETHERNET_MEM_ID>;
470 compatible = "amlogic,meson8-gpio-intc", "amlogic,meson-gpio-intc";
475 clkc: clock-controller {
476 compatible = "amlogic,meson8-clkc";
477 clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>;
478 clock-names = "xtal", "ddr_pll";
483 pwrc: power-controller {
484 compatible = "amlogic,meson8-pwrc";
485 #power-domain-cells = <1>;
486 amlogic,ao-sysctrl = <&pmu>;
487 clocks = <&clkc CLKID_VPU>;
489 assigned-clocks = <&clkc CLKID_VPU>;
490 assigned-clock-rates = <364285714>;
495 compatible = "amlogic,meson8-rng", "amlogic,meson-rng";
496 clocks = <&clkc CLKID_RNG0>;
497 clock-names = "core";
501 clocks = <&clkc CLKID_CLK81>;
505 clocks = <&clkc CLKID_CLK81>;
509 clocks = <&clkc CLKID_CLK81>;
513 arm,data-latency = <3 3 3>;
514 arm,tag-latency = <2 2 2>;
515 arm,filter-ranges = <0x100000 0xc0000000>;
517 prefetch-instr = <1>;
523 compatible = "arm,cortex-a9-scu";
528 compatible = "arm,cortex-a9-global-timer";
530 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
531 clocks = <&clkc CLKID_PERIPH>;
534 * the arm_global_timer driver currently does not handle clock
535 * rate changes. Keep it disabled for now.
541 compatible = "arm,cortex-a9-twd-timer";
543 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
544 clocks = <&clkc CLKID_PERIPH>;
549 compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
553 compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
557 compatible = "amlogic,meson8-rtc";
558 resets = <&reset RESET_RTC>;
562 compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc";
563 clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
564 clock-names = "clkin", "core";
565 amlogic,hhi-sysctrl = <&hhi>;
566 nvmem-cells = <&temperature_calib>;
567 nvmem-cell-names = "temperature_calib";
571 compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc";
573 <&clkc CLKID_FCLK_DIV4>,
574 <&clkc CLKID_FCLK_DIV3>,
575 <&clkc CLKID_FCLK_DIV5>,
577 clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk";
581 compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio";
582 clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
583 clock-names = "core", "clkin";
587 clocks = <&clkc CLKID_CLK81>;
591 clocks = <&xtal>, <&clkc CLKID_CLK81>;
592 clock-names = "xtal", "pclk";
596 compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
597 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_CLK81>;
598 clock-names = "baud", "xtal", "pclk";
602 compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
603 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART0>;
604 clock-names = "baud", "xtal", "pclk";
608 compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
609 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART1>;
610 clock-names = "baud", "xtal", "pclk";
614 compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
615 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART2>;
616 clock-names = "baud", "xtal", "pclk";
620 compatible = "amlogic,meson8-usb", "snps,dwc2";
621 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
626 compatible = "amlogic,meson8-usb", "snps,dwc2";
627 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
632 compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy";
633 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
634 clock-names = "usb_general", "usb";
635 resets = <&reset RESET_USB_OTG>;
639 compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy";
640 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
641 clock-names = "usb_general", "usb";
642 resets = <&reset RESET_USB_OTG>;