linux-i2c.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Adrian Fiergolski <Adrian.Fiergolski@cern.ch>
To: linux-i2c@vger.kernel.org
Subject: nested I2C muxes
Date: Thu, 19 Jan 2017 19:03:26 +0100	[thread overview]
Message-ID: <595ed81b-546b-a60f-1bf1-b21f14c15b3c@cern.ch> (raw)

Hi,

I haven't found any information regarding support for nested i2c muxes.
Is the below device tree supported by the current driver ?

&i2c0 {
        status = "okay";
        clock-frequency = <400000>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_i2c0_default>;

        i2cswitch@74 {
                compatible = "nxp,pca9548";
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0x74>;

                i2c@0 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0>;
                        si570: clock-generator@5d {
                                #clock-cells = <0>;
                                compatible = "silabs,si570";
                                temperature-stability = <50>;
                                reg = <0x5d>;
                                factory-fout = <156250000>;
                                clock-frequency = <148500000>;
                        };
                };

                i2c@2 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <5>;
                        i2cswitch_hpc@74 {
                                         compatible = "nxp,pca9548";
                                         #address-cells = <1>;
                                         #size-cells = <0>;
                                         reg = <0x74>;
                                         hpc_caribou_sources_enable@76  {
                                                                       
compatible= "nxp,pca9539";
                                                                       
#address-cells = <1>;
                                                                       
#size-cells = <0>;
                                                                       
reg = <0x76>;
                                         };
                        };

                };

        };

};

With such tree I am getting error

[2.173385] i2c i2c-2: of_i2c: invalid addr=0 on
/amba/i2c@e0004000/i2cswitch@74/i2c@2/i2cswitch_hpc@74


Regards,

Adrian Fiergolski

             reply	other threads:[~2017-01-19 18:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-19 18:03 Adrian Fiergolski [this message]
2017-01-19 18:34 ` nested I2C muxes Peter Rosin
2017-01-19 22:50   ` Peter Rosin
2017-01-20  8:50     ` Adrian Fiergolski

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=595ed81b-546b-a60f-1bf1-b21f14c15b3c@cern.ch \
    --to=adrian.fiergolski@cern.ch \
    --cc=linux-i2c@vger.kernel.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).