1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2023, Chukun Pan <amadeus@jmu.edu.cn> */
6 #include "ipq8074.dtsi"
7 #include "ipq8074-hk-cpu.dtsi"
8 #include "ipq8074-ess.dtsi"
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
13 model = "Arcadyan AW1000";
14 compatible = "arcadyan,aw1000", "qcom,ipq8074";
17 led-boot = &led_power;
18 led-failsafe = &led_power;
19 led-running = &led_power;
20 led-upgrade = &led_power;
21 serial0 = &blsp1_uart5;
23 * Aliases as required by u-boot
24 * to patch MAC addresses
31 label-mac-device = &dp1;
35 stdout-path = "serial0:115200n8";
36 bootargs-append = " root=/dev/ubiblock0_1";
40 compatible = "gpio-export";
43 gpio-export,name = "lte_pwrkey";
44 gpio-export,output = <1>;
45 gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
49 gpio-export,name = "lte_power";
50 gpio-export,output = <1>;
51 gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
55 gpio-export,name = "lte_reset";
56 gpio-export,output = <1>;
57 gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
61 gpio-export,name = "usb_vbus";
62 gpio-export,output = <0>;
63 gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
68 compatible = "gpio-keys";
72 linux,code = <KEY_WLAN>;
73 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
78 linux,code = <KEY_WPS_BUTTON>;
79 gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
84 linux,code = <KEY_RESTART>;
85 gpios = <&tlmm 67 GPIO_ACTIVE_LOW>;
90 compatible = "spi-gpio";
94 sck-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
95 mosi-gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
97 led_gpio: led-gpio@0 {
98 compatible = "fairchild,74hc595";
102 registers-number = <2>;
103 spi-max-frequency = <1000000>;
104 enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
109 compatible = "gpio-leds";
112 label = "green:power";
113 gpios = <&led_gpio 0 GPIO_ACTIVE_HIGH>;
117 label = "green:wifi";
118 gpios = <&led_gpio 1 GPIO_ACTIVE_HIGH>;
122 label = "green:internet";
123 gpios = <&led_gpio 2 GPIO_ACTIVE_HIGH>;
128 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
133 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
138 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
142 label = "red:signal";
143 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
147 label = "green:signal";
148 gpios = <&led_gpio 8 GPIO_ACTIVE_LOW>;
152 label = "blue:signal";
153 gpios = <&led_gpio 9 GPIO_ACTIVE_LOW>;
157 label = "green:phone";
158 gpios = <&led_gpio 11 GPIO_ACTIVE_HIGH>;
164 mdio_pins: mdio-pins {
168 drive-strength = <8>;
175 drive-strength = <8>;
206 nand-ecc-strength = <8>;
207 nand-ecc-step-size = <512>;
208 nand-bus-width = <8>;
211 compatible = "qcom,smem-part";
243 pinctrl-0 = <&mdio_pins>;
244 pinctrl-names = "default";
245 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
247 qca8075_0: ethernet-phy@0 {
248 compatible = "ethernet-phy-ieee802.3-c22";
252 qca8075_1: ethernet-phy@1 {
253 compatible = "ethernet-phy-ieee802.3-c22";
257 qca8075_2: ethernet-phy@2 {
258 compatible = "ethernet-phy-ieee802.3-c22";
262 qca8075_3: ethernet-phy@3 {
263 compatible = "ethernet-phy-ieee802.3-c22";
267 qca8081: ethernet-phy@28 {
268 compatible = "ethernet-phy-id004d.d101";
270 reset-deassert-us = <10000>;
271 reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
278 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
279 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
280 switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
281 switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
303 port_mac_sel = "QGMAC_PORT";
314 phy-handle = <&qca8075_0>;
320 phy-handle = <&qca8075_1>;
326 phy-handle = <&qca8075_2>;
332 phy-handle = <&qca8075_3>;
338 phy-handle = <&qca8081>;
345 qcom,ath11k-calibration-variant = "Arcadyan-AW1000";