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/reset/amlogic,meson8b-clkc-reset.h>
10 #include <dt-bindings/reset/amlogic,meson8b-reset.h>
14 model = "Amlogic Meson8 SoC";
15 compatible = "amlogic,meson8";
23 compatible = "arm,cortex-a9";
24 next-level-cache = <&L2>;
26 enable-method = "amlogic,meson8-smp";
27 resets = <&clkc CLKC_RESET_CPU0_SOFT_RESET>;
28 operating-points-v2 = <&cpu_opp_table>;
29 clocks = <&clkc CLKID_CPUCLK>;
34 compatible = "arm,cortex-a9";
35 next-level-cache = <&L2>;
37 enable-method = "amlogic,meson8-smp";
38 resets = <&clkc CLKC_RESET_CPU1_SOFT_RESET>;
39 operating-points-v2 = <&cpu_opp_table>;
40 clocks = <&clkc CLKID_CPUCLK>;
45 compatible = "arm,cortex-a9";
46 next-level-cache = <&L2>;
48 enable-method = "amlogic,meson8-smp";
49 resets = <&clkc CLKC_RESET_CPU2_SOFT_RESET>;
50 operating-points-v2 = <&cpu_opp_table>;
51 clocks = <&clkc CLKID_CPUCLK>;
56 compatible = "arm,cortex-a9";
57 next-level-cache = <&L2>;
59 enable-method = "amlogic,meson8-smp";
60 resets = <&clkc CLKC_RESET_CPU3_SOFT_RESET>;
61 operating-points-v2 = <&cpu_opp_table>;
62 clocks = <&clkc CLKID_CPUCLK>;
66 cpu_opp_table: opp-table {
67 compatible = "operating-points-v2";
71 opp-hz = /bits/ 64 <96000000>;
72 opp-microvolt = <825000>;
75 opp-hz = /bits/ 64 <192000000>;
76 opp-microvolt = <825000>;
79 opp-hz = /bits/ 64 <312000000>;
80 opp-microvolt = <825000>;
83 opp-hz = /bits/ 64 <408000000>;
84 opp-microvolt = <825000>;
87 opp-hz = /bits/ 64 <504000000>;
88 opp-microvolt = <825000>;
91 opp-hz = /bits/ 64 <600000000>;
92 opp-microvolt = <850000>;
95 opp-hz = /bits/ 64 <720000000>;
96 opp-microvolt = <850000>;
99 opp-hz = /bits/ 64 <816000000>;
100 opp-microvolt = <875000>;
103 opp-hz = /bits/ 64 <1008000000>;
104 opp-microvolt = <925000>;
107 opp-hz = /bits/ 64 <1200000000>;
108 opp-microvolt = <975000>;
111 opp-hz = /bits/ 64 <1416000000>;
112 opp-microvolt = <1025000>;
115 opp-hz = /bits/ 64 <1608000000>;
116 opp-microvolt = <1100000>;
120 opp-hz = /bits/ 64 <1800000000>;
121 opp-microvolt = <1125000>;
125 opp-hz = /bits/ 64 <1992000000>;
126 opp-microvolt = <1150000>;
130 gpu_opp_table: gpu-opp-table {
131 compatible = "operating-points-v2";
134 opp-hz = /bits/ 64 <182142857>;
135 opp-microvolt = <1150000>;
138 opp-hz = /bits/ 64 <318750000>;
139 opp-microvolt = <1150000>;
142 opp-hz = /bits/ 64 <425000000>;
143 opp-microvolt = <1150000>;
146 opp-hz = /bits/ 64 <510000000>;
147 opp-microvolt = <1150000>;
150 opp-hz = /bits/ 64 <637500000>;
151 opp-microvolt = <1150000>;
157 compatible = "arm,cortex-a9-pmu";
158 interrupts = <GIC_SPI 137 IRQ_TYPE_LEVEL_HIGH>,
159 <GIC_SPI 138 IRQ_TYPE_LEVEL_HIGH>,
160 <GIC_SPI 153 IRQ_TYPE_LEVEL_HIGH>,
161 <GIC_SPI 154 IRQ_TYPE_LEVEL_HIGH>;
162 interrupt-affinity = <&cpu0>, <&cpu1>, <&cpu2>, <&cpu3>;
166 #address-cells = <1>;
170 /* 2 MiB reserved for Hardware ROM Firmware? */
172 reg = <0x0 0x200000>;
177 * 1 MiB reserved for the "ARM Power Firmware": this is ARM
178 * code which is responsible for system suspend. It loads a
179 * piece of ARC code ("arc_power" in the vendor u-boot tree)
180 * into SRAM, executes that and shuts down the (last) ARM core.
181 * The arc_power firmware then checks various wakeup sources
182 * (IR remote receiver, HDMI CEC, WIFI and Bluetooth wakeup or
183 * simply the power key) and re-starts the ARM core once it
184 * detects a wakeup request.
186 power-firmware@4f00000 {
187 reg = <0x4f00000 0x100000>;
192 mmcbus: bus@c8000000 {
193 compatible = "simple-bus";
194 reg = <0xc8000000 0x8000>;
195 #address-cells = <1>;
197 ranges = <0x0 0xc8000000 0x8000>;
199 ddr_clkc: clock-controller@400 {
200 compatible = "amlogic,meson8-ddr-clkc";
203 clock-names = "xtal";
208 compatible = "simple-bus";
209 reg = <0x6000 0x400>;
210 #address-cells = <1>;
212 ranges = <0x0 0x6000 0x400>;
214 canvas: video-lut@20 {
215 compatible = "amlogic,meson8-canvas",
223 compatible = "simple-bus";
224 reg = <0xd0000000 0x200000>;
225 #address-cells = <1>;
227 ranges = <0x0 0xd0000000 0x200000>;
230 compatible = "amlogic,meson8-mali", "arm,mali-450";
231 reg = <0xc0000 0x40000>;
232 interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
233 <GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
234 <GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>,
235 <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>,
236 <GIC_SPI 164 IRQ_TYPE_LEVEL_HIGH>,
237 <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>,
238 <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>,
239 <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>,
240 <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>,
241 <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>,
242 <GIC_SPI 170 IRQ_TYPE_LEVEL_HIGH>,
243 <GIC_SPI 171 IRQ_TYPE_LEVEL_HIGH>,
244 <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>,
245 <GIC_SPI 173 IRQ_TYPE_LEVEL_HIGH>,
246 <GIC_SPI 174 IRQ_TYPE_LEVEL_HIGH>,
247 <GIC_SPI 175 IRQ_TYPE_LEVEL_HIGH>,
248 <GIC_SPI 176 IRQ_TYPE_LEVEL_HIGH>,
249 <GIC_SPI 177 IRQ_TYPE_LEVEL_HIGH>;
250 interrupt-names = "gp", "gpmmu", "pp", "pmu",
251 "pp0", "ppmmu0", "pp1", "ppmmu1",
252 "pp2", "ppmmu2", "pp4", "ppmmu4",
253 "pp5", "ppmmu5", "pp6", "ppmmu6";
254 resets = <&reset RESET_MALI>;
255 clocks = <&clkc CLKID_CLK81>, <&clkc CLKID_MALI>;
256 clock-names = "bus", "core";
257 operating-points-v2 = <&gpu_opp_table>;
264 compatible = "amlogic,meson8-pmu", "syscon";
268 pinctrl_aobus: pinctrl@84 {
269 compatible = "amlogic,meson8-aobus-pinctrl";
271 #address-cells = <1>;
275 gpio_ao: ao-bank@14 {
279 reg-names = "mux", "pull", "gpio";
282 gpio-ranges = <&pinctrl_aobus 0 0 16>;
285 uart_ao_a_pins: uart_ao_a {
287 groups = "uart_tx_ao_a", "uart_rx_ao_a";
288 function = "uart_ao";
293 i2c_ao_pins: i2c_mst_ao {
295 groups = "i2c_mst_sck_ao", "i2c_mst_sda_ao";
296 function = "i2c_mst_ao";
301 ir_recv_pins: remote {
303 groups = "remote_input";
309 pwm_f_ao_pins: pwm-f-ao {
312 function = "pwm_f_ao";
320 reset: reset-controller@4404 {
321 compatible = "amlogic,meson8b-reset";
326 analog_top: analog-top@81a8 {
327 compatible = "amlogic,meson8-analog-top", "syscon";
332 compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
339 compatible = "amlogic,meson8-clk-measure";
343 pinctrl_cbus: pinctrl@9880 {
344 compatible = "amlogic,meson8-cbus-pinctrl";
346 #address-cells = <1>;
355 reg-names = "mux", "pull", "pull-enable", "gpio";
358 gpio-ranges = <&pinctrl_cbus 0 0 120>;
363 groups = "sd_d0_a", "sd_d1_a", "sd_d2_a",
364 "sd_d3_a", "sd_clk_a", "sd_cmd_a";
372 groups = "sd_d0_b", "sd_d1_b", "sd_d2_b",
373 "sd_d3_b", "sd_clk_b", "sd_cmd_b";
381 groups = "sd_d0_c", "sd_d1_c", "sd_d2_c",
382 "sd_d3_c", "sd_clk_c", "sd_cmd_c";
390 groups = "nor_d", "nor_q", "nor_c", "nor_cs";
398 groups = "eth_tx_clk_50m", "eth_tx_en",
399 "eth_txd1", "eth_txd0",
400 "eth_rx_clk_in", "eth_rx_dv",
401 "eth_rxd1", "eth_rxd0", "eth_mdio",
403 function = "ethernet";
416 uart_a1_pins: uart-a1 {
418 groups = "uart_tx_a1",
425 uart_a1_cts_rts_pins: uart-a1-cts-rts {
427 groups = "uart_cts_a1",
438 compatible = "amlogic,meson8-smp-sram";
444 compatible = "amlogic,meson8-efuse";
445 clocks = <&clkc CLKID_EFUSE>;
446 clock-names = "core";
448 temperature_calib: calib@1f4 {
449 /* only the upper two bytes are relevant */
455 clocks = <&clkc CLKID_ETH>;
456 clock-names = "stmmaceth";
460 compatible = "amlogic,meson8-gpio-intc", "amlogic,meson-gpio-intc";
465 clkc: clock-controller {
466 compatible = "amlogic,meson8-clkc";
467 clocks = <&xtal>, <&ddr_clkc DDR_CLKID_DDR_PLL>;
468 clock-names = "xtal", "ddr_pll";
475 compatible = "amlogic,meson8-rng", "amlogic,meson-rng";
476 clocks = <&clkc CLKID_RNG0>;
477 clock-names = "core";
481 clocks = <&clkc CLKID_CLK81>;
485 clocks = <&clkc CLKID_CLK81>;
489 clocks = <&clkc CLKID_CLK81>;
493 arm,data-latency = <3 3 3>;
494 arm,tag-latency = <2 2 2>;
495 arm,filter-ranges = <0x100000 0xc0000000>;
497 prefetch-instr = <1>;
503 compatible = "arm,cortex-a9-scu";
508 compatible = "arm,cortex-a9-global-timer";
510 interrupts = <GIC_PPI 11 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
511 clocks = <&clkc CLKID_PERIPH>;
514 * the arm_global_timer driver currently does not handle clock
515 * rate changes. Keep it disabled for now.
521 compatible = "arm,cortex-a9-twd-timer";
523 interrupts = <GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) | IRQ_TYPE_EDGE_RISING)>;
524 clocks = <&clkc CLKID_PERIPH>;
529 compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
533 compatible = "amlogic,meson8-pwm", "amlogic,meson8b-pwm";
537 compatible = "amlogic,meson8-rtc";
538 resets = <&reset RESET_RTC>;
542 compatible = "amlogic,meson8-saradc", "amlogic,meson-saradc";
543 clocks = <&xtal>, <&clkc CLKID_SAR_ADC>;
544 clock-names = "clkin", "core";
545 amlogic,hhi-sysctrl = <&hhi>;
546 nvmem-cells = <&temperature_calib>;
547 nvmem-cell-names = "temperature_calib";
551 compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio";
552 clocks = <&clkc CLKID_SDIO>, <&clkc CLKID_CLK81>;
553 clock-names = "core", "clkin";
557 clocks = <&clkc CLKID_CLK81>;
561 clocks = <&xtal>, <&clkc CLKID_CLK81>;
562 clock-names = "xtal", "pclk";
566 compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
567 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_CLK81>;
568 clock-names = "baud", "xtal", "pclk";
572 compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
573 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART0>;
574 clock-names = "baud", "xtal", "pclk";
578 compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
579 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART1>;
580 clock-names = "baud", "xtal", "pclk";
584 compatible = "amlogic,meson8-uart", "amlogic,meson-uart";
585 clocks = <&clkc CLKID_CLK81>, <&xtal>, <&clkc CLKID_UART2>;
586 clock-names = "baud", "xtal", "pclk";
590 compatible = "amlogic,meson8-usb", "snps,dwc2";
591 clocks = <&clkc CLKID_USB0_DDR_BRIDGE>;
596 compatible = "amlogic,meson8-usb", "snps,dwc2";
597 clocks = <&clkc CLKID_USB1_DDR_BRIDGE>;
602 compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy";
603 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB0>;
604 clock-names = "usb_general", "usb";
605 resets = <&reset RESET_USB_OTG>;
609 compatible = "amlogic,meson8-usb2-phy", "amlogic,meson-mx-usb2-phy";
610 clocks = <&clkc CLKID_USB>, <&clkc CLKID_USB1>;
611 clock-names = "usb_general", "usb";
612 resets = <&reset RESET_USB_OTG>;