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 label = "white:router";
35 gpios = <&tlmm 21 GPIO_ACTIVE_HIGH>;
36 color = <LED_COLOR_ID_WHITE>;
41 gpios = <&tlmm 22 GPIO_ACTIVE_HIGH>;
42 color = <LED_COLOR_ID_RED>;
45 led_power_red: led-2 {
47 gpios = <&tlmm 31 GPIO_ACTIVE_HIGH>;
48 color = <LED_COLOR_ID_RED>;
49 function = LED_FUNCTION_POWER;
52 led_power_white: led-3 {
53 label = "white:power";
54 gpios = <&tlmm 34 GPIO_ACTIVE_HIGH>;
55 color = <LED_COLOR_ID_WHITE>;
56 function = LED_FUNCTION_POWER;
60 label = "white:internet";
61 gpios = <&tlmm 43 GPIO_ACTIVE_HIGH>;
62 color = <LED_COLOR_ID_WHITE>;
66 label = "red:internet";
67 gpios = <&tlmm 44 GPIO_ACTIVE_HIGH>;
68 color = <LED_COLOR_ID_RED>;
72 label = "red:wireless";
73 gpios = <&tlmm 55 GPIO_ACTIVE_HIGH>;
74 color = <LED_COLOR_ID_RED>;
75 function = LED_FUNCTION_WLAN;
79 label = "white:wireless";
80 gpios = <&tlmm 56 GPIO_ACTIVE_HIGH>;
81 color = <LED_COLOR_ID_WHITE>;
82 function = LED_FUNCTION_WLAN;
87 compatible = "gpio-keys";
90 * mode: 3x position switch
94 * - WB (Wireless Bridge)
98 gpios = <&tlmm 29 GPIO_ACTIVE_LOW>;
104 gpios = <&tlmm 30 GPIO_ACTIVE_LOW>;
105 linux,code = <BTN_1>;
109 * op: 2x position switch
112 * - MANUAL (select Router/AP/WB manually)
116 gpios = <&tlmm 52 GPIO_ACTIVE_LOW>;
117 linux,code = <BTN_2>;
122 gpios = <&tlmm 51 GPIO_ACTIVE_LOW>;
123 linux,code = <KEY_WPS_BUTTON>;
128 gpios = <&tlmm 54 GPIO_ACTIVE_LOW>;
129 linux,code = <KEY_RESTART>;
133 reg_usb_vbus: regulator-5v-vbus {
134 compatible = "regulator-fixed";
135 regulator-name = "vbus";
136 regulator-min-microvolt = <5000000>;
137 regulator-max-microvolt = <5000000>;
138 gpio = <&tlmm 64 GPIO_ACTIVE_HIGH>;
145 mdio_pins: mdio-pins {
149 drive-strength = <8>;
156 drive-strength = <8>;
187 nand-ecc-strength = <4>;
188 nand-ecc-step-size = <512>;
189 nand-bus-width = <8>;
192 compatible = "qcom,smem-part";
194 partition-0-appsblenv {
195 compatible = "fixed-partitions";
196 label = "0:appsblenv";
198 #address-cells = <1>;
202 compatible = "u-boot,env";
206 macaddr_appsblenv_ethaddr: ethaddr {
216 pinctrl-0 = <&mdio_pins>;
217 pinctrl-names = "default";
219 * RESET pins of phy chips
221 * WXR-5950AX12 has 2x RESET pins for QCA8075 and AQR113C.
222 * The pin of QCA8075 is for the chip and not phys in the chip, the
223 * pin of AQR113C is for 2x chips. So both pins are not appropriate
224 * to declare them as reset-gpios in phy nodes.
225 * Multiple entries in reset-gpios of mdio may not be supported, but
226 * leave the following as-is to show that the those reset pin exists.
228 reset-gpios = <&tlmm 37 GPIO_ACTIVE_LOW>, /* QCA8075 RESET */
229 <&tlmm 63 GPIO_ACTIVE_LOW>; /* AQR113C RESET (2x) */
231 aqr113c_1: ethernet-phy@0 {
232 compatible = "ethernet-phy-ieee802.3-c45";
236 aqr113c_2: ethernet-phy@8 {
237 compatible = "ethernet-phy-ieee802.3-c45";
241 qca8075_1: ethernet-phy@18 {
242 compatible = "ethernet-phy-ieee802.3-c22";
246 qca8075_2: ethernet-phy@19 {
247 compatible = "ethernet-phy-ieee802.3-c22";
251 qca8075_3: ethernet-phy@1a {
252 compatible = "ethernet-phy-ieee802.3-c22";
256 qca8075_4: ethernet-phy@1b {
257 compatible = "ethernet-phy-ieee802.3-c22";
261 qca8075_5: ethernet-phy@1c {
262 compatible = "ethernet-phy-ieee802.3-c22";
270 switch_cpu_bmp = <0x1>;
271 switch_lan_bmp = <0x3e>;
272 switch_wan_bmp = <0x40>;
273 switch_mac_mode = <0xb>;
274 switch_mac_mode1 = <0xd>;
275 switch_mac_mode2 = <0xd>;
282 phy_address = <0x18>;
287 phy_address = <0x19>;
292 phy_address = <0x1a>;
297 phy_address = <0x1b>;
302 ethernet-phy-ieee802.3-c45;
308 ethernet-phy-ieee802.3-c45;
320 phy-handle = <&qca8075_2>;
322 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
323 nvmem-cell-names = "mac-address";
328 phy-handle = <&qca8075_3>;
330 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
331 nvmem-cell-names = "mac-address";
336 phy-handle = <&qca8075_4>;
338 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
339 nvmem-cell-names = "mac-address";
344 phy-handle = <&aqr113c_1>;
346 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
347 nvmem-cell-names = "mac-address";
352 phy-handle = <&aqr113c_2>;
354 nvmem-cells = <&macaddr_appsblenv_ethaddr>;
355 nvmem-cell-names = "mac-address";
369 vbus-supply = <®_usb_vbus>;
375 qcom,ath11k-calibration-variant = "Buffalo-WXR-5950AX12";