Skip to content

Use devices' drivers behind I2C mux (TCA9548A) #57027

Answered by GeorgeCGV
mateela asked this question in Q&A
Discussion options

You must be logged in to vote

Hello,

Based on #39589 the idea is to abstract mux usage from the underlying drivers.
I assume it shall work with custom drivers as long as they are plain I2C device drivers.

       mux: tca9546a@77 {
          compatible = "ti,tca9546a";
          reg = <0x77>;
          status = "okay";
          label = "i2c_mux";
          #address-cells = <1>;
          #size-cells = <0>;
          reset-gpios = <&gpio5 3 GPIO_ACTIVE_LOW>;
          mux_i2c@0 {
              compatible: "ti,tca9546a-channel"
              reg = <0>;
              #address-cells = <1>;
              #size-cells = <0>;
              temp_sens_0: tmp116@49 {
                  compatible = "ti,tmp116";
                  …

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@mateela
Comment options

Answer selected by mateela
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@GeorgeCGV
Comment options

@ofirshe
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants