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 {
50 gpios = <&tlmm 42 GPIO_ACTIVE_HIGH>;
51 color = <LED_COLOR_ID_RED>;
54 led_power_blue: power-blue {
55 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
56 color = <LED_COLOR_ID_BLUE>;
59 led_system_red: system-red {
60 gpios = <&tlmm 28 GPIO_ACTIVE_HIGH>;
61 color = <LED_COLOR_ID_RED>;
64 led_system_green: system-green {
65 gpios = <&tlmm 18 GPIO_ACTIVE_HIGH>;
66 color = <LED_COLOR_ID_GREEN>;
69 led_system_blue: system-blue {
70 gpios = <&tlmm 19 GPIO_ACTIVE_HIGH>;
71 color = <LED_COLOR_ID_BLUE>;
77 mdio_pins: mdio-pins {
94 pins = "gpio0", "gpio2";
95 function = "blsp5_i2c";
108 pinctrl-0 = <&i2c_pins>;
109 pinctrl-names = "default";
133 mdio_pins: mdio-pins {
137 drive-strength = <8>;
144 drive-strength = <8>;
149 button_pins: button_pins {
153 drive-strength = <8>;
163 #address-cells = <1>;
166 compatible = "jedec,spi-nor";
167 spi-max-frequency = <50000000>;
170 compatible = "fixed-partitions";
171 #address-cells = <1>;
182 reg = <0x50000 0x10000>;
187 label = "0:bootconfig";
188 reg = <0x60000 0x20000>;
193 label = "0:bootconfig1";
194 reg = <0x80000 0x20000>;
200 reg = <0xa0000 0x180000>;
206 reg = <0x220000 0x180000>;
212 reg = <0x3a0000 0x10000>;
217 label = "0:devcfg_1";
218 reg = <0x3b0000 0x10000>;
224 reg = <0x3c0000 0x10000>;
230 reg = <0x3d0000 0x10000>;
236 reg = <0x3e0000 0x40000>;
242 reg = <0x420000 0x40000>;
248 reg = <0x460000 0x10000>;
254 reg = <0x470000 0x10000>;
259 label = "0:appsblenv";
260 reg = <0x480000 0x10000>;
265 reg = <0x490000 0xa0000>;
270 label = "0:appsbl_1";
271 reg = <0x530000 0xa0000>;
277 reg = <0x5d0000 0x40000>;
282 label = "0:ethphyfw";
283 reg = <0x610000 0x80000>;
295 nand-ecc-strength = <8>;
296 nand-ecc-step-size = <512>;
297 nand-bus-width = <8>;
300 compatible = "fixed-partitions";
301 #address-cells = <1>;
306 reg = <0x0000000 0x3400000>;
311 reg = <0x3400000 0x800000>;
317 reg = <0x3c00000 0x3400000>;
321 label = "0:wififw_1";
322 reg = <0x7000000 0x800000>;
356 pinctrl-0 = <&mdio_pins>;
357 pinctrl-names = "default";
358 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>;
360 qca8075_1: ethernet-phy@1 {
361 compatible = "ethernet-phy-ieee802.3-c22";
365 qca8075_2: ethernet-phy@2 {
366 compatible = "ethernet-phy-ieee802.3-c22";
370 qca8075_3: ethernet-phy@3 {
371 compatible = "ethernet-phy-ieee802.3-c22";
375 qca8081: ethernet-phy@28 {
376 compatible = "ethernet-phy-ieee802.3-c22";
378 reset-gpios = <&tlmm 44 GPIO_ACTIVE_LOW>;
386 switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4)>; /* lan port bitmap */
387 switch_wan_bmp = <ESS_PORT6>; /* wan port bitmap */
388 switch_mac_mode = <MAC_MODE_PSGMII>; /* mac mode for uniphy instance0*/
389 switch_mac_mode1 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance1*/
390 switch_mac_mode2 = <MAC_MODE_SGMII_CHANNEL0>; /* mac mode for uniphy instance2*/
408 port_mac_sel = "QGMAC_PORT";
419 phy-handle = <&qca8075_1>;
425 phy-handle = <&qca8075_2>;
431 phy-handle = <&qca8075_3>;
437 phy-handle = <&qca8081>;
448 perst-gpio = <&tlmm 58 GPIO_ACTIVE_LOW>;
451 reg = <0x00020000 0 0 0 0>;
452 #address-cells = <3>;
465 perst-gpio = <&tlmm 62 GPIO_ACTIVE_HIGH>;
468 reg = <0x00010000 0 0 0 0>;
469 #address-cells = <3>;
478 qcom,ath11k-calibration-variant = "Compex-WPQ873";