#17533: AsiaRF AWM003 (ramips) LEDs defined in device tree don't appear in
/sys/class/leds
-----------------------+------------------------
Reporter: russell@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: kernel | Version: Trunk
Keywords: |
-----------------------+------------------------
CHAOS CALMER (Bleeding Edge, r42153) with a vanilla .config, and for the
last few weeks...
LEDs defined in the device tree, namely rx, tx and wps, do not result in
corresponding files in /sys/class/leds, for no apparent reason. Device
tree looks like this (from target/linux/ramips/dts/AWM003-EVB.dts):
{{{
gpio-leds {
compatible = "gpio-leds";
tx {
label = "awm002-evb:green:tx";
gpios = <&gpio0 15 1>;
};
rx {
label = "awm002-evb:green:rx";
gpios = <&gpio0 16 1>;
};
wps {
label = "awm002-evb:green:wps";
gpios = <&gpio0 21 1>;
};
};
}}}
Contents of /sys/class/leds is:
{{{
root@OpenWrt:/ # ls -al /sys/class/leds/
drwxr-xr-x 2 root root 0 Jan 1 1970 .
drwxr-xr-x 17 root root 0 Jan 1 1970 ..
lrwxrwxrwx 1 root root 0 Aug 14 11:39 rt2800soc-
phy0::assoc -> ../../devices/10180000.wmac/leds/rt2800soc-phy0::assoc
lrwxrwxrwx 1 root root 0 Aug 14 11:39 rt2800soc-
phy0::quality -> ../../devices/10180000.wmac/leds/rt2800soc-phy0::quality
lrwxrwxrwx 1 root root 0 Aug 14 11:39 rt2800soc-
phy0::radio -> ../../devices/10180000.wmac/leds/rt2800soc-phy0::radio
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/17533>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets