drivers/gpio: gpio-nomadik: Device Tree bindings

This creates Device Tree bindings for the Nomadik GPIO driver.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
[Split off from the patch actually implementing the bindings]
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Lee Jones 2012-04-13 15:05:05 +01:00 committed by Linus Walleij
parent 2cfaa62de5
commit c0b133bda1
2 changed files with 23 additions and 5 deletions

View File

@ -60,6 +60,8 @@
interrupts = <0 119 0x4>; interrupts = <0 119 0x4>;
supports-sleepmode; supports-sleepmode;
gpio-controller; gpio-controller;
#gpio-cells = <2>;
gpio-bank = <0>;
}; };
gpio1: gpio@8012e080 { gpio1: gpio@8012e080 {
@ -69,6 +71,8 @@
interrupts = <0 120 0x4>; interrupts = <0 120 0x4>;
supports-sleepmode; supports-sleepmode;
gpio-controller; gpio-controller;
#gpio-cells = <2>;
gpio-bank = <1>;
}; };
gpio2: gpio@8000e000 { gpio2: gpio@8000e000 {
@ -78,6 +82,8 @@
interrupts = <0 121 0x4>; interrupts = <0 121 0x4>;
supports-sleepmode; supports-sleepmode;
gpio-controller; gpio-controller;
#gpio-cells = <2>;
gpio-bank = <2>;
}; };
gpio3: gpio@8000e080 { gpio3: gpio@8000e080 {
@ -87,6 +93,8 @@
interrupts = <0 122 0x4>; interrupts = <0 122 0x4>;
supports-sleepmode; supports-sleepmode;
gpio-controller; gpio-controller;
#gpio-cells = <2>;
gpio-bank = <3>;
}; };
gpio4: gpio@8000e100 { gpio4: gpio@8000e100 {
@ -96,6 +104,8 @@
interrupts = <0 123 0x4>; interrupts = <0 123 0x4>;
supports-sleepmode; supports-sleepmode;
gpio-controller; gpio-controller;
#gpio-cells = <2>;
gpio-bank = <4>;
}; };
gpio5: gpio@8000e180 { gpio5: gpio@8000e180 {
@ -105,6 +115,8 @@
interrupts = <0 124 0x4>; interrupts = <0 124 0x4>;
supports-sleepmode; supports-sleepmode;
gpio-controller; gpio-controller;
#gpio-cells = <2>;
gpio-bank = <5>;
}; };
gpio6: gpio@8011e000 { gpio6: gpio@8011e000 {
@ -114,6 +126,8 @@
interrupts = <0 125 0x4>; interrupts = <0 125 0x4>;
supports-sleepmode; supports-sleepmode;
gpio-controller; gpio-controller;
#gpio-cells = <2>;
gpio-bank = <6>;
}; };
gpio7: gpio@8011e080 { gpio7: gpio@8011e080 {
@ -123,6 +137,8 @@
interrupts = <0 126 0x4>; interrupts = <0 126 0x4>;
supports-sleepmode; supports-sleepmode;
gpio-controller; gpio-controller;
#gpio-cells = <2>;
gpio-bank = <7>;
}; };
gpio8: gpio@a03fe000 { gpio8: gpio@a03fe000 {
@ -132,6 +148,8 @@
interrupts = <0 127 0x4>; interrupts = <0 127 0x4>;
supports-sleepmode; supports-sleepmode;
gpio-controller; gpio-controller;
#gpio-cells = <2>;
gpio-bank = <8>;
}; };
usb@a03e0000 { usb@a03e0000 {

View File

@ -30,35 +30,35 @@
wakeup = <1>; wakeup = <1>;
linux,code = <2>; linux,code = <2>;
label = "userpb"; label = "userpb";
gpios = <&gpio1 0>; gpios = <&gpio1 0 0>;
}; };
button@2 { button@2 {
debounce_interval = <50>; debounce_interval = <50>;
wakeup = <1>; wakeup = <1>;
linux,code = <3>; linux,code = <3>;
label = "userpb"; label = "userpb";
gpios = <&gpio4 23>; gpios = <&gpio4 23 0>;
}; };
button@3 { button@3 {
debounce_interval = <50>; debounce_interval = <50>;
wakeup = <1>; wakeup = <1>;
linux,code = <4>; linux,code = <4>;
label = "userpb"; label = "userpb";
gpios = <&gpio4 23>; gpios = <&gpio4 24 0>;
}; };
button@4 { button@4 {
debounce_interval = <50>; debounce_interval = <50>;
wakeup = <1>; wakeup = <1>;
linux,code = <5>; linux,code = <5>;
label = "userpb"; label = "userpb";
gpios = <&gpio5 1>; gpios = <&gpio5 1 0>;
}; };
button@5 { button@5 {
debounce_interval = <50>; debounce_interval = <50>;
wakeup = <1>; wakeup = <1>;
linux,code = <6>; linux,code = <6>;
label = "userpb"; label = "userpb";
gpios = <&gpio5 2>; gpios = <&gpio5 2 0>;
}; };
}; };