Commit 6b8db132 authored by Lee Jones's avatar Lee Jones

ARM: ux500: Add support for gpio-keys and Proximity Sensor for HREF

Here we ensure the SFH7741 Proximity Sensor is registered through
gpio-keys when booting with Device Tree enabled.
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent dd06faff
...@@ -16,6 +16,17 @@ memory { ...@@ -16,6 +16,17 @@ memory {
reg = <0x00000000 0x20000000>; reg = <0x00000000 0x20000000>;
}; };
gpio_keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
button@1 {
linux,code = <11>;
label = "SFH7741 Proximity Sensor";
};
};
soc-u9500 { soc-u9500 {
uart@80120000 { uart@80120000 {
status = "okay"; status = "okay";
......
...@@ -17,6 +17,12 @@ / { ...@@ -17,6 +17,12 @@ / {
model = "ST-Ericsson HREF (pre-v60) platform with Device Tree"; model = "ST-Ericsson HREF (pre-v60) platform with Device Tree";
compatible = "st-ericsson,mop500"; compatible = "st-ericsson,mop500";
gpio_keys {
button@1 {
gpios = <&tc3589x_gpio 7 0x4>;
};
};
soc-u9500 { soc-u9500 {
i2c@80004000 { i2c@80004000 {
tps61052@33 { tps61052@33 {
......
...@@ -16,4 +16,10 @@ ...@@ -16,4 +16,10 @@
/ { / {
model = "ST-Ericsson HREF (v60+) platform with Device Tree"; model = "ST-Ericsson HREF (v60+) platform with Device Tree";
compatible = "st-ericsson,hrefv60+"; compatible = "st-ericsson,hrefv60+";
gpio_keys {
button@1 {
gpios = <&gpio6 25 0x4>;
};
};
}; };
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