From: Kumar Gala <galak@kernel.crashing.org>
To: Jia Hongtao <hongtao.jia@freescale.com>
Cc: B07421@freescale.com, linuxppc-dev@lists.ozlabs.org,
Wei.Yang@windriver.com
Subject: Re: [PATCH V2] powerpc: Add I2C bus multiplexer node for B4 and T4240QDS
Date: Thu, 5 Sep 2013 13:41:09 -0500 [thread overview]
Message-ID: <7BA50BB5-9A63-4EA5-91E4-D04576892AAF@kernel.crashing.org> (raw)
In-Reply-To: <1378348907-3137-1-git-send-email-hongtao.jia@freescale.com>
On Sep 4, 2013, at 9:41 PM, Jia Hongtao wrote:
> In both B4 and T4240QDS platform PCA9547 I2C bus multiplexer is used.
> The sub-nodes are also reorganized according to right I2C topology.
>=20
> Signed-off-by: Jia Hongtao <hongtao.jia@freescale.com>
> ---
> V2 change log:
> Reorganized the sub-nodes under I2C multiplexer to represent right =
topology.
>=20
> arch/powerpc/boot/dts/b4qds.dtsi | 49 +++++++++++++++++-----------
> arch/powerpc/boot/dts/t4240qds.dts | 67 =
++++++++++++++++++++++----------------
> 2 files changed, 69 insertions(+), 47 deletions(-)
>=20
> diff --git a/arch/powerpc/boot/dts/b4qds.dtsi =
b/arch/powerpc/boot/dts/b4qds.dtsi
> index e6d2f8f..de8cb38 100644
> --- a/arch/powerpc/boot/dts/b4qds.dtsi
> +++ b/arch/powerpc/boot/dts/b4qds.dtsi
> @@ -120,25 +120,36 @@
> };
>=20
> i2c@118000 {
> - eeprom@50 {
> - compatible =3D "at24,24c64";
> - reg =3D <0x50>;
> - };
> - eeprom@51 {
> - compatible =3D "at24,24c256";
> - reg =3D <0x51>;
> - };
> - eeprom@53 {
> - compatible =3D "at24,24c256";
> - reg =3D <0x53>;
> - };
> - eeprom@57 {
> - compatible =3D "at24,24c256";
> - reg =3D <0x57>;
> - };
> - rtc@68 {
> - compatible =3D "dallas,ds3232";
> - reg =3D <0x68>;
> + pca9547@77 {
> + compatible =3D "philips,pca9547";
We seem to be using nxp instead of philips now.
> + reg =3D <0x77>;
> + #address-cells =3D <1>;
> + #size-cells =3D <0>;
> + channel@0 {
channel should probably be i2c
[same comments below]
> + #address-cells =3D <1>;
> + #size-cells =3D <0>;
> + reg =3D <0>;
> + eeprom@50 {
> + compatible =3D =
"at24,24c64";
> + reg =3D <0x50>;
> + };
> + eeprom@51 {
> + compatible =3D =
"at24,24c256";
> + reg =3D <0x51>;
> + };
> + eeprom@53 {
> + compatible =3D =
"at24,24c256";
> + reg =3D <0x53>;
> + };
> + eeprom@57 {
> + compatible =3D =
"at24,24c256";
> + reg =3D <0x57>;
> + };
> + rtc@68 {
> + compatible =3D =
"dallas,ds3232";
> + reg =3D <0x68>;
> + };
> + };
> };
> };
>=20
> diff --git a/arch/powerpc/boot/dts/t4240qds.dts =
b/arch/powerpc/boot/dts/t4240qds.dts
> index 0555976..ae68595 100644
> --- a/arch/powerpc/boot/dts/t4240qds.dts
> +++ b/arch/powerpc/boot/dts/t4240qds.dts
> @@ -118,34 +118,45 @@
> };
>=20
> i2c@118000 {
> - eeprom@51 {
> - compatible =3D "at24,24c256";
> - reg =3D <0x51>;
> - };
> - eeprom@52 {
> - compatible =3D "at24,24c256";
> - reg =3D <0x52>;
> - };
> - eeprom@53 {
> - compatible =3D "at24,24c256";
> - reg =3D <0x53>;
> - };
> - eeprom@54 {
> - compatible =3D "at24,24c256";
> - reg =3D <0x54>;
> - };
> - eeprom@55 {
> - compatible =3D "at24,24c256";
> - reg =3D <0x55>;
> - };
> - eeprom@56 {
> - compatible =3D "at24,24c256";
> - reg =3D <0x56>;
> - };
> - rtc@68 {
> - compatible =3D "dallas,ds3232";
> - reg =3D <0x68>;
> - interrupts =3D <0x1 0x1 0 0>;
> + pca9547@77 {
> + compatible =3D "philips,pca9547";
> + reg =3D <0x77>;
> + #address-cells =3D <1>;
> + #size-cells =3D <0>;
> + channel@0 {
> + #address-cells =3D <1>;
> + #size-cells =3D <0>;
> + reg =3D <0>;
> + eeprom@51 {
> + compatible =3D =
"at24,24c256";
> + reg =3D <0x51>;
> + };
> + eeprom@52 {
> + compatible =3D =
"at24,24c256";
> + reg =3D <0x52>;
> + };
> + eeprom@53 {
> + compatible =3D =
"at24,24c256";
> + reg =3D <0x53>;
> + };
> + eeprom@54 {
> + compatible =3D =
"at24,24c256";
> + reg =3D <0x54>;
> + };
> + eeprom@55 {
> + compatible =3D =
"at24,24c256";
> + reg =3D <0x55>;
> + };
> + eeprom@56 {
> + compatible =3D =
"at24,24c256";
> + reg =3D <0x56>;
> + };
> + rtc@68 {
> + compatible =3D =
"dallas,ds3232";
> + reg =3D <0x68>;
> + interrupts =3D <0x1 0x1 =
0 0>;
> + };
> + };
> };
> };
> };
> --=20
> 1.8.0
>=20
>=20
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
next prev parent reply other threads:[~2013-09-05 18:41 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-05 2:41 [PATCH V2] powerpc: Add I2C bus multiplexer node for B4 and T4240QDS Jia Hongtao
2013-09-05 18:41 ` Kumar Gala [this message]
2013-09-06 3:33 ` Jia Hongtao-B38951
2013-09-06 16:10 ` Kumar Gala
2013-09-09 1:34 ` Jia Hongtao-B38951
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=7BA50BB5-9A63-4EA5-91E4-D04576892AAF@kernel.crashing.org \
--to=galak@kernel.crashing.org \
--cc=B07421@freescale.com \
--cc=Wei.Yang@windriver.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