Modify

Opened 3 years ago

#17533 new defect

AsiaRF AWM003 (ramips) LEDs defined in device tree don't appear in /sys/class/leds

Reported by: russell@… Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Trunk
Keywords: Cc:

Description

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

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.