forked from torvalds/linux
-
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 'gpio-v3.12-1' of git://git.kernel.org/pub/scm/linux/kernel…
…/git/linusw/linux-gpio Pull GPIO updates from Linus Walleij: "This is the bulk of GPIO changes for the v3.12 series: - A new driver for the TZ1090 PDC which is used on the metag architecture. - A new driver for the Kontron ETX or COMexpress GPIO block. This is found on some ETX x86 devices. - A new driver for the Fintek Super-I/O chips, used on some x86 boards. - Added device tree probing on a few select GPIO blocks. - Drop the Exynos support from the Samsung GPIO driver. The Samsung maintainers have moved over to use the modernized pin control driver to provide GPIO for the modern platforms instead. - The usual bunch of non-critical fixes and cleanups" * tag 'gpio-v3.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-gpio: (36 commits) gpio: return -ENOTSUPP if debounce cannot be set gpio: improve error path in gpiolib gpio: add GPIO support for F71882FG and F71889F of: add vendor prefix for Microchip Technology Inc gpio: mcp23s08: rename the device tree property gpio: samsung: Drop support for Exynos SoCs gpio: pcf857x: Remove pdata argument to pcf857x_irq_domain_init() gpio: pcf857x: Sort headers alphabetically gpio: max7301: Reverting "Do not force SPI speed when using OF Platform" gpio: Fix bit masking in Kontron PLD GPIO driver gpio: pca953x: fix gpio input on gpio offsets >= 8 drivers/gpio: simplify use of devm_ioremap_resource drivers/gpio/gpio-omap.c: convert comma to semicolon gpio-lynxpoint: Fix warning about unbalanced pm_runtime_enable gpio: Fix platform driver name in Kontron PLD GPIO driver gpio: adnp: Fix segfault if request_threaded_irq fails gpio: msm: Staticize local variable 'msm_gpio' gpio: gpiolib-of.c: make error message more meaningful by adding the node name and index gpio: use dev_get_platdata() gpio/mxc: add chained_irq_enter/exit() to mx2_gpio_irq_handler ...
- Loading branch information
Showing
58 changed files
with
1,967 additions
and
1,031 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Palmas GPIO controller bindings | ||
|
||
Required properties: | ||
- compatible: | ||
- "ti,palams-gpio" for palma series of the GPIO controller | ||
- "ti,tps80036-gpio" for Palma series device TPS80036. | ||
- "ti,tps65913-gpio" for palma series device TPS65913. | ||
- "ti,tps65914-gpio" for palma series device TPS65914. | ||
- #gpio-cells : Should be two. | ||
- first cell is the gpio pin number | ||
- second cell is used to specify the gpio polarity: | ||
0 = active high | ||
1 = active low | ||
- gpio-controller : Marks the device node as a GPIO controller. | ||
|
||
Note: This gpio node will be sub node of palmas node. | ||
|
||
Example: | ||
palmas: tps65913@58 { | ||
::::::::::: | ||
palmas_gpio: palmas_gpio { | ||
compatible = "ti,palmas-gpio"; | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
}; | ||
::::::::::: | ||
}; |
45 changes: 45 additions & 0 deletions
45
Documentation/devicetree/bindings/gpio/gpio-tz1090-pdc.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,45 @@ | ||
ImgTec TZ1090 PDC GPIO Controller | ||
|
||
Required properties: | ||
- compatible: Compatible property value should be "img,tz1090-pdc-gpio". | ||
|
||
- reg: Physical base address of the controller and length of memory mapped | ||
region. This starts at and cover the SOC_GPIO_CONTROL registers. | ||
|
||
- gpio-controller: Specifies that the node is a gpio controller. | ||
|
||
- #gpio-cells: Should be 2. The syntax of the gpio specifier used by client | ||
nodes should have the following values. | ||
<[phandle of the gpio controller node] | ||
[PDC gpio number] | ||
[gpio flags]> | ||
|
||
Values for gpio specifier: | ||
- GPIO number: a value in the range 0 to 6. | ||
- GPIO flags: bit field of flags, as defined in <dt-bindings/gpio/gpio.h>. | ||
Only the following flags are supported: | ||
GPIO_ACTIVE_HIGH | ||
GPIO_ACTIVE_LOW | ||
|
||
Optional properties: | ||
- gpio-ranges: Mapping to pin controller pins (as described in | ||
Documentation/devicetree/bindings/gpio/gpio.txt) | ||
|
||
- interrupts: Individual syswake interrupts (other GPIOs cannot interrupt) | ||
|
||
|
||
Example: | ||
|
||
pdc_gpios: gpio-controller@02006500 { | ||
gpio-controller; | ||
#gpio-cells = <2>; | ||
|
||
compatible = "img,tz1090-pdc-gpio"; | ||
reg = <0x02006500 0x100>; | ||
|
||
interrupt-parent = <&pdc>; | ||
interrupts = <8 IRQ_TYPE_NONE>, /* Syswake 0 */ | ||
<9 IRQ_TYPE_NONE>, /* Syswake 1 */ | ||
<10 IRQ_TYPE_NONE>; /* Syswake 2 */ | ||
gpio-ranges = <&pdc_pinctrl 0 0 7>; | ||
}; |
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,88 @@ | ||
ImgTec TZ1090 GPIO Controller | ||
|
||
Required properties: | ||
- compatible: Compatible property value should be "img,tz1090-gpio". | ||
|
||
- reg: Physical base address of the controller and length of memory mapped | ||
region. | ||
|
||
- #address-cells: Should be 1 (for bank subnodes) | ||
|
||
- #size-cells: Should be 0 (for bank subnodes) | ||
|
||
- Each bank of GPIOs should have a subnode to represent it. | ||
|
||
Bank subnode required properties: | ||
- reg: Index of bank in the range 0 to 2. | ||
|
||
- gpio-controller: Specifies that the node is a gpio controller. | ||
|
||
- #gpio-cells: Should be 2. The syntax of the gpio specifier used by client | ||
nodes should have the following values. | ||
<[phandle of the gpio controller node] | ||
[gpio number within the gpio bank] | ||
[gpio flags]> | ||
|
||
Values for gpio specifier: | ||
- GPIO number: a value in the range 0 to 29. | ||
- GPIO flags: bit field of flags, as defined in <dt-bindings/gpio/gpio.h>. | ||
Only the following flags are supported: | ||
GPIO_ACTIVE_HIGH | ||
GPIO_ACTIVE_LOW | ||
|
||
Bank subnode optional properties: | ||
- gpio-ranges: Mapping to pin controller pins (as described in | ||
Documentation/devicetree/bindings/gpio/gpio.txt) | ||
|
||
- interrupts: Interrupt for the entire bank | ||
|
||
- interrupt-controller: Specifies that the node is an interrupt controller | ||
|
||
- #interrupt-cells: Should be 2. The syntax of the interrupt specifier used by | ||
client nodes should have the following values. | ||
<[phandle of the interurupt controller] | ||
[gpio number within the gpio bank] | ||
[irq flags]> | ||
|
||
Values for irq specifier: | ||
- GPIO number: a value in the range 0 to 29 | ||
- IRQ flags: value to describe edge and level triggering, as defined in | ||
<dt-bindings/interrupt-controller/irq.h>. Only the following flags are | ||
supported: | ||
IRQ_TYPE_EDGE_RISING | ||
IRQ_TYPE_EDGE_FALLING | ||
IRQ_TYPE_EDGE_BOTH | ||
IRQ_TYPE_LEVEL_HIGH | ||
IRQ_TYPE_LEVEL_LOW | ||
|
||
|
||
|
||
Example: | ||
|
||
gpios: gpio-controller@02005800 { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
compatible = "img,tz1090-gpio"; | ||
reg = <0x02005800 0x90>; | ||
|
||
/* bank 0 with an interrupt */ | ||
gpios0: bank@0 { | ||
#gpio-cells = <2>; | ||
#interrupt-cells = <2>; | ||
reg = <0>; | ||
interrupts = <13 IRQ_TYPE_LEVEL_HIGH>; | ||
gpio-controller; | ||
gpio-ranges = <&pinctrl 0 0 30>; | ||
interrupt-controller; | ||
}; | ||
|
||
/* bank 2 without interrupt */ | ||
gpios2: bank@2 { | ||
#gpio-cells = <2>; | ||
reg = <2>; | ||
gpio-controller; | ||
gpio-ranges = <&pinctrl 0 60 30>; | ||
}; | ||
}; | ||
|
||
|
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 |
---|---|---|
|
@@ -1320,7 +1320,6 @@ L: [email protected] (moderated for non-subscribers) | |
S: Maintained | ||
F: arch/arm/mach-vt8500/ | ||
F: drivers/clocksource/vt8500_timer.c | ||
F: drivers/gpio/gpio-vt8500.c | ||
F: drivers/i2c/busses/i2c-wmt.c | ||
F: drivers/mmc/host/wmt-sdmmc.c | ||
F: drivers/pwm/pwm-vt8500.c | ||
|
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
Oops, something went wrong.