This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

J7200XSOMXEVM: I2c2 interface to ina226 driver error

Part Number: J7200XSOMXEVM
Other Parts Discussed in Thread: INA226


I tried  to access ina226 using the  i2c2 interface but somehow I get the error below when loading ina2xx.ko

[ina 6.220404] ina2xx 5-0040: error configuring the device: -121.

My modification to k3-j7200-common-proc-board.dts looks something like this:

 main_i2c2_pins_default: main-i2c2-pins-default {
               pinctrl-single,pins = <
                       J721E_IOPAD(0xc8, PIN_INPUT_PULLUP, 2) /* (y1) */
                       J721E_IOPAD(0xcc, PIN_INPUT_PULLUP, 2) /* (v4) */

main_i2c2 {
       pinctrl-names = "default";
       pinctrl-0 = <&main_i2c2_pins_default>;
       clock-frequency = <400000>;

       ina226@40 {
       compatible = "ti,ina226";
       reg = <0x40>;
       shunt-resistor = <10000>;


Best regards,