On Tue, Sep 8, 2015 at 12:51 PM, Jacek Anaszewski
<[email protected]> wrote:
> On 09/07/2015 03:22 PM, Geert Uytterhoeven wrote:

>> Something like this?
>>
>>                       VCC         VCC
>>                        |           |
>>                        R           R
>>                        |           |
>>                __|__   |           |
>>            +---o   o---+          _|_
>>            |           |          \ /
>>            |           |          ---
>>           GND          R           |
>>                        |           |
>>                        |         |-+
>>                        |         |<+
>> GPIO -----------------+---------|-|
>>                                    |
>>                                    |
>>                                   GND
>
>
> You would need also resistor to avoid short-circuit
> when the switch is on.

There is a resistor AFAICT.

But consider the GPIO side which is opaque
here. When used as input it is often high impedance
but when used to drive it is not.

Doesn't this mean the output actually has to be
open collector (open drain)?

In that case we should enforce that in the software
framework too so we protect people from shooting
themselves in the foot.

> We'd have to ask Linus if he welcomes drivers for this type
> of home-made circuits in mainline. If yes, then probably someone would
> have to build the circuit, develop and test the driver on it, and
> finally come up with a detailed documentation.
> Are you the volunteer? :)

Of course he's considering it or he wouldn't write :)

I'm curious about what comes out of this, this is exactly
the type of problems that the GPIO subsystem is about
to help with.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-leds" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to