From: dt.tangr@gmail.com (Daniel Tang)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] devicetree: Add support for I2C and related devices to TI-NSPIRE platform
Date: Sun, 31 May 2015 19:44:02 +1000 [thread overview]
Message-ID: <1433065442-92750-1-git-send-email-dt.tangr@gmail.com> (raw)
This patch adds device tree entries for I2C hardware to the TI-NSPIRE
platforms that have it.
It also adds support for the touchpad that communicates over the I2C
bus.
Signed-off-by: Daniel Tang <dt.tangr@gmail.com>
---
arch/arm/boot/dts/nspire-cx.dts | 13 +++++++++++++
arch/arm/boot/dts/nspire-tp.dts | 14 ++++++++++++++
2 files changed, 27 insertions(+)
diff --git a/arch/arm/boot/dts/nspire-cx.dts b/arch/arm/boot/dts/nspire-cx.dts
index 08e0b81..e369e3b 100644
--- a/arch/arm/boot/dts/nspire-cx.dts
+++ b/arch/arm/boot/dts/nspire-cx.dts
@@ -104,9 +104,22 @@
#size-cells = <1>;
i2c at 90050000 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
compatible = "snps,designware-i2c";
reg = <0x90050000 0x1000>;
interrupts = <20>;
+
+ clocks = <&apb_pclk>;
+
+ i2c-sda-falling-time-ns = <810>;
+ i2c-scl-falling-time-ns = <2410>;
+
+ touchpad at 20 {
+ compatible = "synaptics_i2c";
+ reg = <0x20>;
+ };
};
};
};
diff --git a/arch/arm/boot/dts/nspire-tp.dts b/arch/arm/boot/dts/nspire-tp.dts
index 621391c..49fb97a 100644
--- a/arch/arm/boot/dts/nspire-tp.dts
+++ b/arch/arm/boot/dts/nspire-tp.dts
@@ -41,4 +41,18 @@
/ {
model = "TI-NSPIRE Touchpad";
compatible = "ti,nspire-tp";
+
+ i2c at gpio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ compatible = "i2c-gpio";
+ gpios = < &gpio 3 0 /* sda */
+ &gpio 1 0 /* scl */ >;
+
+ touchpad at 20 {
+ compatible = "synaptics_i2c";
+ reg = <0x20>;
+ };
+ };
};
--
2.2.1
next reply other threads:[~2015-05-31 9:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-31 9:44 Daniel Tang [this message]
2015-06-01 15:51 ` [PATCH] devicetree: Add support for I2C and related devices to TI-NSPIRE platform Arnd Bergmann
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=1433065442-92750-1-git-send-email-dt.tangr@gmail.com \
--to=dt.tangr@gmail.com \
--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