mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-30 18:47:06 +00:00
60 lines
1.1 KiB
Plaintext
60 lines
1.1 KiB
Plaintext
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||
|
|
||
|
#include "ar9342_ubnt_xw.dtsi"
|
||
|
|
||
|
#include <dt-bindings/gpio/gpio.h>
|
||
|
#include <dt-bindings/input/input.h>
|
||
|
#include <dt-bindings/leds/common.h>
|
||
|
|
||
|
/ {
|
||
|
compatible = "ubnt,litebeam-m5-xw", "qca,ar9342";
|
||
|
model = "Ubiquiti LiteBeam M5 (XW)";
|
||
|
|
||
|
aliases {
|
||
|
led-boot = &led_status;
|
||
|
led-running = &led_status;
|
||
|
led-upgrade = &led_status;
|
||
|
led-failsafe = &led_status;
|
||
|
label-mac-device = &wmac;
|
||
|
};
|
||
|
|
||
|
leds {
|
||
|
compatible = "gpio-leds";
|
||
|
|
||
|
led-lan {
|
||
|
color = <LED_COLOR_ID_GREEN>;
|
||
|
function = LED_FUNCTION_LAN;
|
||
|
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
|
||
|
};
|
||
|
|
||
|
led-wlan {
|
||
|
color = <LED_COLOR_ID_GREEN>;
|
||
|
function = LED_FUNCTION_WLAN;
|
||
|
linux,default-trigger = "phy0tpt";
|
||
|
gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
|
||
|
};
|
||
|
|
||
|
led_status: led-power {
|
||
|
color = <LED_COLOR_ID_GREEN>;
|
||
|
function = LED_FUNCTION_POWER;
|
||
|
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
|
||
|
&mdio0 {
|
||
|
status = "okay";
|
||
|
|
||
|
phy1: ethernet-phy@1 {
|
||
|
reg = <1>;
|
||
|
phy-mode = "mii";
|
||
|
reset-gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
ð0 {
|
||
|
status = "okay";
|
||
|
|
||
|
phy-handle = <&phy1>;
|
||
|
};
|