Other Parts Discussed in Thread: INA226
Hi,
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,
WBB