Re: [PATCH v5 1/7] hw/misc/led: Add a LED device

2020-09-11 Thread Richard Henderson
On 9/10/20 1:54 PM, Philippe Mathieu-Daudé wrote: > +static const char *led_color_name[] = { const char * const Otherwise, Reviewed-by: Richard Henderson r~

Re: [PATCH v5 1/7] hw/misc/led: Add a LED device

2020-09-11 Thread Luc Michel
On 9/10/20 10:54 PM, Philippe Mathieu-Daudé wrote: Add a LED device which can be connected to a GPIO output. They can also be dimmed with PWM devices. For now we do not implement the dimmed mode, but in preparation of a future implementation, we start using the LED intensity. LEDs are limited to

[PATCH v5 1/7] hw/misc/led: Add a LED device

2020-09-10 Thread Philippe Mathieu-Daudé
Add a LED device which can be connected to a GPIO output. They can also be dimmed with PWM devices. For now we do not implement the dimmed mode, but in preparation of a future implementation, we start using the LED intensity. LEDs are limited to a fixed set of colors. Signed-off-by: Philippe Math