From: "Yang,Wei" <Wei.Yang@windriver.com>
To: Jia Hongtao <hongtao.jia@freescale.com>
Cc: B07421@freescale.com, linuxppc-dev@lists.ozlabs.org,
b38951@freescale.com
Subject: Re: [PATCH] powerpc: Add I2C bus multiplexer node for B4 and T4240QDS
Date: Wed, 4 Sep 2013 09:27:26 +0800 [thread overview]
Message-ID: <52268C7E.4040209@windriver.com> (raw)
In-Reply-To: <1378194704-29909-1-git-send-email-hongtao.jia@freescale.com>
On 09/03/2013 03:51 PM, Jia Hongtao wrote:
> In both B4 and T4240QDS platform PCA9547 I2C bus multiplexer is used.
Hi Hongtao,
If you want to support I2C bus multiplexer, for T4 and B4QDS platform,
since some eeprom devices is connected to PCA9574 I2C bus
multiplexer, so these devices should be connected to pca9547 node. Just
like the following, what do you think of it?
+ pca9547@77 {
+ compatible = "philips,pca9547";
+ reg = <0x77>;
+ #address-cells = <1>;
+ #size-cells = <0>;
+ channel@0 {
+ #address-cells = <1>;
+ #size-cells = <0>;
+ reg = <0>;
+ eeprom@51 {
+ compatible =
"at24,24c256";
+ reg = <0x51>;
+ };
+ eeprom@52 {
+ compatible =
"at24,24c256";
+ reg = <0x52>;
+ };
+ eeprom@53 {
+ compatible =
"at24,24c256";
+ reg = <0x53>;
+ };
+ eeprom@54 {
+ compatible =
"at24,24c256";
+ reg = <0x54>;
+ };
+ eeprom@55 {
+ compatible =
"at24,24c256";
+ reg = <0x55>;
+ };
+ eeprom@56 {
+ compatible =
"at24,24c256";
+ reg = <0x56>;
+ };
+ rtc@68 {
+ compatible =
"dallas,ds3232";
+ reg = <0x68>;
+ interrupts =
<0x1 0x1 0 0>;
+ };
+ };
Wei
>
> Signed-off-by: Jia Hongtao <hongtao.jia@freescale.com>
> ---
> arch/powerpc/boot/dts/b4qds.dtsi | 4 ++++
> arch/powerpc/boot/dts/t4240qds.dts | 4 ++++
> 2 files changed, 8 insertions(+)
>
> diff --git a/arch/powerpc/boot/dts/b4qds.dtsi b/arch/powerpc/boot/dts/b4qds.dtsi
> index e6d2f8f..2aa3399 100644
> --- a/arch/powerpc/boot/dts/b4qds.dtsi
> +++ b/arch/powerpc/boot/dts/b4qds.dtsi
> @@ -120,6 +120,10 @@
> };
>
> i2c@118000 {
> + pca9547@77 {
> + compatible = "philips,pca9547";
> + reg = <0x77>;
> + };
> eeprom@50 {
> compatible = "at24,24c64";
> reg = <0x50>;
> diff --git a/arch/powerpc/boot/dts/t4240qds.dts b/arch/powerpc/boot/dts/t4240qds.dts
> index 0555976..084db57 100644
> --- a/arch/powerpc/boot/dts/t4240qds.dts
> +++ b/arch/powerpc/boot/dts/t4240qds.dts
> @@ -118,6 +118,10 @@
> };
>
> i2c@118000 {
> + pca9547@77 {
> + compatible = "philips,pca9547";
> + reg = <0x77>;
> + };
> eeprom@51 {
> compatible = "at24,24c256";
> reg = <0x51>;
next prev parent reply other threads:[~2013-09-04 1:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-03 7:51 [PATCH] powerpc: Add I2C bus multiplexer node for B4 and T4240QDS Jia Hongtao
2013-09-04 1:27 ` Yang,Wei [this message]
2013-09-04 3:30 ` Tang Yuantian-B29983
2013-09-05 18:40 ` Scott Wood
2013-09-06 2:30 ` Tang Yuantian-B29983
2013-09-06 15:17 ` Scott Wood
2013-09-04 3:37 ` Jia Hongtao-B38951
2013-09-04 4:03 ` Tang Yuantian-B29983
2013-09-04 4:10 ` Jia Hongtao-B38951
2013-09-04 4:27 ` Yang,Wei
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=52268C7E.4040209@windriver.com \
--to=wei.yang@windriver.com \
--cc=B07421@freescale.com \
--cc=b38951@freescale.com \
--cc=hongtao.jia@freescale.com \
--cc=linuxppc-dev@lists.ozlabs.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).