openwrt/target/linux/ath79/dts/qca9563_dlink_dir-842-c3.dts
Sebastian Schaper 6ce1e299be ath79: fix LEDs for D-Link DIR-842
The device has a total of 8 LEDs, 5 of which are controlled by the switch
(LAN 1-4, WAN). Only power, wifi and wps are controlled by the SoC.

 * led_power is on GPIO 5 (not 15), boot flashing sequence is now visible
 * remove led 'internet', since it is only connected to the switch
 * remove ucidef_set_led_switch for WAN from 01_leds, as it has no effect

Tested on revisions C1 and C3.

Signed-off-by: Sebastian Schaper <openwrt@sebastianschaper.net>
[adjust commit title]
Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
2020-05-26 22:49:18 +02:00

37 lines
674 B
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/dts-v1/;
#include "qca9563_dlink_dir-842-c.dtsi"
/ {
compatible = "dlink,dir-842-c3", "qca,qca9563";
model = "D-Link DIR-842 C3";
aliases {
led-boot = &led_power;
led-failsafe = &led_power;
led-running = &led_power;
led-upgrade = &led_power;
};
leds {
compatible = "gpio-leds";
led_power: power {
label = "dir-842-c3:green:power";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
wps {
label = "dir-842-c3:green:wps";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
wlan {
label = "dir-842-c3:green:wlan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
};