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/leds/common.h>
10 #include <dt-bindings/input/input.h>
13 model = "Buffalo WXR-5950AX12";
14 compatible = "buffalo,wxr-5950ax12", "qcom,ipq8074";
17 serial0 = &blsp1_uart5;
18 led-boot = &led_power_white;
19 led-failsafe = &led_power_red;
20 led-running = &led_power_white;
21 led-upgrade = &led_power_white;
22 label-mac-device = &dp5_syn;
26 stdout-path = "serial0:115200n8";
27 bootargs-append = " ubi.mtd=user_property root=/dev/ubiblock1_0";
31 compatible = "gpio-leds";
34 gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
35 color = <LED_COLOR_ID_WHITE>;
40 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
41 color = <LED_COLOR_ID_RED>;
45 led_power_red: led-2 {
46 gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
47 color = <LED_COLOR_ID_RED>;
48 function = LED_FUNCTION_POWER;
51 led_power_white: led-3 {
52 gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
53 color = <LED_COLOR_ID_WHITE>;
54 function = LED_FUNCTION_POWER;
58 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
59 color = <LED_COLOR_ID_WHITE>;
60 function = "internet";
64 gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
65 color = <LED_COLOR_ID_RED>;
66 function = "internet";
70 gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
71 color = <LED_COLOR_ID_RED>;
72 function = LED_FUNCTION_WLAN;
76 gpios = <&tlmm 56 GPIO_ACTIVE_HIGH>;
77 color = <LED_COLOR_ID_WHITE>;
78 function = LED_FUNCTION_WLAN;
83 compatible = "gpio-keys";
86 * mode: 3x position switch
90 * - WB (Wireless Bridge)
94 gpios = <&tlmm 29 GPIO_ACTIVE_LOW>;
100 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
101 linux,code = <BTN_1>;
105 * op: 2x position switch
108 * - MANUAL (select Router/AP/WB manually)
112 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
113 linux,code = <BTN_2>;
118 gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
119 linux,code = <KEY_WPS_BUTTON>;
124 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
125 linux,code = <KEY_RESTART>;
129 reg_usb_vbus: regulator-5v-vbus {
130 compatible = "regulator-fixed";
131 regulator-name = "vbus";
132 regulator-min-microvolt = <5000000>;
133 regulator-max-microvolt = <5000000>;
134 gpio = <&tlmm 64 GPIO_ACTIVE_HIGH>;
141 mdio_pins: mdio-pins {
145 drive-strength = <8>;
152 drive-strength = <8>;
183 nand-ecc-strength = <4>;
184 nand-ecc-step-size = <512>;
185 nand-bus-width = <8>;
188 compatible = "qcom,smem-part";
190 partition-0-appsblenv {
191 compatible = "fixed-partitions";
192 label = "0:appsblenv";
194 #address-cells = <1>;
198 compatible = "u-boot,env";
202 macaddr_appsblenv_ethaddr: ethaddr {
212 pinctrl-0 = <&mdio_pins>;
213 pinctrl-names = "default";
215 * RESET pins of phy chips
217 * WXR-5950AX12 has 2x RESET pins for QCA8075 and AQR113C.
218 * The pin of QCA8075 is for the chip and not phys in the chip, the
219 * pin of AQR113C is for 2x chips. So both pins are not appropriate
220 * to declare them as reset-gpios in phy nodes.
221 * Multiple entries in reset-gpios of mdio may not be supported, but
222 * leave the following as-is to show that the those reset pin exists.
224 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>, /* QCA8075 RESET */
225 <&tlmm 63 GPIO_ACTIVE_LOW>; /* AQR113C RESET (2x) */
227 aqr113c_1: ethernet-phy@0 {
228 compatible = "ethernet-phy-ieee802.3-c45";
232 aqr113c_2: ethernet-phy@8 {
233 compatible = "ethernet-phy-ieee802.3-c45";
237 ethernet-phy-package@17 {
238 #address-cells = <1>;
240 compatible = "qcom,qca8075-package";
243 qcom,package-mode = "qsgmii";
245 qca8075_1: ethernet-phy@19 {
246 compatible = "ethernet-phy-ieee802.3-c22";
250 qca8075_2: ethernet-phy@1a {
251 compatible = "ethernet-phy-ieee802.3-c22";
255 qca8075_3: ethernet-phy@1b {
256 compatible = "ethernet-phy-ieee802.3-c22";
265 switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT6)>;
266 switch_wan_bmp = <ESS_PORT5>;
267 switch_mac_mode = <MAC_MODE_QSGMII>;
268 switch_mac_mode1 = <MAC_MODE_USXGMII>;
269 switch_mac_mode2 = <MAC_MODE_USXGMII>;
274 phy_address = <0x19>;
279 phy_address = <0x1a>;
284 phy_address = <0x1b>;
289 ethernet-phy-ieee802.3-c45;
295 ethernet-phy-ieee802.3-c45;
308 phy-handle = <&qca8075_1>;
310 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
311 nvmem-cell-names = "mac-address";
317 phy-handle = <&qca8075_2>;
319 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
320 nvmem-cell-names = "mac-address";
326 phy-handle = <&qca8075_3>;
328 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
329 nvmem-cell-names = "mac-address";
334 phy-mode = "usxgmii";
335 phy-handle = <&aqr113c_1>;
337 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
338 nvmem-cell-names = "mac-address";
343 phy-mode = "usxgmii";
344 phy-handle = <&aqr113c_2>;
346 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
347 nvmem-cell-names = "mac-address";
361 vbus-supply = <®_usb_vbus>;
367 qcom,ath11k-calibration-variant = "Buffalo-WXR-5950AX12";