1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2022 Vyacheslav Bocharov <adeep@lexina.in>
4 * Copyright (c) 2022 JetHome
5 * Author: Vyacheslav Bocharov <adeep@lexina.in>
6 * Author: Aleksandr Kazantsev <ak@tvip.ru>
7 * Author: Alexey Shevelkin <ash@tvip.ru>
12 #include "meson-axg.dtsi"
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/thermal/thermal.h>
18 serial0 = &uart_AO; /* Console */
19 serial2 = &uart_AO_B; /* External UART (Wireless Module) */
24 stdout-path = "serial0:115200n8";
29 size = <0x0 0x400000>;
33 emmc_pwrseq: emmc-pwrseq {
34 compatible = "mmc-pwrseq-emmc";
35 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
38 vcc_3v3: regulator-vcc_3v3 {
39 compatible = "regulator-fixed";
40 regulator-name = "VCC_3V3";
41 regulator-min-microvolt = <3300000>;
42 regulator-max-microvolt = <3300000>;
43 vin-supply = <&vddao_3v3>;
47 vcc_5v: regulator-vcc_5v {
48 compatible = "regulator-fixed";
49 regulator-name = "VCC5V";
50 regulator-min-microvolt = <5000000>;
51 regulator-max-microvolt = <5000000>;
55 vddao_3v3: regulator-vddao_3v3 {
56 compatible = "regulator-fixed";
57 regulator-name = "VDDAO_3V3";
58 regulator-min-microvolt = <3300000>;
59 regulator-max-microvolt = <3300000>;
60 vin-supply = <&vcc_5v>;
64 vddio_ao18: regulator-vddio_ao18 {
65 compatible = "regulator-fixed";
66 regulator-name = "VDDIO_AO18";
67 regulator-min-microvolt = <1800000>;
68 regulator-max-microvolt = <1800000>;
69 vin-supply = <&vddao_3v3>;
73 vddio_boot: regulator-vddio_boot {
74 compatible = "regulator-fixed";
75 regulator-name = "VDDIO_BOOT";
76 regulator-min-microvolt = <3300000>;
77 regulator-max-microvolt = <3300000>;
78 vin-supply = <&vddao_3v3>;
82 vccq_1v8: regulator-vccq_1v8 {
83 compatible = "regulator-fixed";
84 regulator-name = "VCCQ_1V8";
85 regulator-min-microvolt = <1800000>;
86 regulator-max-microvolt = <1800000>;
87 vin-supply = <&vddao_3v3>;
91 usb_pwr: regulator-usb_pwr {
92 compatible = "regulator-fixed";
93 regulator-name = "USB_PWR";
94 regulator-min-microvolt = <5000000>;
95 regulator-max-microvolt = <5000000>;
96 vin-supply = <&vcc_5v>;
100 sdio_pwrseq: sdio-pwrseq {
101 compatible = "mmc-pwrseq-simple";
102 reset-gpios = <&gpio GPIOX_7 GPIO_ACTIVE_LOW>;
104 clock-names = "ext_clock";
108 compatible = "pwm-clock";
110 clock-frequency = <32768>;
111 pwms = <&pwm_ab 0 30518 0>; /* PWM_A at 32.768KHz */
115 cpu_thermal: cpu-thermal {
116 polling-delay-passive = <250>;
117 polling-delay = <1000>;
118 thermal-sensors = <&scpi_sensors 0>;
120 cpu_passive: cpu-passive {
121 temperature = <70000>; /* millicelsius */
122 hysteresis = <2000>; /* millicelsius */
127 temperature = <80000>; /* millicelsius */
128 hysteresis = <2000>; /* millicelsius */
132 cpu_critical: cpu-critical {
133 temperature = <100000>; /* millicelsius */
134 hysteresis = <2000>; /* millicelsius */
139 cpu_cooling_maps: cooling-maps {
141 trip = <&cpu_passive>;
142 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
143 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
144 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
145 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
150 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
151 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
152 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
153 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
160 compatible = "w1-gpio";
161 gpios = <&gpio GPIOA_14 GPIO_ACTIVE_HIGH>;
178 wifi_mac: wifi-mac@c {
189 pinctrl-0 = <ð_rmii_x_pins>;
190 pinctrl-names = "default";
191 phy-handle = <ð_phy0>;
195 compatible = "snps,dwmac-mdio";
196 #address-cells = <1>;
199 /* ICPlus IP101A/G Ethernet PHY (vendor_id=0x0243, model_id=0x0c54) */
200 eth_phy0: ethernet-phy@0 {
201 /* compatible = "ethernet-phy-id0243.0c54";*/
205 reset-assert-us = <10000>;
206 reset-deassert-us = <10000>;
207 reset-gpios = <&gpio GPIOZ_5 GPIO_ACTIVE_LOW>;
212 /* Internal I2C bus (on CPU module) */
215 pinctrl-0 = <&i2c1_z_pins>;
216 pinctrl-names = "default";
220 compatible = "nxp,pcf8563";
226 /* Peripheral I2C bus (on motherboard) */
229 pinctrl-0 = <&i2c_ao_sck_10_pins>, <&i2c_ao_sda_11_pins>;
230 pinctrl-names = "default";
235 pinctrl-0 = <&pwm_a_x20_pins>;
236 pinctrl-names = "default";
242 #address-cells = <1>;
245 pinctrl-0 = <&sdio_pins>;
246 pinctrl-1 = <&sdio_clk_gate_pins>;
247 pinctrl-names = "default", "clk-gate";
251 max-frequency = <50000000>;
254 mmc-pwrseq = <&sdio_pwrseq>;
256 vmmc-supply = <&vddao_3v3>;
257 vqmmc-supply = <&vddio_boot>;
263 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
264 pinctrl-1 = <&emmc_clk_gate_pins>;
265 pinctrl-names = "default", "clk-gate";
269 max-frequency = <200000000>;
275 mmc-pwrseq = <&emmc_pwrseq>;
277 vmmc-supply = <&vcc_3v3>;
278 vqmmc-supply = <&vccq_1v8>;
284 pinctrl-0 = <&uart_b_z_pins>, <&uart_b_z_cts_rts_pins>;
285 pinctrl-names = "default";
292 pinctrl-0 = <&uart_ao_a_pins>;
293 pinctrl-names = "default";
296 /* UART Wireless module */
299 pinctrl-0 = <&uart_ao_b_pins>;
300 pinctrl-names = "default";
305 vbus-supply = <&usb_pwr>;
310 pinctrl-0 = <&spi1_x_pins>, <&spi1_ss0_x_pins>;
311 pinctrl-names = "default";
316 "", "", "", "", "", // 0 - 4
317 "", "", "", "", "", // 5 - 9
318 "UserButton", "", "", "", "", // 10 - 14
319 "", "", "", "", "", // 15 - 19
320 "", "", "", "", "", // 20 - 24
321 "", "LedRed", "LedGreen", "Output3", "Output2", // 25 - 29
322 "Output1", "", "", "", "", // 30 - 34
323 "", "ZigBeeBOOT", "", "", "", // 35 - 39
324 "1Wire", "ZigBeeRESET", "", "Input4", "Input3", // 40 - 44
325 "Input2", "Input1", "", "", "", // 45 - 49
326 "", "", "", "", "", // 50 - 54
327 "", "", "", "", "", // 55 - 59
328 "", "", "", "", "", // 60 - 64
329 "", "", "", "", "", // 65 - 69
330 "", "", "", "", "", // 70 - 74
331 "", "", "", "", "", // 75 - 79
332 "", "", "", "", "", // 80 - 84
337 #cooling-cells = <2>;
341 #cooling-cells = <2>;
345 #cooling-cells = <2>;
349 #cooling-cells = <2>;