]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: add DT bindings for existing consumer flags
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 24 Sep 2015 22:05:45 +0000 (15:05 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 2 Oct 2015 11:25:53 +0000 (04:25 -0700)
commit8612e9c9d1bbe70b94449dc0ebd950ee78e7cafe
treea7f75832be1b6d38ee323cd17b761c2da60185ed
parenteb8c69ae3de527bac1e04e9e108444dd5d0cfed0
gpio: add DT bindings for existing consumer flags

It is customary for GPIO controllers to support open drain/collector
and open source/emitter configurations. Add standard GPIO line flags
to account for this and augment the documentation to say that these
are the most generic bindings.

Several people approached me to add new flags to the lines, and this
makes sense, but let's first bind up the most common cases before we
start to add exotic stuff.

Thanks to H. Nikolaus Schaller for ideas on how to encode single-ended
wiring such as open drain/source and open collector/emitter.

Cc: Tony Lindgren <tony@atomide.com>
Cc: Grygorii Strashko <grygorii.strashko@ti.com>
Cc: H. Nikolaus Schaller <hns@goldelico.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/devicetree/bindings/gpio/gpio.txt
include/dt-bindings/gpio/gpio.h