-
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 'davinci-for-v3.14/gpio' of git://git.kernel.org/pub/scm/li…
…nux/kernel/git/nsekhar/linux-davinci into next/drivers From Sekhar Nori: DaVinci GPIO driver updates --------------------------- This pull request contains updates to DaVinci GPIO driver and the resultant platform code changes. The updates include DT-conversion and changes to make the driver cross-platform ready. * tag 'davinci-for-v3.14/gpio' of git://git.kernel.org/pub/scm/linux/kernel/git/nsekhar/linux-davinci: gpio: davinci: don't create irq_domain in case of unbanked irqs gpio: davinci: use chained_irq_enter/chained_irq_exit API gpio: davinci: add OF support gpio: davinci: remove unused variable intc_irq_num gpio: davinci: convert to use irqdomain support. gpio: introduce GPIO_DAVINCI kconfig option gpio: davinci: get rid of DAVINCI_N_GPIO gpio: davinci: use {readl|writel}_relaxed() instead of __raw_* Signed-off-by: Olof Johansson <olof@lixom.net>
- Loading branch information
Showing
816 changed files
with
7,769 additions
and
4,046 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Davinci GPIO controller bindings | ||
|
||
Required Properties: | ||
- compatible: should be "ti,dm6441-gpio" | ||
|
||
- reg: Physical base address of the controller and the size of memory mapped | ||
registers. | ||
|
||
- gpio-controller : Marks the device node as a gpio controller. | ||
|
||
- interrupt-parent: phandle of the parent interrupt controller. | ||
|
||
- interrupts: Array of GPIO interrupt number. Only banked or unbanked IRQs are | ||
supported at a time. | ||
|
||
- ti,ngpio: The number of GPIO pins supported. | ||
|
||
- ti,davinci-gpio-unbanked: The number of GPIOs that have an individual interrupt | ||
line to processor. | ||
|
||
The GPIO controller also acts as an interrupt controller. It uses the default | ||
two cells specifier as described in Documentation/devicetree/bindings/ | ||
interrupt-controller/interrupts.txt. | ||
|
||
Example: | ||
|
||
gpio: gpio@1e26000 { | ||
compatible = "ti,dm6441-gpio"; | ||
gpio-controller; | ||
reg = <0x226000 0x1000>; | ||
interrupt-parent = <&intc>; | ||
interrupts = <42 IRQ_TYPE_EDGE_BOTH 43 IRQ_TYPE_EDGE_BOTH | ||
44 IRQ_TYPE_EDGE_BOTH 45 IRQ_TYPE_EDGE_BOTH | ||
46 IRQ_TYPE_EDGE_BOTH 47 IRQ_TYPE_EDGE_BOTH | ||
48 IRQ_TYPE_EDGE_BOTH 49 IRQ_TYPE_EDGE_BOTH | ||
50 IRQ_TYPE_EDGE_BOTH>; | ||
ti,ngpio = <144>; | ||
ti,davinci-gpio-unbanked = <0>; | ||
interrupt-controller; | ||
#interrupt-cells = <2>; | ||
}; |
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,54 @@ | ||
* TI MMC host controller for OMAP1 and 2420 | ||
|
||
The MMC Host Controller on TI OMAP1 and 2420 family provides | ||
an interface for MMC, SD, and SDIO types of memory cards. | ||
|
||
This file documents differences between the core properties described | ||
by mmc.txt and the properties used by the omap mmc driver. | ||
|
||
Note that this driver will not work with omap2430 or later omaps, | ||
please see the omap hsmmc driver for the current omaps. | ||
|
||
Required properties: | ||
- compatible: Must be "ti,omap2420-mmc", for OMAP2420 controllers | ||
- ti,hwmods: For 2420, must be "msdi<n>", where n is controller | ||
instance starting 1 | ||
|
||
Examples: | ||
|
||
msdi1: mmc@4809c000 { | ||
compatible = "ti,omap2420-mmc"; | ||
ti,hwmods = "msdi1"; | ||
reg = <0x4809c000 0x80>; | ||
interrupts = <83>; | ||
dmas = <&sdma 61 &sdma 62>; | ||
dma-names = "tx", "rx"; | ||
}; | ||
|
||
* TI MMC host controller for OMAP1 and 2420 | ||
|
||
The MMC Host Controller on TI OMAP1 and 2420 family provides | ||
an interface for MMC, SD, and SDIO types of memory cards. | ||
|
||
This file documents differences between the core properties described | ||
by mmc.txt and the properties used by the omap mmc driver. | ||
|
||
Note that this driver will not work with omap2430 or later omaps, | ||
please see the omap hsmmc driver for the current omaps. | ||
|
||
Required properties: | ||
- compatible: Must be "ti,omap2420-mmc", for OMAP2420 controllers | ||
- ti,hwmods: For 2420, must be "msdi<n>", where n is controller | ||
instance starting 1 | ||
|
||
Examples: | ||
|
||
msdi1: mmc@4809c000 { | ||
compatible = "ti,omap2420-mmc"; | ||
ti,hwmods = "msdi1"; | ||
reg = <0x4809c000 0x80>; | ||
interrupts = <83>; | ||
dmas = <&sdma 61 &sdma 62>; | ||
dma-names = "tx", "rx"; | ||
}; | ||
|
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 was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
00-INDEX | ||
- This file | ||
gpio.txt | ||
- Introduction to GPIOs and their kernel interfaces | ||
consumer.txt | ||
- How to obtain and use GPIOs in a driver | ||
driver.txt | ||
- How to write a GPIO driver | ||
board.txt | ||
- How to assign GPIOs to a consumer device and a function | ||
sysfs.txt | ||
- Information about the GPIO sysfs interface | ||
gpio-legacy.txt | ||
- Historical documentation of the deprecated GPIO integer interface |
Oops, something went wrong.