Skip to contentSkip to conversation

gpio/tegra: dt: add binding for gpio polarity

PATCH Applied Olof Johansson 3 participants 3 messages Jul 15, 2011 2 messages not in the archive

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio/tegra: dt: add binding for gpio polarity

Allocate one bit in the available extra cell to indicate if the gpio should be considered logically inverted.

---
 .../devicetree/bindings/gpio/gpio_nvidia.txt       |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Documentation/devicetree/bindings/gpio/gpio_nvidia.txt +2 -1
index 64aac39..adcf55c 100644
@@ -3,5 +3,6 @@ NVIDIA Tegra 2 GPIO controller
 Required properties:
 - compatible : "nvidia,tegra20-gpio"
 - #gpio-cells : Should be two. The first cell is the pin number and the
-  second cell is used to specify optional parameters (currently unused).
+  second cell is used to specify optional parameters:
+  - bit 0 specifies polarity (0 for normal, 1 for inverted)
 - gpio-controller : Marks the device node as a GPIO controller.
Signature · 1 line
1.7.4.1

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Olof Johansson wrote at Thursday, July 14, 2011 11:17 PM:

Quoted 4 lines

Allocate one bit in the available extra cell to indicate if the gpio should be considered logically inverted.

Quoted 19 lines
---
 .../devicetree/bindings/gpio/gpio_nvidia.txt       |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Documentation/devicetree/bindings/gpio/gpio_nvidia.txt +2 -2
index 64aac39..adcf55c 100644
@@ -3,5 +3,6 @@ NVIDIA Tegra 2 GPIO controller
 Required properties:
 - compatible : "nvidia,tegra20-gpio"
 - #gpio-cells : Should be two. The first cell is the pin number and the
-  second cell is used to specify optional parameters (currently unused).
+  second cell is used to specify optional parameters:
+  - bit 0 specifies polarity (0 for normal, 1 for inverted)
 - gpio-controller : Marks the device node as a GPIO controller.
--

1.7.4.1

Signature · 1 line
nvpublic

A message that is not in the archive (sent off-list or not yet received): 74CDBE0F657A3D45AFBB94109FB122FF049E834C19-C7FfzLzN0UxDw2glCA4ptUEOCMrvLtNR@public.gmane.org

Applied
#4 lore raw
Quoted 8 lines · Stephen Warren

Olof Johansson wrote at Thursday, July 14, 2011 11:17 PM:

Quoted 4 lines

Allocate one bit in the available extra cell to indicate if the gpio should be considered logically inverted.

Applied, thanks.

g.

Quoted 23 lines
Quoted 19 lines
---
 .../devicetree/bindings/gpio/gpio_nvidia.txt       |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Documentation/devicetree/bindings/gpio/gpio_nvidia.txt +2 -2
index 64aac39..adcf55c 100644
@@ -3,5 +3,6 @@ NVIDIA Tegra 2 GPIO controller
 Required properties:
 - compatible : "nvidia,tegra20-gpio"
 - #gpio-cells : Should be two. The first cell is the pin number and the
-  second cell is used to specify optional parameters (currently unused).
+  second cell is used to specify optional parameters:
+  - bit 0 specifies polarity (0 for normal, 1 for inverted)
 - gpio-controller : Marks the device node as a GPIO controller.
--

1.7.4.1

Signature · 1 line
nvpublic