From: Gabriel Fernandez <gabriel.fernandez.st@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: Lee Jones <lee.jones@linaro.org>,
Linus Walleij <linus.walleij@linaro.org>,
Olivier Clergeaud <olivier.clergeaud@st.com>,
Gabriel Fernandez <gabriel.fernandez@st.com>,
Gabriel Fernandez <gabriel.fernandez@stericsson.com>
Subject: [PATCH 4/4] ARM: u8540: Add DT probing for SFH7741 Proximity Sensor
Date: Wed, 29 May 2013 15:33:27 +0200 [thread overview]
Message-ID: <1369834407-30762-5-git-send-email-gabriel.fernandez.st@gmail.com> (raw)
In-Reply-To: <1369834407-30762-1-git-send-email-gabriel.fernandez.st@gmail.com>
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
prev parent reply other threads:[~2013-05-29 13:36 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-29 13:33 [PATCH 0/4] Introduce ccu8540 uib-v3 Gabriel Fernandez
2013-05-29 13:33 ` [PATCH 1/4] ARM: ux540: Add ccu8540-uib-v3 Device Tree Machine Gabriel Fernandez
2013-05-29 15:50 ` Lee Jones
2013-05-30 13:20 ` Gabriel Fernandez
2013-06-04 8:57 ` Linus Walleij
2013-05-29 13:33 ` [PATCH 2/4] ARM: u8540: Add device tree support for lp5521 leds Gabriel Fernandez
2013-05-29 15:52 ` Lee Jones
2013-05-29 13:33 ` [PATCH 3/4] ARM: u8540: Add device tree support for bh1780 Gabriel Fernandez
2013-05-29 15:54 ` Lee Jones
2013-05-29 13:33 ` Gabriel Fernandez [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1369834407-30762-5-git-send-email-gabriel.fernandez.st@gmail.com \
--to=gabriel.fernandez.st@gmail.com \
--cc=gabriel.fernandez@st.com \
--cc=gabriel.fernandez@stericsson.com \
--cc=lee.jones@linaro.org \
--cc=linus.walleij@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=olivier.clergeaud@st.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome