Skip to contentSkip to conversation

pinctrl: sirf: enable GPIO pullup/down configuration from dts

PATCH New Barry Song 2 participants 2 messages Dec 14, 2012

Subsystems (2)
lore
Share & tools
lore

Barry Song

author
#0 lore raw

PATCH 1/1 pinctrl: sirf: enable GPIO pullup/down configuration from dts

From: Barry Song <[email protected]>

commit 7bec207427c2efb794 remove sirfsoc_gpio_set_pull function, this patches takes the feature back by adding sirf,pullups and sirf,pulldowns prop in dts, and the driver will set the GPIO pull according to the dts.

Cc Arnd Bergmann <[email protected]>

---
Depends on:
[PATCH] pinctrl: sirf: add missing DT-binding document
http://www.spinics.net/lists/arm-kernel/msg212485.html

 .../devicetree/bindings/pinctrl/pinctrl-sirf.txt   |    3 +
 drivers/pinctrl/pinctrl-sirf.c                     |   48 ++++++++++++++++++++
 2 files changed, 51 insertions(+), 0 deletions(-)
Documentation/devicetree/bindings/pinctrl/pinctrl-sirf.txt +3 -0
index a2896df..c596a6a 100644
@@ -6,6 +6,9 @@ Required properties:
 - interrupts    : Interrupts used by every GPIO group
 - gpio-controller : Indicates this device is a GPIO controller
 - interrupt-controller  : Marks the device node as an interrupt controller
+Optional properties:
+- sirf,pullups : if n-th bit of m-th bank is set, set a pullup on GPIO-n of bank m
+- sirf,pulldowns : if n-th bit of m-th bank is set, set a pulldown on GPIO-n of bank m
 
 Please refer to pinctrl-bindings.txt in this directory for details of the common
 pinctrl bindings used by client devices.
drivers/pinctrl/pinctrl-sirf.c +48 -0

66 lines not on this page · raw message

Signature · 6 lines
1.7.5.4



Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
#1 lore raw

PATCH 1/1 pinctrl: sirf: enable GPIO pullup/down configuration from dts

Quoted 9 lines · Barry Song

From: Barry Song <[email protected]>

commit 7bec207427c2efb794 remove sirfsoc_gpio_set_pull function, this patches takes the feature back by adding sirf,pullups and sirf,pulldowns prop in dts, and the driver will set the GPIO pull according to the dts.

Cc Arnd Bergmann <[email protected]>

Applied, thanks.

Yours,
Linus Walleij