Commit 94832e07 authored by Sergio Paracuellos's avatar Sergio Paracuellos Committed by Greg Kroah-Hartman

staging: mt7621-gpio: dt-bindings: complete documentation for the gpio

This commit reviews and complete documentation for gpio related stuff
in the mt7621 device. It should be complete now.
Signed-off-by: default avatarSergio Paracuellos <sergio.paracuellos@gmail.com>
Reviewed-by: default avatarNeilBrown <neil@brown.name>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f910cc46
...@@ -13,15 +13,17 @@ Required properties for the top level node: ...@@ -13,15 +13,17 @@ Required properties for the top level node:
- "mediatek,mt7621-gpio" for Mediatek controllers - "mediatek,mt7621-gpio" for Mediatek controllers
- reg : Physical base address and length of the controller's registers - reg : Physical base address and length of the controller's registers
- interrupt-parent : phandle of the parent interrupt controller. - interrupt-parent : phandle of the parent interrupt controller.
- interrupts = Interrupt specifier for the controllers interrupt - interrupts : Interrupt specifier for the controllers interrupt.
- interrupt-controller : Mark the device node as an interrupt controller.
- #interrupt-cells : Should be 1. The first cell is the GPIO number.
Required properties for the GPIO bank node: Required properties for the GPIO bank node:
- compatible: - compatible:
- "mediatek,mt7621-gpio-bank" for Mediatek banks - "mediatek,mt7621-gpio-bank" for Mediatek banks
- #gpio-cells : Should be two. - #gpio-cells : Should be two. The first cell is the GPIO pin number and the
- first cell is the pin number second cell specifies GPIO flags, as defined in <dt-bindings/gpio/gpio.h>.
- second cell is used to specify optional parameters (unused) Only the GPIO_ACTIVE_HIGH and GPIO_ACTIVE_LOW flags are supported.
- gpio-controller : Marks the device node as a GPIO controller - gpio-controller : Marks the device node as a GPIO controller.
- reg : The id of the bank that the node describes. - reg : The id of the bank that the node describes.
Example: Example:
...@@ -34,6 +36,8 @@ Example: ...@@ -34,6 +36,8 @@ Example:
interrupt-parent = <&gic>; interrupt-parent = <&gic>;
interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>; interrupts = <GIC_SHARED 12 IRQ_TYPE_LEVEL_HIGH>;
interrupt-controller;
#interrupt-cells = <1>;
gpio0: bank@0 { gpio0: bank@0 {
reg = <0>; reg = <0>;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment