-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge tag 'pinctrl-fixes' of git://git.kernel.org/pub/scm/linux/kerne…
…l/git/linusw/linux-pinctrl Pull pinctrl fixes from Linus Walleij: "A first round of pinctrl fixes for v3.8: - i.MX5 register configuration - Swap a kfree to devm_kfree() to avoid memory corruption in the at91 driver - Add the missing device tree binding doc for the SIRF pin controller - Enable the SIRF GPIO pull up/down configuration from the device tree, it was previously retired from the hard-coded approach. - NULL check for the prcm_base in the Nomadik pin controller. - Provide the prcm_base from the device tree in the DT boot path for the Nomadik pin controller." * tag 'pinctrl-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: ARM: ux500: add pinctrl address resources pinctrl: nomadik: return if prcm_base is NULL pinctrl: sirf: enable GPIO pullup/down configuration from dts pinctrl: sirf: add missing DT-binding document pinctrl: fix comment mistake drivers/pinctrl/pinctrl-at91.c: convert kfree to devm_kfree pinctrl: imx5: fix GPIO_8 pad CAN1_RXCAN configuration
- Loading branch information
Showing
8 changed files
with
113 additions
and
6 deletions.
There are no files selected for viewing
47 changes: 47 additions & 0 deletions
47
Documentation/devicetree/bindings/pinctrl/pinctrl-sirf.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
CSR SiRFprimaII pinmux controller | ||
|
||
Required properties: | ||
- compatible : "sirf,prima2-pinctrl" | ||
- reg : Address range of the pinctrl registers | ||
- 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. | ||
|
||
SiRFprimaII's pinmux nodes act as a container for an abitrary number of subnodes. | ||
Each of these subnodes represents some desired configuration for a group of pins. | ||
|
||
Required subnode-properties: | ||
- sirf,pins : An array of strings. Each string contains the name of a group. | ||
- sirf,function: A string containing the name of the function to mux to the | ||
group. | ||
|
||
Valid values for group and function names can be found from looking at the | ||
group and function arrays in driver files: | ||
drivers/pinctrl/pinctrl-sirf.c | ||
|
||
For example, pinctrl might have subnodes like the following: | ||
uart2_pins_a: uart2@0 { | ||
uart { | ||
sirf,pins = "uart2grp"; | ||
sirf,function = "uart2"; | ||
}; | ||
}; | ||
uart2_noflow_pins_a: uart2@1 { | ||
uart { | ||
sirf,pins = "uart2_nostreamctrlgrp"; | ||
sirf,function = "uart2_nostreamctrl"; | ||
}; | ||
}; | ||
|
||
For a specific board, if it wants to use uart2 without hardware flow control, | ||
it can add the following to its board-specific .dts file. | ||
uart2: uart@0xb0070000 { | ||
pinctrl-names = "default"; | ||
pinctrl-0 = <&uart2_noflow_pins_a>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters