1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright (c) 2021, Dirk Buchwalder <buchwalder@posteo.de> */
6 #include "ipq8074-512m.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>
13 model = "Edimax CAX1800";
14 compatible = "edimax,cax1800", "qcom,ipq8074";
17 serial0 = &blsp1_uart5;
18 led-boot = &led_system_red;
19 led-failsafe = &led_system_red;
20 led-running = &led_system_green;
21 led-upgrade = &led_system_red;
22 /* Aliases as required by u-boot to patch MAC addresses */
24 label-mac-device = &dp5;
28 stdout-path = "serial0:115200n8";
29 bootargs-append = " root=/dev/ubiblock0_1";
33 compatible = "gpio-keys";
37 gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
38 linux,code = <KEY_RESTART>;
43 compatible = "gpio-leds";
45 led_system_red: system-red {
47 gpios = <&tlmm 25 GPIO_ACTIVE_HIGH>;
50 led_system_green: system-green {
51 label = "green:system";
52 gpios = <&tlmm 26 GPIO_ACTIVE_HIGH>;
55 led_system_blue: system-blue {
56 label = "blue:system";
57 gpios = <&tlmm 27 GPIO_ACTIVE_HIGH>;
63 mdio_pins: mdio-pins {
105 nand-ecc-strength = <4>;
106 nand-ecc-step-size = <512>;
107 nand-bus-width = <8>;
110 compatible = "fixed-partitions";
111 #address-cells = <1>;
116 reg = <0x0000000 0x3400000>;
123 pinctrl-0 = <&spi_0_pins>;
124 pinctrl-names = "default";
129 #address-cells = <1>;
132 compatible = "jedec,spi-nor";
133 spi-max-frequency = <50000000>;
137 compatible = "fixed-partitions";
138 #address-cells = <1>;
149 reg = <0x50000 0x10000>;
154 label = "0:bootconfig";
155 reg = <0x60000 0x20000>;
160 label = "0:bootconfig1";
161 reg = <0x80000 0x20000>;
167 reg = <0xa0000 0x180000>;
173 reg = <0x220000 0x180000>;
179 reg = <0x3a0000 0x10000>;
184 label = "0:devcfg_1";
185 reg = <0x3b0000 0x10000>;
191 reg = <0x3c0000 0x10000>;
197 reg = <0x3d0000 0x10000>;
203 reg = <0x3e0000 0x40000>;
209 reg = <0x420000 0x40000>;
215 reg = <0x460000 0x10000>;
221 reg = <0x470000 0x10000>;
226 label = "0:appsblenv";
227 reg = <0x480000 0x10000>;
232 reg = <0x490000 0xa0000>;
237 label = "0:appsbl_1";
238 reg = <0x530000 0xa0000>;
244 reg = <0x5d0000 0x40000>;
249 label = "0:ethphyfw";
250 reg = <0x610000 0x80000>;
260 pinctrl-0 = <&mdio_pins>;
261 pinctrl-names = "default";
263 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
265 qca8075: ethernet-phy@4 {
266 compatible = "ethernet-phy-ieee802.3-c22";
274 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
275 switch_wan_bmp = <ESS_PORT5>; /* wan port bitmap */
276 switch_mac_mode = <0x0>; /* mac mode for uniphy instance0*/
277 switch_mac_mode1 = <0xff>; /* mac mode for uniphy instance1*/
278 switch_mac_mode2 = <0xff>; /* mac mode for uniphy instance2*/
279 bm_tick_mode = <0>; /* bm tick mode */
280 tm_tick_mode = <0>; /* tm tick mode */
312 phy-handle = <&qca8075>;
319 qcom,ath11k-calibration-variant = "Edimax-CAX1800";
320 qcom,ath11k-fw-memory-mode = <1>;