tn3399_openwrt/target/linux/ath79/dts/qca9563_dlink_dir-842-c2.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

45 lines
738 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-c2", "qca,qca9563";
model = "D-Link DIR-842 C2";
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-c2:green:power";
gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
};
wps {
label = "dir-842-c2:green:wps";
gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
};
wlan {
label = "dir-842-c2:green:wlan";
gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
linux,default-trigger = "phy0tpt";
};
};
};
&usb_phy0 {
status = "okay";
};
&usb0 {
status = "okay";
};