openwrt/target/linux/ramips/base-files/etc/board.d
Alexander Couzens cc1147072d ramips/leds: use devicetree alias led_wlan
Similiar to the lantiq target use a dts alias to define the wlan led
instead of static mapping in /etc/board.d/01_leds. Reduce code
duplication.
A device tree must define the alias "led-wlan" similiar to "led-boot".

/ {
        aliases {
                led-wlan = &led_wlan;
        };

        [..]

        led_wlan: wlan {
            label = "tl-wr841n-v14:green:wlan";
            gpios = <&gpio1 9 GPIO_ACTIVE_LOW>;
        };
};

Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
2019-07-02 16:05:28 +02:00
..
01_leds ramips/leds: use devicetree alias led_wlan 2019-07-02 16:05:28 +02:00
02_network ramips: add support for TOTOLINK A7000R 2019-06-26 07:41:54 +02:00
03_gpio_switches ramips: add support for Telco Electronics X1 2019-05-18 17:59:49 +02:00