1 // SPDX-License-Identifier: MIT, GPL-2.0 or later
2 /* Copyright (c) 2023, Ruslan Isaev <legale.legale@gmail.com> */
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 = "Yuncore AX880";
15 compatible = "yuncore,ax880", "qcom,ipq8074", "qcom,ipq8074-hk09";
18 serial0 = &blsp1_uart5;
19 serial1 = &blsp1_uart3;
20 led-boot = &led_system;
21 led-failsafe = &led_system;
22 led-running = &led_system;
23 led-upgrade = &led_system;
24 /* Aliases as required by u-boot to patch MAC addresses */
27 label-mac-device = &dp5_syn;
31 stdout-path = "serial0:115200n8";
32 bootargs-append = " root=/dev/ubiblock0_1";
36 compatible = "gpio-keys";
37 pinctrl-0 = <&button_pins>;
38 pinctrl-names = "default";
42 gpios = <&tlmm 57 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
48 compatible = "gpio-leds";
53 gpios = <&tlmm 0 GPIO_ACTIVE_HIGH>;
59 linux,default-trigger = "phy0tpt";
60 gpios = <&tlmm 2 GPIO_ACTIVE_HIGH>;
66 linux,default-trigger = "phy1tpt";
67 gpios = <&tlmm 9 GPIO_ACTIVE_HIGH>;
73 mdio_pins: mdio-pins {
89 button_pins: button_pins {
103 #address-cells = <1>;
106 compatible = "jedec,spi-nor";
107 spi-max-frequency = <50000000>;
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
122 reg = <0x50000 0x10000>;
127 label = "0:bootconfig";
128 reg = <0x60000 0x20000>;
133 label = "0:bootconfig1";
134 reg = <0x80000 0x20000>;
140 reg = <0xa0000 0x180000>;
146 reg = <0x220000 0x180000>;
152 reg = <0x3a0000 0x10000>;
157 label = "0:devcfg_1";
158 reg = <0x3b0000 0x10000>;
164 reg = <0x3c0000 0x10000>;
170 reg = <0x3d0000 0x10000>;
176 reg = <0x3e0000 0x40000>;
182 reg = <0x420000 0x40000>;
188 reg = <0x460000 0x10000>;
194 reg = <0x470000 0x10000>;
199 label = "0:appsblenv";
200 reg = <0x480000 0x10000>;
204 label = "0:appsbl_1";
205 reg = <0x490000 0xa0000>;
211 reg = <0x530000 0xa0000>;
217 reg = <0x5d0000 0x40000>;
222 label = "0:ethphyfw";
223 reg = <0x610000 0x80000>;
273 nand-ecc-strength = <4>;
274 nand-ecc-step-size = <512>;
275 nand-bus-width = <8>;
278 compatible = "fixed-partitions";
279 #address-cells = <1>;
284 reg = <0x0000000 0x3400000>;
289 reg = <0x3400000 0x800000>;
293 rootfs: partition@3c00000 {
295 reg = <0x3c00000 0x3400000>;
299 label = "0:wififw_1";
300 reg = <0x7000000 0x800000>;
310 pinctrl-0 = <&mdio_pins>;
311 pinctrl-names = "default";
313 qca8081_24: ethernet-phy@24 {
314 compatible = "ethernet-phy-id004d.d101";
316 reset-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
319 #address-cells = <1>;
324 color = <LED_COLOR_ID_GREEN>;
325 function = LED_FUNCTION_WAN;
326 default-state = "keep";
331 qca8081_28: ethernet-phy@28 {
332 compatible = "ethernet-phy-id004d.d101";
334 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
337 #address-cells = <1>;
342 color = <LED_COLOR_ID_GREEN>;
343 function = LED_FUNCTION_LAN;
344 default-state = "keep";
353 switch_lan_bmp = <ESS_PORT6>; /* lan port bitmap */
354 switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
355 switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance1*/
356 switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance2*/
362 port_mac_sel = "QGMAC_PORT";
367 port_mac_sel = "QGMAC_PORT";
378 phy-handle = <&qca8081_24>;
384 phy-handle = <&qca8081_28>;
390 qcom,ath11k-calibration-variant = "Yuncore-AX880";