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>
11 #include <dt-bindings/leds/common.h>
14 model = "Arcadyan AW1000";
15 compatible = "arcadyan,aw1000", "qcom,ipq8074";
18 led-boot = &led_power;
19 led-failsafe = &led_power;
20 led-running = &led_power;
21 led-upgrade = &led_power;
22 serial0 = &blsp1_uart5;
24 * Aliases as required by u-boot
25 * to patch MAC addresses
32 label-mac-device = &dp1;
36 stdout-path = "serial0:115200n8";
37 bootargs-append = " root=/dev/ubiblock0_1";
41 compatible = "gpio-export";
44 gpio-export,name = "lte_pwrkey";
45 gpio-export,output = <1>;
46 gpios = <&tlmm 54 GPIO_ACTIVE_HIGH>;
50 gpio-export,name = "lte_power";
51 gpio-export,output = <1>;
52 gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
56 gpio-export,name = "lte_reset";
57 gpio-export,output = <1>;
58 gpios = <&tlmm 63 GPIO_ACTIVE_HIGH>;
62 gpio-export,name = "usb_vbus";
63 gpio-export,output = <0>;
64 gpios = <&tlmm 9 GPIO_ACTIVE_LOW>;
69 compatible = "gpio-keys";
73 linux,code = <KEY_WLAN>;
74 gpios = <&tlmm 2 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_WPS_BUTTON>;
80 gpios = <&tlmm 62 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_RESTART>;
86 gpios = <&tlmm 67 GPIO_ACTIVE_LOW>;
91 compatible = "spi-gpio";
95 sck-gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
96 mosi-gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
98 led_gpio: led-gpio@0 {
99 compatible = "fairchild,74hc595";
103 registers-number = <2>;
104 spi-max-frequency = <1000000>;
105 enable-gpios = <&tlmm 20 GPIO_ACTIVE_HIGH>;
110 compatible = "gpio-leds";
113 function = LED_FUNCTION_POWER;
114 color = <LED_COLOR_ID_GREEN>;
115 gpios = <&led_gpio 0 GPIO_ACTIVE_HIGH>;
119 label = "green:wifi";
120 gpios = <&led_gpio 1 GPIO_ACTIVE_HIGH>;
124 label = "green:internet";
125 gpios = <&led_gpio 2 GPIO_ACTIVE_HIGH>;
130 gpios = <&led_gpio 3 GPIO_ACTIVE_LOW>;
135 gpios = <&led_gpio 4 GPIO_ACTIVE_LOW>;
140 gpios = <&led_gpio 5 GPIO_ACTIVE_LOW>;
144 label = "red:signal";
145 gpios = <&led_gpio 6 GPIO_ACTIVE_LOW>;
149 label = "green:signal";
150 gpios = <&led_gpio 8 GPIO_ACTIVE_LOW>;
154 label = "blue:signal";
155 gpios = <&led_gpio 9 GPIO_ACTIVE_LOW>;
159 label = "green:phone";
160 gpios = <&led_gpio 11 GPIO_ACTIVE_HIGH>;
166 mdio_pins: mdio-pins {
170 drive-strength = <8>;
177 drive-strength = <8>;
208 nand-ecc-strength = <8>;
209 nand-ecc-step-size = <512>;
210 nand-bus-width = <8>;
213 compatible = "qcom,smem-part";
245 pinctrl-0 = <&mdio_pins>;
246 pinctrl-names = "default";
247 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
249 ethernet-phy-package@0 {
250 compatible = "qcom,qca8075-package";
251 #address-cells = <1>;
255 qcom,package-mode = "qsgmii";
257 qca8075_0: ethernet-phy@0 {
258 compatible = "ethernet-phy-ieee802.3-c22";
262 qca8075_1: ethernet-phy@1 {
263 compatible = "ethernet-phy-ieee802.3-c22";
267 qca8075_2: ethernet-phy@2 {
268 compatible = "ethernet-phy-ieee802.3-c22";
272 qca8075_3: ethernet-phy@3 {
273 compatible = "ethernet-phy-ieee802.3-c22";
278 qca8081: ethernet-phy@28 {
279 compatible = "ethernet-phy-id004d.d101";
281 reset-deassert-us = <10000>;
282 reset-gpios = <&tlmm 64 GPIO_ACTIVE_LOW>;
289 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
290 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
291 switch_mac_mode = <MAC_MODE_QSGMII>; /* mac mode for uniphy instance0*/
292 switch_mac_mode2 = <MAC_MODE_SGMII_PLUS>; /* mac mode for uniphy instance2*/
314 port_mac_sel = "QGMAC_PORT";
326 phy-handle = <&qca8075_0>;
333 phy-handle = <&qca8075_1>;
340 phy-handle = <&qca8075_2>;
347 phy-handle = <&qca8075_3>;
353 phy-handle = <&qca8081>;
360 qcom,ath11k-calibration-variant = "Arcadyan-AW1000";