1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2022, Matthew Hagan <mnhagan88@gmail.com> */
6 #include "ipq8074.dtsi"
7 #include "ipq8074-ac-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 = "Edgecore EAP102";
15 compatible = "edgecore,eap102", "qcom,ipq8074";
18 serial0 = &blsp1_uart5;
19 serial1 = &blsp1_uart3;
20 led-boot = &led_system_green;
21 led-failsafe = &led_system_green;
22 led-running = &led_system_green;
23 led-upgrade = &led_system_green;
24 /* Aliases as required by u-boot to patch MAC addresses */
27 label-mac-device = &dp5;
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 66 GPIO_ACTIVE_LOW>;
43 linux,code = <KEY_RESTART>;
48 compatible = "gpio-leds";
51 label = "green:wanpoe";
52 gpios = <&tlmm 46 GPIO_ACTIVE_HIGH>;
56 label = "green:wlan2g";
57 gpio = <&tlmm 47 GPIO_ACTIVE_HIGH>;
58 linux,default-trigger = "phy1radio";
62 label = "green:wlan5g";
63 gpio = <&tlmm 48 GPIO_ACTIVE_HIGH>;
64 linux,default-trigger = "phy0radio";
67 led_system_green: led_system {
68 function = LED_FUNCTION_POWER;
69 color = <LED_COLOR_ID_GREEN>;
70 gpios = <&tlmm 50 GPIO_ACTIVE_HIGH>;
76 mdio_pins: mdio-pins {
92 button_pins: button_pins {
106 #address-cells = <1>;
109 compatible = "jedec,spi-nor";
110 spi-max-frequency = <50000000>;
113 compatible = "fixed-partitions";
114 #address-cells = <1>;
125 reg = <0x50000 0x10000>;
130 label = "0:bootconfig";
131 reg = <0x60000 0x20000>;
136 label = "0:bootconfig1";
137 reg = <0x80000 0x20000>;
143 reg = <0xa0000 0x180000>;
149 reg = <0x220000 0x180000>;
155 reg = <0x3a0000 0x10000>;
160 label = "0:devcfg_1";
161 reg = <0x3b0000 0x10000>;
167 reg = <0x3c0000 0x10000>;
173 reg = <0x3d0000 0x10000>;
179 reg = <0x3e0000 0x40000>;
185 reg = <0x420000 0x40000>;
191 reg = <0x460000 0x10000>;
197 reg = <0x470000 0x10000>;
202 label = "0:appsblenv";
203 reg = <0x480000 0x10000>;
208 reg = <0x490000 0xc0000>;
213 label = "0:appsbl_1";
214 reg = <0x530000 0xc0000>;
220 reg = <0x610000 0x40000>;
225 label = "0:ethphyfw";
226 reg = <0x650000 0x80000>;
231 label = "0:product_info";
232 reg = <0x6d0000 0x80000>;
237 label = "priv_data1";
238 reg = <0x750000 0x10000>;
243 label = "priv_data2";
244 reg = <0x760000 0x10000>;
292 nand-ecc-strength = <8>;
293 nand-ecc-step-size = <512>;
294 nand-bus-width = <8>;
297 compatible = "fixed-partitions";
298 #address-cells = <1>;
303 reg = <0x0000000 0x3400000>;
308 reg = <0x3400000 0x800000>;
314 reg = <0x3c00000 0x3400000>;
318 label = "0:wififw_1";
319 reg = <0x7000000 0x800000>;
329 pinctrl-0 = <&mdio_pins>;
330 pinctrl-names = "default";
332 qca8081_24: ethernet-phy@24 {
333 compatible = "ethernet-phy-id004d.d101";
335 reset-deassert-us = <10000>;
336 reset-gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
339 qca8081_28: ethernet-phy@28 {
340 compatible = "ethernet-phy-id004d.d101";
342 reset-deassert-us = <10000>;
343 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
350 switch_lan_bmp = <ESS_PORT5>; /* lan port bitmap */
351 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
352 switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance1*/
353 switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance2*/
359 port_mac_sel = "QGMAC_PORT";
364 port_mac_sel = "QGMAC_PORT";
375 phy-handle = <&qca8081_24>;
381 phy-handle = <&qca8081_28>;
388 qcom,ath11k-calibration-variant = "Edgecore-EAP102";