1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /* Copyright 2023 Nokia */
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 = "Compex WPQ873";
15 compatible = "compex,wpq873", "qcom,ipq8074";
18 serial0 = &blsp1_uart5;
19 led-boot = &led_power_blue;
20 led-failsafe = &led_power_red;
21 led-running = &led_system_green;
22 led-upgrade = &led_system_blue;
23 /* Aliases as required by u-boot to patch MAC addresses */
28 label-mac-device = &dp6;
32 stdout-path = "serial0:115200n8";
33 bootargs-append = " root=/dev/ubiblock0_1";
37 compatible = "gpio-keys";
41 gpios = <&tlmm 21 GPIO_ACTIVE_LOW>;
42 linux,code = <KEY_RESTART>;
47 compatible = "gpio-leds";
49 led_power_red: power-red {
51 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
52 color = <LED_COLOR_ID_RED>;
55 led_power_blue: power-blue {
57 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
58 color = <LED_COLOR_ID_BLUE>;
61 led_system_red: system-red {
63 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
64 color = <LED_COLOR_ID_RED>;
67 led_system_green: system-green {
68 label = "green:system";
69 gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
70 color = <LED_COLOR_ID_GREEN>;
73 led_system_blue: system-blue {
74 label = "blue:system";
75 gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
76 color = <LED_COLOR_ID_BLUE>;
82 mdio_pins: mdio-pins {
99 pins = "gpio0", "gpio2";
100 function = "blsp5_i2c";
101 drive-strength = <8>;
113 pinctrl-0 = <&i2c_pins>;
114 pinctrl-names = "default";
138 mdio_pins: mdio-pins {
142 drive-strength = <8>;
149 drive-strength = <8>;
154 button_pins: button_pins {
158 drive-strength = <8>;
168 #address-cells = <1>;
171 compatible = "jedec,spi-nor";
172 spi-max-frequency = <50000000>;
175 compatible = "fixed-partitions";
176 #address-cells = <1>;
187 reg = <0x50000 0x10000>;
192 label = "0:bootconfig";
193 reg = <0x60000 0x20000>;
198 label = "0:bootconfig1";
199 reg = <0x80000 0x20000>;
205 reg = <0xa0000 0x180000>;
211 reg = <0x220000 0x180000>;
217 reg = <0x3a0000 0x10000>;
222 label = "0:devcfg_1";
223 reg = <0x3b0000 0x10000>;
229 reg = <0x3c0000 0x10000>;
235 reg = <0x3d0000 0x10000>;
241 reg = <0x3e0000 0x40000>;
247 reg = <0x420000 0x40000>;
253 reg = <0x460000 0x10000>;
259 reg = <0x470000 0x10000>;
264 label = "0:appsblenv";
265 reg = <0x480000 0x10000>;
270 reg = <0x490000 0xa0000>;
275 label = "0:appsbl_1";
276 reg = <0x530000 0xa0000>;
282 reg = <0x5d0000 0x40000>;
287 label = "0:ethphyfw";
288 reg = <0x610000 0x80000>;
300 nand-ecc-strength = <8>;
301 nand-ecc-step-size = <512>;
302 nand-bus-width = <8>;
305 compatible = "fixed-partitions";
306 #address-cells = <1>;
311 reg = <0x0000000 0x3400000>;
316 reg = <0x3400000 0x800000>;
322 reg = <0x3c00000 0x3400000>;
326 label = "0:wififw_1";
327 reg = <0x7000000 0x800000>;
361 pinctrl-0 = <&mdio_pins>;
362 pinctrl-names = "default";
363 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
365 qca8075_1: ethernet-phy@1 {
366 compatible = "ethernet-phy-ieee802.3-c22";
370 qca8075_2: ethernet-phy@2 {
371 compatible = "ethernet-phy-ieee802.3-c22";
375 qca8075_3: ethernet-phy@3 {
376 compatible = "ethernet-phy-ieee802.3-c22";
380 qca8081: ethernet-phy@28 {
381 compatible = "ethernet-phy-ieee802.3-c22";
383 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
391 switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
392 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
393 switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
394 switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance1*/
395 switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance2*/
396 bm_tick_mode = <0>; /* bm tick mode */
397 tm_tick_mode = <0>; /* tm tick mode */
415 port_mac_sel = "QGMAC_PORT";
426 phy-handle = <&qca8075_1>;
432 phy-handle = <&qca8075_2>;
438 phy-handle = <&qca8075_3>;
444 phy-handle = <&qca8081>;
455 perst-gpio = <&tlmm 58 GPIO_ACTIVE_LOW>;
458 reg = <0x00020000 0 0 0 0>;
459 #address-cells = <3>;
472 perst-gpio = <&tlmm 62 GPIO_ACTIVE_HIGH>;
475 reg = <0x00010000 0 0 0 0>;
476 #address-cells = <3>;
485 qcom,ath11k-calibration-variant = "Compex-WPQ873";