Devicetree
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
To: "Herzig,
	Christian"
	<Christian.Herzig-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org>
Cc: chris-jmrfutXsf6TiB9QmIjCX8w@public.gmane.org,
	devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.org
Subject: Re: Device Tree configuration for I2C-Multiplexer and its Clients
Date: Thu, 20 Aug 2009 09:27:07 -0600	[thread overview]
Message-ID: <fa686aa40908200827t2d5273c9g84f58f09b471074f@mail.gmail.com> (raw)
In-Reply-To: <D839955AA28B9A42A61B9181506E27C401B337A5-AR0Msg4NagxrwccGHPhLvUpAGwC+dI/u0e7PPNI6Mm0@public.gmane.org>

On Tue, Aug 18, 2009 at 2:31 AM, Herzig,
Christian<Christian.Herzig-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org> wrote:
> i2c at 3000 {
>        #address-cells = <1>;
>        #size-cells = <0>;
>        cell-index = <0>;
>        compatible = "fsl-i2c";
>        reg = <0x3000 0x100>;
>        interrupts = <43 2>;
>        interrupt-parent = <&mpic>;
>        dfsrr;
>
>        mux at 70 {
>                #address-cells = <1>;
>                #size-cells = <0>;
>                compatible = "philips, pca9542";
>                reg = <0x70>;
>
>                /* and now the clients behind the multiplexer: */
>
>                /* channel 0 */
>                dtt at 48 {
>                        compatible = "national, lm75";
>                        reg = <0x48>;
>                };
>                at24 at 50 {
>                        compatible = "atmel, at24c08";
>                        reg = <0x50>;
>                };
>
>                /* channel 1 */
>                at24 at 50 {
>                        compatible = "atmel, at24c08";
>                        reg = <0x50>;
>                };
>        };
> };
>
> That can't work for reasons of naming and allocation. My proposal to
> describe the hardware:

It looks to me like you should be using this form:

    mux@70 {
            #address-cells = <2>;   /* Note this change */
            #size-cells = <0>;
            compatible = "philips, pca9542";
            reg = <0x70>;

            /* and now the clients behind the multiplexer: */

            /* channel 0 */
            dtt@0,48 {
                    compatible = "national,lm75";
                    reg = < 0 0x48 >; /* now reg is specified with 2 cells */
            };
            at24@0,50 {
                    compatible = "atmel,at24c08";
                    reg = < 0 0x50 >;
            };

            /* channel 1 */
            at24@1,50 {
                    compatible = "atmel,at24c08";
                    reg = < 1 0x50 >;
            };
    };

  parent reply	other threads:[~2009-08-20 15:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-18  8:31 Device Tree configuration for I2C-Multiplexer and its Clients Herzig, Christian
     [not found] ` <D839955AA28B9A42A61B9181506E27C401B337A5-AR0Msg4NagxrwccGHPhLvUpAGwC+dI/u0e7PPNI6Mm0@public.gmane.org>
2009-08-20 15:27   ` Grant Likely [this message]
     [not found]     ` <fa686aa40908200827t2d5273c9g84f58f09b471074f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-08-20 22:14       ` Herzig, Christian

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=fa686aa40908200827t2d5273c9g84f58f09b471074f@mail.gmail.com \
    --to=grant.likely-s3s/wqlpoipyb63q8fvjnq@public.gmane.org \
    --cc=Christian.Herzig-SkAbAL50j+5BDgjK7y7TUQ@public.gmane.org \
    --cc=chris-jmrfutXsf6TiB9QmIjCX8w@public.gmane.org \
    --cc=devicetree-discuss-uLR06cmDAlY/bJ5BZ2RsiQ@public.gmane.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