pinctrl: sirf: enable GPIO pullup/down configuration from dts
Subsystems (2)
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.
---
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
@@ -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
Linus Walleij
AppliedPATCH 1/1 pinctrl: sirf: enable GPIO pullup/down configuration from dts
Quoted 9 lines · Barry Song
From: Barry Song <[email protected]>
commit
7bec207427c2efb794removesirfsoc_gpio_set_pullfunction, 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]>Signed-off-by Barry Song <[email protected]>
Applied, thanks.
Yours,
Linus Walleij