1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
5 #include "ipq8074.dtsi"
6 #include "ipq8074-hk-cpu.dtsi"
7 #include "ipq8074-ess.dtsi"
8 #include <dt-bindings/gpio/gpio.h>
9 #include <dt-bindings/input/input.h>
10 #include <dt-bindings/leds/common.h>
13 model = "Zbtlink ZBT-Z800AX";
14 compatible = "zbtlink,zbt-z800ax", "qcom,ipq8074";
18 led-failsafe = &led_net;
19 led-upgrade = &led_net;
20 serial0 = &blsp1_uart5;
22 * Aliases as required by u-boot
23 * to patch MAC addresses
30 label-mac-device = &dp1;
34 stdout-path = "serial0:115200n8";
35 bootargs-append = " root=/dev/ubiblock0_1";
39 compatible = "gpio-export";
42 gpio-export,name = "lte_power";
43 gpio-export,output = <1>;
44 gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
49 compatible = "gpio-keys";
50 pinctrl-0 = <&button_pins>;
51 pinctrl-names = "default";
55 linux,code = <KEY_RESTART>;
56 gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
61 linux,code = <KEY_WPS_BUTTON>;
62 gpios = <&tlmm 46 GPIO_ACTIVE_LOW>;
67 compatible = "gpio-leds";
70 color = <LED_COLOR_ID_GREEN>;
71 function = LED_FUNCTION_WAN_ONLINE;
72 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
76 color = <LED_COLOR_ID_GREEN>;
77 function = LED_FUNCTION_MOBILE;
78 gpios = <&tlmm 30 GPIO_ACTIVE_HIGH>;
82 color = <LED_COLOR_ID_GREEN>;
83 function = LED_FUNCTION_WLAN_2GHZ;
84 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
85 linux,default-trigger = "phy1radio";
89 color = <LED_COLOR_ID_GREEN>;
90 function = LED_FUNCTION_WLAN_5GHZ;
91 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
92 linux,default-trigger = "phy0radio";
98 button_pins: button-pins {
100 pins = "gpio34", "gpio46";
102 drive-strength = <8>;
107 mdio_pins: mdio-pins {
111 drive-strength = <8>;
118 drive-strength = <8>;
125 pinctrl-0 = <&spi_0_pins>;
126 pinctrl-names = "default";
131 compatible = "jedec,spi-nor";
132 #address-cells = <1>;
135 spi-max-frequency = <50000000>;
138 compatible = "fixed-partitions";
139 #address-cells = <1>;
150 reg = <0x50000 0x10000>;
155 label = "0:bootconfig";
156 reg = <0x60000 0x20000>;
161 label = "0:bootconfig1";
162 reg = <0x80000 0x20000>;
168 reg = <0xa0000 0x180000>;
174 reg = <0x220000 0x180000>;
180 reg = <0x3a0000 0x10000>;
185 label = "0:devcfg_1";
186 reg = <0x3b0000 0x10000>;
192 reg = <0x3c0000 0x10000>;
198 reg = <0x3d0000 0x10000>;
204 reg = <0x3e0000 0x40000>;
210 reg = <0x420000 0x40000>;
216 reg = <0x460000 0x10000>;
222 reg = <0x470000 0x10000>;
227 label = "0:appsblenv";
228 reg = <0x480000 0x10000>;
233 reg = <0x490000 0xa0000>;
238 label = "0:appsbl_1";
239 reg = <0x530000 0xa0000>;
245 reg = <0x5d0000 0x40000>;
250 label = "0:ethphyfw";
251 reg = <0x610000 0x80000>;
287 nand-ecc-strength = <8>;
288 nand-ecc-step-size = <512>;
289 nand-bus-width = <8>;
292 compatible = "fixed-partitions";
293 #address-cells = <1>;
298 reg = <0x0000000 0x3400000>;
303 reg = <0x3400000 0x0800000>;
309 reg = <0x3c00000 0x3400000>;
313 label = "0:wififw_1";
314 reg = <0x7000000 0x0800000>;
348 pinctrl-0 = <&mdio_pins>;
349 pinctrl-names = "default";
350 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
352 ethernet-phy-package@0 {
353 compatible = "qcom,qca8075-package";
354 #address-cells = <1>;
358 qca8075_0: ethernet-phy@0 {
359 compatible = "ethernet-phy-ieee802.3-c22";
363 qca8075_1: ethernet-phy@1 {
364 compatible = "ethernet-phy-ieee802.3-c22";
368 qca8075_2: ethernet-phy@2 {
369 compatible = "ethernet-phy-ieee802.3-c22";
373 qca8075_3: ethernet-phy@3 {
374 compatible = "ethernet-phy-ieee802.3-c22";
378 qca8075_4: ethernet-phy@4 {
379 compatible = "ethernet-phy-ieee802.3-c22";
388 switch_lan_bmp = <(ESS_PORT1 | ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>;
389 switch_wan_bmp = <ESS_PORT5>;
390 switch_mac_mode = <MAC_MODE_PSGMII>;
422 phy-handle = <&qca8075_0>;
428 phy-handle = <&qca8075_1>;
434 phy-handle = <&qca8075_2>;
440 phy-handle = <&qca8075_3>;
446 phy-handle = <&qca8075_4>;
453 qcom,ath11k-calibration-variant = "ZBT-Z800AX";