ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar9342_ubnt_litebeam-m5-xw.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9342_ubnt_xw.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "ubnt,litebeam-m5-xw", "qca,ar9342";
11 model = "Ubiquiti LiteBeam M5 (XW)";
12
13 aliases {
14 led-boot = &led_status;
15 led-running = &led_status;
16 led-upgrade = &led_status;
17 led-failsafe = &led_status;
18 label-mac-device = &wmac;
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led-lan {
25 color = <LED_COLOR_ID_GREEN>;
26 function = LED_FUNCTION_LAN;
27 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
28 };
29
30 led-wlan {
31 color = <LED_COLOR_ID_GREEN>;
32 function = LED_FUNCTION_WLAN;
33 linux,default-trigger = "phy0tpt";
34 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
35 };
36
37 led_status: led-power {
38 color = <LED_COLOR_ID_GREEN>;
39 function = LED_FUNCTION_POWER;
40 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
41 };
42 };
43 };
44
45 &mdio0 {
46 status = "okay";
47
48 phy1: ethernet-phy@1 {
49 reg = <1>;
50 phy-mode = "mii";
51 reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
52 };
53 };
54
55 &eth0 {
56 status = "okay";
57
58 phy-handle = <&phy1>;
59 };