ARM: dts: aspeed: mihawk: IO expander uses TCA9554 driver
authorBen Pai <Ben_Pai@wistron.com>
Fri, 5 Jun 2020 10:06:14 +0000 (18:06 +0800)
committerJoel Stanley <joel@jms.id.au>
Mon, 15 Jun 2020 02:29:15 +0000 (11:59 +0930)
Set smbus_en of IO expander to 1 in order to be able to read sensor.

Signed-off-by: Ben Pai <Ben_Pai@wistron.com>
Reviewed-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts

index 60e545b..0940339 100644 (file)
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0>;
+
+                       tca9554@39 {
+                               compatible = "ti,tca9554";
+                               reg = <0x39>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+
+                               smbus0 {
+                                       gpio-hog;
+                                       gpios = <4 GPIO_ACTIVE_HIGH>;
+                                       output-high;
+                                       line-name = "smbus0";
+                               };
+                       };
                };
 
                bus9_mux232: i2c@1 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <1>;
+
+                       tca9554@39 {
+                               compatible = "ti,tca9554";
+                               reg = <0x39>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+
+                               smbus1 {
+                                       gpio-hog;
+                                       gpios = <4 GPIO_ACTIVE_HIGH>;
+                                       output-high;
+                                       line-name = "smbus1";
+                               };
+                       };
                };
 
                bus9_mux233: i2c@2 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0>;
+
+                       tca9554@39 {
+                               compatible = "ti,tca9554";
+                               reg = <0x39>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+
+                               smbus2 {
+                                       gpio-hog;
+                                       gpios = <4 GPIO_ACTIVE_HIGH>;
+                                       output-high;
+                                       line-name = "smbus2";
+                               };
+                       };
                };
 
                bus9_mux236: i2c@1 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <1>;
+
+                       tca9554@39 {
+                               compatible = "ti,tca9554";
+                               reg = <0x39>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+
+                               smbus3 {
+                                       gpio-hog;
+                                       gpios = <4 GPIO_ACTIVE_HIGH>;
+                                       output-high;
+                                       line-name = "smbus3";
+                               };
+                       };
                };
 
                bus9_mux237: i2c@2 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0>;
+
+                       tca9554@39 {
+                               compatible = "ti,tca9554";
+                               reg = <0x39>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+
+                               smbus4 {
+                                       gpio-hog;
+                                       gpios = <4 GPIO_ACTIVE_HIGH>;
+                                       output-high;
+                                       line-name = "smbus4";
+                               };
+                       };
                };
 
                bus10_mux240: i2c@1 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <1>;
+
+                       tca9554@39 {
+                               compatible = "ti,tca9554";
+                               reg = <0x39>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+
+                               smbus5 {
+                                       gpio-hog;
+                                       gpios = <4 GPIO_ACTIVE_HIGH>;
+                                       output-high;
+                                       line-name = "smbus5";
+                               };
+                       };
                };
 
                bus10_mux241: i2c@2 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <0>;
+
+                       tca9554@39 {
+                               compatible = "ti,tca9554";
+                               reg = <0x39>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+
+                               smbus6 {
+                                       gpio-hog;
+                                       gpios = <4 GPIO_ACTIVE_HIGH>;
+                                       output-high;
+                                       line-name = "smbus6";
+                               };
+                       };
                };
 
                bus10_mux244: i2c@1 {
                        #address-cells = <1>;
                        #size-cells = <0>;
                        reg = <1>;
+
+                       tca9554@39 {
+                               compatible = "ti,tca9554";
+                               reg = <0x39>;
+                               gpio-controller;
+                               #gpio-cells = <2>;
+
+                               smbus7 {
+                                       gpio-hog;
+                                       gpios = <4 GPIO_ACTIVE_HIGH>;
+                                       output-high;
+                                       line-name = "smbus7";
+                               };
+                       };
                };
 
                bus10_mux245: i2c@2 {