This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

how to obtain the trigger options phy0rx phy0tx phy0assoc phy0radio etc., for the pinmuxed leds on my phyBOARD-WEGA-am335x board?



I have pinmuxed few leds to appear in my sysfs but unable to get the phy0rx phy0tx phy0assoc phy0radio arugments on the trigger.

:-# echo phy0tx > /sys/class/leds/wlan:green/trigger
-sh: echo: write error: Invalid argument

:-# cat /sys/class/leds/wlan:green/trigger
[none] nand-disk mmc0 timer oneshot heartbeat backlight gpio cpu0 default-on

  • Hi Vik,

    I am not familiar with this board (phyBOARD-WEGA-am335x ). Could you elaborate which SDK do you use on it?
    Can't you use /sys/class/gpio to drive the onboard leds?

    Best Regards,
    Yordan
  • Thanks yordan for your reply.

    phyBOARD-WEGA-am335x (Ref: ) has same SOC as in BBB. Below are the led entries I added in my dts file for Wega board.

    gpio-leds {
    compatible = "gpio-leds";
    pinctrl-names = "default";
    pinctrl-0 = <&itsbox_led_pins>;

    led-sys-red {
    label = "sys:red";
    gpios = <&gpio2 11 GPIO_ACTIVE_HIGH>; // X3_A40
    };
    led-sys-green {
    label = "sys:green";
    gpios = <&gpio2 6 GPIO_ACTIVE_HIGH>; // X3_A42
    linux,default-trigger = "heartbeat";
    }; . . . . . .

    I got the following sysfs entries in my /sys/

    :~# ls /sys/class/leds/
    bat:green/ rt2800usb-phy0::quality/ user1:red/
    bat:red/ rt2800usb-phy0::radio/ user2:green/
    con:green/ sys:green/ user2:red/
    con:red/ sys:red/ wlan:green/
    rt2800usb-phy0::assoc/ user1:green/ wlan:red/

    But apperently after enabling the drivers for RT5370/RT5390, ath5k, ath9k & ath10k, the options for phy0rx, phy0tx etc appeared. Technically my problem is solved. But I cant figure out as for why the phy0tx options didn't appear when the RT5390 driver was enabled.

    :~# cat /sys/class/leds/wlan\:green/trigger
    none nand-disk mmc0 [timer] oneshot heartbeat backlight gpio cpu0 default-on phy0rx phy0tx phy0assoc phy0radio