uboot中的PCA9539和PCA9546

时间:2018-06-13 05:27:05

标签: i2c device-tree nxp-microcontroller

我试图在uboot中启动PCA9546(交换机)和PCA9539(I2C扩展器),这样我就可以调出一些通过I2C交换机连接的外设(PCA9546) - > I2C扩展器(PCA9539)。

我添加了像这样的dts条目,

&i2c1 {
.
.
.
i2cswitch@70 {
                compatible = "nxp,pca9546";
                #address-cells = <1>;
                #size-cells = <0>;
                reg = <0x70>;

                i2c@1 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <1>;

                                pca9539@74 {
                                compatible = "nxp,pca9539";
                                reg = <0x74>;
                                gpio-controller;
                                #gpio-cells = <2>;
                        };

                };
        };

};

I2C扩展器(PCA9539)连接到交换机(PCA9546)的通道1,但在uboot i2c日志中,I2C扩展器显示在总线-1上。

u-boot logs,

=&GT; i2c巴士
总线0:i2c @ 48070000(有效0)
   58:tps659038 @ 58,偏移len 1,标志0
   20:gpio @ 20,偏移len 1,标志0
   21:gpio @ 21,偏移len 0,标志0
   70:i2cswitch @ 70,偏移len 1,标志0

总线-1:i2c @ 1

74:pca9539 @ 74,偏移len 1,标志0

任何帮助都将受到高度赞赏。

谢谢, 阿伦

0 个答案:

没有答案
相关问题