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>;
39 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
40 color = <LED_COLOR_ID_RED>;
43 led_power_red: led-2 {
44 gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
45 color = <LED_COLOR_ID_RED>;
46 function = LED_FUNCTION_POWER;
49 led_power_white: led-3 {
50 gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
51 color = <LED_COLOR_ID_WHITE>;
52 function = LED_FUNCTION_POWER;
56 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
57 color = <LED_COLOR_ID_WHITE>;
61 gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
62 color = <LED_COLOR_ID_RED>;
66 gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
67 color = <LED_COLOR_ID_RED>;
68 function = LED_FUNCTION_WLAN;
72 gpios = <&tlmm 56 GPIO_ACTIVE_HIGH>;
73 color = <LED_COLOR_ID_WHITE>;
74 function = LED_FUNCTION_WLAN;
79 compatible = "gpio-keys";
82 * mode: 3x position switch
86 * - WB (Wireless Bridge)
90 gpios = <&tlmm 29 GPIO_ACTIVE_LOW>;
96 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
101 * op: 2x position switch
104 * - MANUAL (select Router/AP/WB manually)
108 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
109 linux,code = <BTN_2>;
114 gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
115 linux,code = <KEY_WPS_BUTTON>;
120 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
121 linux,code = <KEY_RESTART>;
125 reg_usb_vbus: regulator-5v-vbus {
126 compatible = "regulator-fixed";
127 regulator-name = "vbus";
128 regulator-min-microvolt = <5000000>;
129 regulator-max-microvolt = <5000000>;
130 gpio = <&tlmm 64 GPIO_ACTIVE_HIGH>;
137 mdio_pins: mdio-pins {
141 drive-strength = <8>;
148 drive-strength = <8>;
179 nand-ecc-strength = <4>;
180 nand-ecc-step-size = <512>;
181 nand-bus-width = <8>;
184 compatible = "qcom,smem-part";
186 partition-0-appsblenv {
187 compatible = "fixed-partitions";
188 label = "0:appsblenv";
190 #address-cells = <1>;
194 compatible = "u-boot,env";
198 macaddr_appsblenv_ethaddr: ethaddr {
208 pinctrl-0 = <&mdio_pins>;
209 pinctrl-names = "default";
211 * RESET pins of phy chips
213 * WXR-5950AX12 has 2x RESET pins for QCA8075 and AQR113C.
214 * The pin of QCA8075 is for the chip and not phys in the chip, the
215 * pin of AQR113C is for 2x chips. So both pins are not appropriate
216 * to declare them as reset-gpios in phy nodes.
217 * Multiple entries in reset-gpios of mdio may not be supported, but
218 * leave the following as-is to show that the those reset pin exists.
220 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>, /* QCA8075 RESET */
221 <&tlmm 63 GPIO_ACTIVE_LOW>; /* AQR113C RESET (2x) */
223 aqr113c_1: ethernet-phy@0 {
224 compatible = "ethernet-phy-ieee802.3-c45";
228 aqr113c_2: ethernet-phy@8 {
229 compatible = "ethernet-phy-ieee802.3-c45";
233 qca8075_1: ethernet-phy@19 {
234 compatible = "ethernet-phy-ieee802.3-c22";
238 qca8075_2: ethernet-phy@1a {
239 compatible = "ethernet-phy-ieee802.3-c22";
243 qca8075_3: ethernet-phy@1b {
244 compatible = "ethernet-phy-ieee802.3-c22";
252 switch_lan_bmp = <(ESS_PORT2 | ESS_PORT3 | ESS_PORT4 | ESS_PORT6)>;
253 switch_wan_bmp = <ESS_PORT5>;
254 malibu_first_phy_addr = <0x18>;
255 switch_mac_mode = <MAC_MODE_QSGMII>;
256 switch_mac_mode1 = <MAC_MODE_USXGMII>;
257 switch_mac_mode2 = <MAC_MODE_USXGMII>;
262 phy_address = <0x19>;
267 phy_address = <0x1a>;
272 phy_address = <0x1b>;
277 ethernet-phy-ieee802.3-c45;
283 ethernet-phy-ieee802.3-c45;
295 phy-handle = <&qca8075_1>;
297 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
298 nvmem-cell-names = "mac-address";
303 phy-handle = <&qca8075_2>;
305 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
306 nvmem-cell-names = "mac-address";
311 phy-handle = <&qca8075_3>;
313 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
314 nvmem-cell-names = "mac-address";
319 phy-handle = <&aqr113c_1>;
321 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
322 nvmem-cell-names = "mac-address";
327 phy-handle = <&aqr113c_2>;
329 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
330 nvmem-cell-names = "mac-address";
344 vbus-supply = <®_usb_vbus>;
350 qcom,ath11k-calibration-variant = "Buffalo-WXR-5950AX12";