diff options
author | Russell Senior <russell@personaltelco.net> | 2018-11-26 14:27:06 -0800 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2018-12-03 07:58:49 +0100 |
commit | 20ec6af15eba161970d95fecbd831e72eb47a56b (patch) | |
tree | 4e5701308b07fff28cee9bf4f0cef435e8b20880 /target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi | |
parent | 3fb45576ac16f89f7cee564b98411a43a31119f9 (diff) | |
download | upstream-20ec6af15eba161970d95fecbd831e72eb47a56b.tar.gz upstream-20ec6af15eba161970d95fecbd831e72eb47a56b.tar.bz2 upstream-20ec6af15eba161970d95fecbd831e72eb47a56b.zip |
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>
Diffstat (limited to 'target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi')
-rw-r--r-- | target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi b/target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi new file mode 100644 index 0000000000..c773f1aac3 --- /dev/null +++ b/target/linux/ath79/dts/ar7241_ubnt_xm_outdoor.dtsi @@ -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>; + }; + }; +}; |