ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_mikrotik_routerboard-wap-2nd.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include <dt-bindings/leds/common.h>
4
5 #include "qca9533_mikrotik_routerboard-16m.dtsi"
6
7 / {
8 compatible = "mikrotik,routerboard-wap-2nd", "qca,qca9533";
9 model = "MikroTik RouterBOARD wAP-2nD (wAP)";
10
11 aliases {
12 led-boot = &led_user;
13 led-failsafe = &led_user;
14 led-running = &led_user;
15 led-upgrade = &led_user;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20 pinctrl-names = "default";
21 pinctrl-0 = <&led_lan_pin>;
22
23 lan {
24 function = LED_FUNCTION_LAN;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
27 };
28
29 wlan {
30 function = LED_FUNCTION_WLAN;
31 color = <LED_COLOR_ID_GREEN>;
32 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
33 linux,default-trigger = "phy0tpt";
34 };
35
36 led_user: user {
37 label = "green:user";
38 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
39 };
40 };
41 };
42
43 &wmac {
44 status = "okay";
45
46 qca,no-eeprom;
47 };
48
49 &eth0 {
50 status = "okay";
51
52 phy-handle = <&swphy0>;
53
54 gmac-config {
55 device = <&gmac>;
56 switch-phy-swap = <1>;
57 };
58 };
59
60 &eth1 {
61 compatible = "syscon", "simple-mfd";
62 };
63
64 &pinmux {
65 led_lan_pin: pinmux_led_lan_pin {
66 pinctrl-single,bits = <0x4 0x0 0xff>;
67 };
68 };