Led configuration



  • I want to create a custom hardware using the Omega2+ board. On the Expansion-Dock schematic, there is an RGB LED connected to GPIO lines 15,16 and 17. However, looking at the dts files the system LED is configured to GPIO 12.

    system_led: system {
    	gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
    };
    

    };

    Moreover, this is labeled as an amber LED, that suggests that the RED and BLUE colors are used together.

    Can you give me a hint what is going on here? Why the configuration doesn’t match? When designing the new board, where to put a single LED?

    And… when I build LEDE for other hardware (WIZFI630A) there is no such thing “system LED”. What we have is run LED. How does the system know which LED to use?

    Thank you for your help.



  • system is the amber LED on the Omega2 itself. In the omega FW, they let it flash during boot and turn it on when the system is fully up.
    The RGB led on the dock is not in the device tree, and thus does not have kernel LED support, but can be controlled via GPIO support (/sys/class/gpio files or libraries)



  • Okay. Thank you for the replay. I really missed that. I still don't understand what is the difference between system and run LED on other LEDE based systems.

    But this was a great help anyways. Thanks.


Log in to reply
 

Looks like your connection to Community was lost, please wait while we try to reconnect.