We are trying to get rid of the legacy LED API and this is one of the last users. As far as I understood from the code, only one LED is controllable and it is a GPIO led. When initializing the LED, it is always enabled regardless of the passed argument, same for the mask. In addition, the LED is used as a BOOT LED. To keep the same behavior, a GPIO driver should be written, then add a gpio-leds node which makes use of a GPIO from said driver, add the /options/u-boot/boot-led property pointing at this new GPIO LED node and then enable CONFIG_LED as well as CONFIG_LED_BOOT. This should result in the same behavior using the modern framework. Signed-off-by: Quentin Schulz <quentin.schulz@cherry.de>
1.1 KiB
1.1 KiB