1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
3 * Copyright (c) 2021 Vyacheslav Bocharov <adeep@lexina.in>
4 * Copyright (c) 2020 JetHome
5 * Author: Aleksandr Kazantsev <ak@tvip.ru>
6 * Author: Alexey Shevelkin <ash@tvip.ru>
7 * Author: Vyacheslav Bocharov <adeep@lexina.in>
12 #include "meson-axg.dtsi"
13 #include <dt-bindings/input/input.h>
14 #include <dt-bindings/thermal/thermal.h>
17 compatible = "jethome,jethub-j100", "amlogic,a113d", "amlogic,meson-axg";
18 model = "JetHome JetHub J100";
20 serial0 = &uart_AO; /* Console */
21 serial1 = &uart_AO_B; /* External UART (Wireless Module) */
26 stdout-path = "serial0:115200n8";
31 device_type = "memory";
32 reg = <0x0 0x0 0x0 0x40000000>;
37 size = <0x0 0x400000>;
41 emmc_pwrseq: emmc-pwrseq {
42 compatible = "mmc-pwrseq-emmc";
43 reset-gpios = <&gpio BOOT_9 GPIO_ACTIVE_LOW>;
46 vcc_3v3: regulator-vcc_3v3 {
47 compatible = "regulator-fixed";
48 regulator-name = "VCC_3V3";
49 regulator-min-microvolt = <3300000>;
50 regulator-max-microvolt = <3300000>;
51 vin-supply = <&vddao_3v3>;
55 vcc_5v: regulator-vcc_5v {
56 compatible = "regulator-fixed";
57 regulator-name = "VCC5V";
58 regulator-min-microvolt = <5000000>;
59 regulator-max-microvolt = <5000000>;
63 vddao_3v3: regulator-vddao_3v3 {
64 compatible = "regulator-fixed";
65 regulator-name = "VDDAO_3V3";
66 regulator-min-microvolt = <3300000>;
67 regulator-max-microvolt = <3300000>;
68 vin-supply = <&vcc_5v>;
72 vddio_ao18: regulator-vddio_ao18 {
73 compatible = "regulator-fixed";
74 regulator-name = "VDDIO_AO18";
75 regulator-min-microvolt = <1800000>;
76 regulator-max-microvolt = <1800000>;
77 vin-supply = <&vddao_3v3>;
81 vddio_boot: regulator-vddio_boot {
82 compatible = "regulator-fixed";
83 regulator-name = "VDDIO_BOOT";
84 regulator-min-microvolt = <1800000>;
85 regulator-max-microvolt = <1800000>;
86 vin-supply = <&vddao_3v3>;
90 usb_pwr: regulator-usb_pwr {
91 compatible = "regulator-fixed";
92 regulator-name = "USB_PWR";
93 regulator-min-microvolt = <5000000>;
94 regulator-max-microvolt = <5000000>;
95 vin-supply = <&vcc_5v>;
99 sdio_pwrseq: sdio-pwrseq {
100 compatible = "mmc-pwrseq-simple";
101 reset-gpios = <&gpio GPIOX_7 GPIO_ACTIVE_LOW>;
103 clock-names = "ext_clock";
107 compatible = "pwm-clock";
109 clock-frequency = <32768>;
110 pwms = <&pwm_ab 0 30518 0>; /* PWM_A at 32.768KHz */
114 cpu_thermal: cpu-thermal {
115 polling-delay-passive = <250>;
116 polling-delay = <1000>;
117 thermal-sensors = <&scpi_sensors 0>;
119 cpu_passive: cpu-passive {
120 temperature = <70000>; /* millicelsius */
121 hysteresis = <2000>; /* millicelsius */
126 temperature = <80000>; /* millicelsius */
127 hysteresis = <2000>; /* millicelsius */
131 cpu_critical: cpu-critical {
132 temperature = <100000>; /* millicelsius */
133 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>;
158 compatible = "w1-gpio";
159 gpios = <&gpio GPIOA_14 GPIO_ACTIVE_HIGH>;
177 wifi_mac: wifi_mac@c {
188 pinctrl-0 = <ð_rmii_x_pins>;
189 pinctrl-names = "default";
190 phy-handle = <ð_phy0>;
194 compatible = "snps,dwmac-mdio";
195 #address-cells = <1>;
198 /* ICPlus IP101A/G Ethernet PHY (vendor_id=0x0243, model_id=0x0c54) */
199 eth_phy0: ethernet-phy@0 {
200 /* compatible = "ethernet-phy-id0243.0c54";*/
204 reset-assert-us = <10000>;
205 reset-deassert-us = <10000>;
206 reset-gpios = <&gpio GPIOZ_5 GPIO_ACTIVE_LOW>;
211 /* Internal I2C bus (on CPU module) */
214 pinctrl-0 = <&i2c1_z_pins>;
215 pinctrl-names = "default";
218 pcf8563: pcf8563@51 {
219 compatible = "nxp,pcf8563";
225 /* Peripheral I2C bus (on motherboard) */
228 pinctrl-0 = <&i2c_ao_sck_10_pins>, <&i2c_ao_sda_11_pins>;
229 pinctrl-names = "default";
234 pinctrl-0 = <&pwm_a_x20_pins>;
235 pinctrl-names = "default";
241 #address-cells = <1>;
244 pinctrl-0 = <&sdio_pins>;
245 pinctrl-1 = <&sdio_clk_gate_pins>;
246 pinctrl-names = "default", "clk-gate";
251 max-frequency = <200000000>;
255 mmc-pwrseq = <&sdio_pwrseq>;
257 vmmc-supply = <&vddao_3v3>;
258 vqmmc-supply = <&vddio_boot>;
262 compatible = "brcm,bcm4329-fmac";
269 pinctrl-0 = <&emmc_pins>, <&emmc_ds_pins>;
270 pinctrl-1 = <&emmc_clk_gate_pins>;
271 pinctrl-names = "default", "clk-gate";
275 max-frequency = <200000000>;
281 mmc-pwrseq = <&emmc_pwrseq>;
283 vmmc-supply = <&vcc_3v3>;
284 vqmmc-supply = <&vddio_boot>;
290 pinctrl-0 = <&uart_b_z_pins>, <&uart_b_z_cts_rts_pins>;
291 pinctrl-names = "default";
295 compatible = "brcm,bcm43438-bt";
296 shutdown-gpios = <&gpio GPIOZ_7 GPIO_ACTIVE_HIGH>;
303 pinctrl-0 = <&uart_ao_a_pins>;
304 pinctrl-names = "default";
307 /* UART Wireless module */
310 pinctrl-0 = <&uart_ao_b_pins>;
311 pinctrl-names = "default";
316 phy-supply = <&usb_pwr>;
321 pinctrl-0 = <&spi1_x_pins>, <&spi1_ss0_x_pins>;
322 pinctrl-names = "default";
327 "", "", "", "", "", // 0 - 4
328 "", "", "", "", "", // 5 - 9
329 "UserButton", "", "", "", "", // 10 - 14
330 "", "", "", "", "", // 15 - 19
331 "", "", "", "", "", // 20 - 24
332 "", "LedRed", "LedGreen", "Output3", "Output2", // 25 - 29
333 "Output1", "", "", "", "", // 30 - 34
334 "", "ZigBeeBOOT", "", "", "", // 35 - 39
335 "", "ZigBeeRESET", "", "Input4", "Input3", // 40 - 44
336 "Input2", "Input1", "", "", "", // 45 - 49
337 "", "", "", "", "", // 50 - 54
338 "", "", "", "", "", // 55 - 59
339 "", "", "", "", "", // 60 - 64
340 "", "", "", "", "", // 65 - 69
341 "", "", "", "", "", // 70 - 74
342 "", "", "", "", "", // 75 - 79
343 "", "", "", "", "", // 80 - 84
348 #cooling-cells = <2>;
352 #cooling-cells = <2>;
356 #cooling-cells = <2>;
360 #cooling-cells = <2>;