From: florian.vaussard@epfl.ch (Florian Vaussard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/7] ARM: dts: overo: Add LIS33DE accelerometer
Date: Tue, 11 Mar 2014 13:20:30 +0100 [thread overview]
Message-ID: <1394540435-25401-3-git-send-email-florian.vaussard@epfl.ch> (raw)
In-Reply-To: <1394540435-25401-1-git-send-email-florian.vaussard@epfl.ch>
The LIS33DE accelerometer is used on several Gumstix expansion boards,
thus add the DT node to omap3-overo-common-peripherals.dtsi.
For the boards that do not have the accelerometer (like Tobi), mark the
status as disabled.
Signed-off-by: Florian Vaussard <florian.vaussard@epfl.ch>
---
.../boot/dts/omap3-overo-common-peripherals.dtsi | 44 ++++++++++++++++++++++
arch/arm/boot/dts/omap3-overo-tobi-common.dtsi | 4 ++
2 files changed, 48 insertions(+)
diff --git a/arch/arm/boot/dts/omap3-overo-common-peripherals.dtsi b/arch/arm/boot/dts/omap3-overo-common-peripherals.dtsi
index bca81ae..5831bcc 100644
--- a/arch/arm/boot/dts/omap3-overo-common-peripherals.dtsi
+++ b/arch/arm/boot/dts/omap3-overo-common-peripherals.dtsi
@@ -10,6 +10,22 @@
* Peripherals common to all Gumstix Overo boards (Tobi, Summit, Palo43,...)
*/
+/ {
+ lis33_3v3: lis33-3v3-reg {
+ compatible = "regulator-fixed";
+ regulator-name = "lis33-3v3-reg";
+ regulator-min-microvolt = <3300000>;
+ regulator-max-microvolt = <3300000>;
+ };
+
+ lis33_1v8: lis33-1v8-reg {
+ compatible = "regulator-fixed";
+ regulator-name = "lis33-1v8-reg";
+ regulator-min-microvolt = <1800000>;
+ regulator-max-microvolt = <1800000>;
+ };
+};
+
&omap3_pmx_core {
i2c3_pins: pinmux_i2c3_pins {
pinctrl-single,pins = <
@@ -37,6 +53,34 @@
reg = <0x51>;
pagesize = <8>;
};
+
+ lis33de: lis33de at 1d {
+ compatible = "st,lis33de", "st,lis3lv02d";
+ reg = <0x1d>;
+ Vdd-supply = <&lis33_1v8>;
+ Vdd_IO-supply = <&lis33_3v3>;
+
+ st,click-single-x;
+ st,click-single-y;
+ st,click-single-z;
+ st,click-thresh-x = <10>;
+ st,click-thresh-y = <10>;
+ st,click-thresh-z = <10>;
+ st,irq1-click;
+ st,irq2-click;
+ st,wakeup-x-lo;
+ st,wakeup-x-hi;
+ st,wakeup-y-lo;
+ st,wakeup-y-hi;
+ st,wakeup-z-lo;
+ st,wakeup-z-hi;
+ st,min-limit-x = <120>;
+ st,min-limit-y = <120>;
+ st,min-limit-z = <140>;
+ st,max-limit-x = <550>;
+ st,max-limit-y = <550>;
+ st,max-limit-z = <750>;
+ };
};
&mmc3 {
diff --git a/arch/arm/boot/dts/omap3-overo-tobi-common.dtsi b/arch/arm/boot/dts/omap3-overo-tobi-common.dtsi
index 060eb77..13df50b 100644
--- a/arch/arm/boot/dts/omap3-overo-tobi-common.dtsi
+++ b/arch/arm/boot/dts/omap3-overo-tobi-common.dtsi
@@ -35,3 +35,7 @@
};
};
+&lis33de {
+ status = "disabled";
+};
+
--
1.8.3.2
next prev parent reply other threads:[~2014-03-11 12:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-11 12:20 [PATCH 0/7] ARM: dts: overo: Add new expansion boards Florian Vaussard
2014-03-11 12:20 ` [PATCH 1/7] ARM: dts: overo: Create a file for common Gumstix peripherals Florian Vaussard
2014-03-11 12:20 ` Florian Vaussard [this message]
2014-03-11 12:20 ` [PATCH 3/7] ARM: dts: Add support for the Overo Palo43 Florian Vaussard
2014-03-11 12:20 ` [PATCH 4/7] ARM: dts: Add support for the Overo Gallop43 Florian Vaussard
2014-03-11 12:20 ` [PATCH 5/7] ARM: dts: Add support for the Overo Alto35 Florian Vaussard
2014-03-11 12:20 ` [PATCH 6/7] ARM: dts: Add support for the Overo Chestnut43 Florian Vaussard
2014-03-11 12:20 ` [PATCH 7/7] ARM: dts: Add support for the Overo Summit Florian Vaussard
2014-03-12 17:22 ` [PATCH 0/7] ARM: dts: overo: Add new expansion boards Tony Lindgren
2014-03-13 8:29 ` Florian Vaussard
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=1394540435-25401-3-git-send-email-florian.vaussard@epfl.ch \
--to=florian.vaussard@epfl.ch \
--cc=linux-arm-kernel@lists.infradead.org \
/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;
as well as URLs for NNTP newsgroup(s).