Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-14 Thread Philippe Mathieu-Daudé
On 9/14/20 5:05 PM, Philippe Mathieu-Daudé wrote: > On 9/14/20 4:03 PM, Eduardo Habkost wrote: >> On Mon, Sep 14, 2020 at 09:48:45AM +0200, Philippe Mathieu-Daudé wrote: >>> On 9/14/20 9:27 AM, Markus Armbruster wrote: Philippe Mathieu-Daudé writes: > Eduardo is already in Cc,

Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-14 Thread Philippe Mathieu-Daudé
On 9/14/20 4:03 PM, Eduardo Habkost wrote: > On Mon, Sep 14, 2020 at 09:48:45AM +0200, Philippe Mathieu-Daudé wrote: >> On 9/14/20 9:27 AM, Markus Armbruster wrote: >>> Philippe Mathieu-Daudé writes: >>> Eduardo is already in Cc, adding Markus. On 9/12/20 12:44 AM, Richard

Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-14 Thread Eduardo Habkost
On Mon, Sep 14, 2020 at 09:48:45AM +0200, Philippe Mathieu-Daudé wrote: > On 9/14/20 9:27 AM, Markus Armbruster wrote: > > Philippe Mathieu-Daudé writes: > > > >> Eduardo is already in Cc, adding Markus. > >> > >> On 9/12/20 12:44 AM, Richard Henderson wrote: > >>> On 9/10/20 1:54 PM, Philippe

Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-14 Thread Philippe Mathieu-Daudé
On 9/14/20 9:27 AM, Markus Armbruster wrote: > Philippe Mathieu-Daudé writes: > >> Eduardo is already in Cc, adding Markus. >> >> On 9/12/20 12:44 AM, Richard Henderson wrote: >>> On 9/10/20 1:54 PM, Philippe Mathieu-Daudé wrote: Some devices expose GPIO lines. Add a GPIO qdev

Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-14 Thread Markus Armbruster
Philippe Mathieu-Daudé writes: > Eduardo is already in Cc, adding Markus. > > On 9/12/20 12:44 AM, Richard Henderson wrote: >> On 9/10/20 1:54 PM, Philippe Mathieu-Daudé wrote: >>> Some devices expose GPIO lines. >>> >>> Add a GPIO qdev input to our LED device, so we can >>> connect a GPIO

Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-12 Thread Philippe Mathieu-Daudé
On 9/12/20 10:50 AM, Philippe Mathieu-Daudé wrote: > Eduardo is already in Cc, adding Markus. > > On 9/12/20 12:44 AM, Richard Henderson wrote: >> On 9/10/20 1:54 PM, Philippe Mathieu-Daudé wrote: >>> Some devices expose GPIO lines. >>> >>> Add a GPIO qdev input to our LED device, so we can >>>

Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-12 Thread Philippe Mathieu-Daudé
On 9/12/20 11:02 AM, Philippe Mathieu-Daudé wrote: > On 9/11/20 9:42 PM, Luc Michel wrote: >> Hi Phil, >> >> On 9/10/20 10:54 PM, Philippe Mathieu-Daudé wrote: >>> Some devices expose GPIO lines. >>> >>> Add a GPIO qdev input to our LED device, so we can >>> connect a GPIO output using

Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-12 Thread Philippe Mathieu-Daudé
On 9/11/20 9:42 PM, Luc Michel wrote: > Hi Phil, > > On 9/10/20 10:54 PM, Philippe Mathieu-Daudé wrote: >> Some devices expose GPIO lines. >> >> Add a GPIO qdev input to our LED device, so we can >> connect a GPIO output using qdev_connect_gpio_out(). >> >> When used with GPIOs, the intensity can

Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-12 Thread Philippe Mathieu-Daudé
Eduardo is already in Cc, adding Markus. On 9/12/20 12:44 AM, Richard Henderson wrote: > On 9/10/20 1:54 PM, Philippe Mathieu-Daudé wrote: >> Some devices expose GPIO lines. >> >> Add a GPIO qdev input to our LED device, so we can >> connect a GPIO output using qdev_connect_gpio_out(). >> >> When

Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-11 Thread Richard Henderson
On 9/10/20 1:54 PM, Philippe Mathieu-Daudé wrote: > Some devices expose GPIO lines. > > Add a GPIO qdev input to our LED device, so we can > connect a GPIO output using qdev_connect_gpio_out(). > > When used with GPIOs, the intensity can only be either > minium or maximum. This depends of the

Re: [PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-11 Thread Luc Michel
Hi Phil, On 9/10/20 10:54 PM, Philippe Mathieu-Daudé wrote: Some devices expose GPIO lines. Add a GPIO qdev input to our LED device, so we can connect a GPIO output using qdev_connect_gpio_out(). When used with GPIOs, the intensity can only be either minium or maximum. This depends of the

[PATCH v5 2/7] hw/misc/led: Allow connecting from GPIO output

2020-09-10 Thread Philippe Mathieu-Daudé
Some devices expose GPIO lines. Add a GPIO qdev input to our LED device, so we can connect a GPIO output using qdev_connect_gpio_out(). When used with GPIOs, the intensity can only be either minium or maximum. This depends of the polarity of the GPIO (which can be inverted). Declare the