mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
ath79: split ubnt outdoor device leds into separate dtsi
Move common LED configuration into a separate includible dtsi. Signed-off-by: Russell Senior <russell@personaltelco.net>
This commit is contained in:
parent
3fb45576ac
commit
20ec6af15e
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar7241_ubnt_xm.dtsi"
|
||||
#include "ar7241_ubnt_xm_outdoor.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "ubnt,bullet-m", "qca,ar7241";
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar7241_ubnt_xm.dtsi"
|
||||
#include "ar7241_ubnt_xm_outdoor.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "ubnt,nano-m", "qca,ar7241";
|
||||
|
@ -1,7 +1,7 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
/dts-v1/;
|
||||
|
||||
#include "ar7241_ubnt_xm.dtsi"
|
||||
#include "ar7241_ubnt_xm_outdoor.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "ubnt,rocket-m", "qca,ar7241";
|
||||
|
@ -9,11 +9,6 @@
|
||||
compatible = "ubnt,xm", "qca,ar7241";
|
||||
model = "Ubiquiti Networks XM (rev 1.0) board";
|
||||
|
||||
aliases {
|
||||
led-boot = &link4;
|
||||
led-failsafe = &link4;
|
||||
};
|
||||
|
||||
/* extosc: ref {
|
||||
compatible = "fixed-clock";
|
||||
#clock-cells = <0>;
|
||||
@ -29,29 +24,6 @@
|
||||
debounce-interval = <60>;
|
||||
};
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
link1 {
|
||||
label = "ubnt:red:link1";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
link2 {
|
||||
label = "ubnt:orange:link2";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
link3 {
|
||||
label = "ubnt:green:link3";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
link4: link4 {
|
||||
label = "ubnt:green:link4";
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&uart {
|
||||
|
36
target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi
Normal file
36
target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi
Normal file
@ -0,0 +1,36 @@
|
||||
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
|
||||
|
||||
#include <dt-bindings/gpio/gpio.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
|
||||
#include "ar7241_ubnt_xm.dtsi"
|
||||
|
||||
/ {
|
||||
aliases {
|
||||
led-boot = &link4;
|
||||
led-failsafe = &link4;
|
||||
};
|
||||
|
||||
leds {
|
||||
compatible = "gpio-leds";
|
||||
link1 {
|
||||
label = "ubnt:red:link1";
|
||||
gpios = <&gpio 0 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
link2 {
|
||||
label = "ubnt:orange:link2";
|
||||
gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
link3 {
|
||||
label = "ubnt:green:link3";
|
||||
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
|
||||
link4: link4 {
|
||||
label = "ubnt:green:link4";
|
||||
gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
|
||||
};
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user