提交 24ad02c4 编写于 作者: A Andreas Klinger 提交者: Rob Herring

gpio-omap.txt: add reg and interrupts properties

Document properties reg and interrupts for OMAP GPIO controller bindings

Also add unit address in node name of the example
Signed-off-by: NAndreas Klinger <ak@it-klinger.de>
Acked-by: NLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: NRob Herring <robh@kernel.org>
上级 485773d3
...@@ -5,6 +5,8 @@ Required properties: ...@@ -5,6 +5,8 @@ Required properties:
- "ti,omap2-gpio" for OMAP2 controllers - "ti,omap2-gpio" for OMAP2 controllers
- "ti,omap3-gpio" for OMAP3 controllers - "ti,omap3-gpio" for OMAP3 controllers
- "ti,omap4-gpio" for OMAP4 controllers - "ti,omap4-gpio" for OMAP4 controllers
- reg : Physical base address of the controller and length of memory mapped
region.
- gpio-controller : Marks the device node as a GPIO controller. - gpio-controller : Marks the device node as a GPIO controller.
- #gpio-cells : Should be two. - #gpio-cells : Should be two.
- first cell is the pin number - first cell is the pin number
...@@ -18,6 +20,8 @@ Required properties: ...@@ -18,6 +20,8 @@ Required properties:
2 = high-to-low edge triggered. 2 = high-to-low edge triggered.
4 = active high level-sensitive. 4 = active high level-sensitive.
8 = active low level-sensitive. 8 = active low level-sensitive.
- interrupts : The interrupt the controller is rising as output when an
interrupt occures
OMAP specific properties: OMAP specific properties:
- ti,hwmods: Name of the hwmod associated to the GPIO: - ti,hwmods: Name of the hwmod associated to the GPIO:
...@@ -29,11 +33,13 @@ OMAP specific properties: ...@@ -29,11 +33,13 @@ OMAP specific properties:
Example: Example:
gpio4: gpio4 { gpio0: gpio@44e07000 {
compatible = "ti,omap4-gpio"; compatible = "ti,omap4-gpio";
ti,hwmods = "gpio4"; reg = <0x44e07000 0x1000>;
ti,hwmods = "gpio1";
gpio-controller; gpio-controller;
#gpio-cells = <2>; #gpio-cells = <2>;
interrupt-controller; interrupt-controller;
#interrupt-cells = <2>; #interrupt-cells = <2>;
interrupts = <96>;
}; };
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册