]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ENGR00269945: pinctrl: support pinctrl setting assertion via gpios
authorShawn Guo <shawn.guo@freescale.com>
Mon, 15 Jul 2013 08:31:53 +0000 (16:31 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Wed, 20 Aug 2014 08:06:05 +0000 (10:06 +0200)
commitda2a4391b7a0b714b8542cf1322d09df9ced1c97
treee272f14dd3a9d73ea95e8cf41244542f5c8d5a1a
parent19583ca584d6f574384e17fe7613dfaeadcdc4a6
ENGR00269945: pinctrl: support pinctrl setting assertion via gpios

It's pretty common that on some reference design or validation boards,
one pin could be used by two devices on board, and the pin route is
controlled by a GPIO.  So to assert the pin for given device, not only
the pinmux controller in SoC needs to be set up properly but also the
GPIO needs to be pulled up/down.

The patch adds support of a device tree property "pinctrl-assert-gpios"
under client device node.  It plays pretty much like a board level pin
multiplexer, and steers the pin route by controlling the GPIOs.  When
client device has the property represent in its node, pinctrl device
tree mapping function will firstly pull up/down the GPIOs to assert the
pins for the device at board level.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Documentation/devicetree/bindings/pinctrl/pinctrl-bindings.txt
drivers/pinctrl/devicetree.c