ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9533_mikrotik_routerboard-mapl-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-mapl-2nd", "qca,qca9533";
9 model = "MikroTik RouterBOARD mAPL-2nD (mAP lite)";
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_power_pin &led_lan_pin>;
22
23 power {
24 function = LED_FUNCTION_POWER;
25 color = <LED_COLOR_ID_GREEN>;
26 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
27 default-state = "on";
28 };
29
30 lan {
31 function = LED_FUNCTION_LAN;
32 color = <LED_COLOR_ID_GREEN>;
33 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
34 };
35
36 wlan {
37 function = LED_FUNCTION_WLAN;
38 color = <LED_COLOR_ID_GREEN>;
39 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
40 linux,default-trigger = "phy0tpt";
41 };
42
43 led_user: user {
44 label = "green:user";
45 gpios = <&gpio 14 GPIO_ACTIVE_HIGH>;
46 };
47 };
48 };
49
50 &wmac {
51 status = "okay";
52
53 qca,no-eeprom;
54 };
55
56 &eth0 {
57 status = "okay";
58
59 phy-handle = <&swphy0>;
60
61 gmac-config {
62 device = <&gmac>;
63 switch-phy-swap = <1>;
64 };
65 };
66
67 &eth1 {
68 compatible = "syscon", "simple-mfd";
69 };
70
71 &pinmux {
72 led_lan_pin: pinmux_led_lan_pin {
73 pinctrl-single,bits = <0x4 0x0 0xff>;
74 };
75
76 led_power_pin: pinmux_led_power_pin {
77 pinctrl-single,bits = <0x10 0x0 0xff00>;
78 };
79 };