aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Roszko <mark.roszko@gmail.com>2014-08-23 23:12:06 -0400
committerLinus Walleij <linus.walleij@linaro.org>2014-09-05 04:32:48 -0400
commit2de5da5771229c0822dc78472261f0cd82e8bc14 (patch)
treeaae9693bbcd07bdadec1e914f26fb3896ea2b96f
parent4334ac2db2be9e278c95fd15260c1f49f698ffc5 (diff)
pinctrl: at91: update for drive strength options and tweaks
The drive strength patched introduced the atmel,sama5d-pinctrl compatible string. Drive strength is now an option for the CONFIG bits per pin. Also added note about MULTIDRIVE being equivalent to open-drain output and added missing "s" at the end of need everywhere in the bits descriptions. Signed-off-by: Marek Roszko <mark.roszko@gmail.com> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt22
1 files changed, 15 insertions, 7 deletions
diff --git a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
index 02ab5ab198a4..b7a93e80a302 100644
--- a/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
+++ b/Documentation/devicetree/bindings/pinctrl/atmel,at91-pinctrl.txt
@@ -19,6 +19,7 @@ such as pull-up, multi drive, etc.
19 19
20Required properties for iomux controller: 20Required properties for iomux controller:
21- compatible: "atmel,at91rm9200-pinctrl" or "atmel,at91sam9x5-pinctrl" 21- compatible: "atmel,at91rm9200-pinctrl" or "atmel,at91sam9x5-pinctrl"
22 or "atmel,sama5d3-pinctrl"
22- atmel,mux-mask: array of mask (periph per bank) to describe if a pin can be 23- atmel,mux-mask: array of mask (periph per bank) to describe if a pin can be
23 configured in this periph mode. All the periph and bank need to be describe. 24 configured in this periph mode. All the periph and bank need to be describe.
24 25
@@ -85,13 +86,20 @@ Required properties for pin configuration node:
85 PIN_BANK 0 is pioA, PIN_BANK 1 is pioB... 86 PIN_BANK 0 is pioA, PIN_BANK 1 is pioB...
86 87
87Bits used for CONFIG: 88Bits used for CONFIG:
88PULL_UP (1 << 0): indicate this pin need a pull up. 89PULL_UP (1 << 0): indicate this pin needs a pull up.
89MULTIDRIVE (1 << 1): indicate this pin need to be configured as multidrive. 90MULTIDRIVE (1 << 1): indicate this pin needs to be configured as multi-drive.
90DEGLITCH (1 << 2): indicate this pin need deglitch. 91 Multi-drive is equivalent to open-drain type output.
91PULL_DOWN (1 << 3): indicate this pin need a pull down. 92DEGLITCH (1 << 2): indicate this pin needs deglitch.
92DIS_SCHMIT (1 << 4): indicate this pin need to disable schmit trigger. 93PULL_DOWN (1 << 3): indicate this pin needs a pull down.
93DEBOUNCE (1 << 16): indicate this pin need debounce. 94DIS_SCHMIT (1 << 4): indicate this pin needs to the disable schmitt trigger.
94DEBOUNCE_VAL (0x3fff << 17): debounce val. 95DRIVE_STRENGTH (3 << 5): indicate the drive strength of the pin using the
96 following values:
97 00 - No change (reset state value kept)
98 01 - Low
99 10 - Medium
100 11 - High
101DEBOUNCE (1 << 16): indicate this pin needs debounce.
102DEBOUNCE_VAL (0x3fff << 17): debounce value.
95 103
96NOTE: 104NOTE:
97Some requirements for using atmel,at91rm9200-pinctrl binding: 105Some requirements for using atmel,at91rm9200-pinctrl binding: