From: Shengzhou Liu <Shengzhou.Liu@freescale.com>
To: <linuxppc-dev@lists.ozlabs.org>, <scottwood@freescale.com>
Cc: Shengzhou Liu <Shengzhou.Liu@freescale.com>
Subject: [PATCH 1/2 v2] powerpc/t1024rdb: add ina220 current sensor node
Date: Tue, 7 Jul 2015 14:17:40 +0800 [thread overview]
Message-ID: <1436249861-48406-1-git-send-email-Shengzhou.Liu@freescale.com> (raw)
Add support for INA220 current sensor.
Signed-off-by: Shengzhou Liu <Shengzhou.Liu@freescale.com>
---
v2: rename node name to 'current-sensor' for generic.
arch/powerpc/boot/dts/t1024rdb.dts | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/arch/powerpc/boot/dts/t1024rdb.dts b/arch/powerpc/boot/dts/t1024rdb.dts
index 733e723..bf05e32 100644
--- a/arch/powerpc/boot/dts/t1024rdb.dts
+++ b/arch/powerpc/boot/dts/t1024rdb.dts
@@ -114,6 +114,12 @@
reg = <0x4c>;
};
+ current-sensor@40 {
+ compatible = "ti,ina220";
+ reg = <0x40>;
+ shunt-resistor = <1000>;
+ };
+
eeprom@50 {
compatible = "atmel,24c256";
reg = <0x50>;
--
2.1.0.27.g96db324
next reply other threads:[~2015-07-07 6:22 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-07 6:17 Shengzhou Liu [this message]
2015-07-07 6:17 ` [PATCH 2/2 v2] powerpc/t1023rdb: add ina220 current sensor node Shengzhou Liu
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=1436249861-48406-1-git-send-email-Shengzhou.Liu@freescale.com \
--to=shengzhou.liu@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=scottwood@freescale.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;
as well as URLs for NNTP newsgroup(s).