lkml.org 
[lkml]   [2013]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 4/4] ARM: u8540: Add DT probing for SFH7741 Proximity Sensor
Date
From: Gabriel Fernandez <gabriel.fernandez@st.com>

Here we ensure the SFH7741 Proximity Sensor is registered through
gpio-keys when booting with Device Tree enabled.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@stericsson.com>
---
arch/arm/boot/dts/ccu8540-uib-v3.dts | 15 +++++++++++++++
1 file changed, 15 insertions(+)

diff --git a/arch/arm/boot/dts/ccu8540-uib-v3.dts b/arch/arm/boot/dts/ccu8540-uib-v3.dts
index dc90571..26f3106 100644
--- a/arch/arm/boot/dts/ccu8540-uib-v3.dts
+++ b/arch/arm/boot/dts/ccu8540-uib-v3.dts
@@ -13,6 +13,21 @@

/ {
model = "ST-Ericsson U8540 platform with device tree UIB v3";
+
+ gpio_keys {
+ compatible = "gpio-keys";
+ #address-cells = <1>;
+ #size-cells = <0>;
+ v-vcc-supply = <&ab8500_ldo_aux1_reg>;
+
+ button@1 {
+ debounce_interval = <50>;
+ wakeup = <1>;
+ linux,code = <0xb>;
+ label = "SFH7741 Proximity Sensor";
+ gpios = <&gpio7 5 0x8>;
+ };
+ };
};

&i2c2 {
--
1.8.1.1


\
 
 \ /
  Last update: 2013-05-29 16:01    [W:0.068 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site