Other Parts Discussed in Thread: TCA8418, SK-AM62-SIP
Tool/software:
Dear TI
I would like to use the I2C2 bus, but I can't measure anything on the pins.
I added this to the devicetree file:
&main_i2c2 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = <&main_i2c2_pins_default>; clock-frequency = <100000>; keypad@34 { compatible = "ti,tca8418"; reg = <0x34>; interrupt-parent = <&main_gpio1>; interrupts = <16 IRQ_TYPE_EDGE_FALLING>; linux,keymap = <0x0000000a 0x0100000b 0x0200000c 0x0300000d>; keypad,num-rows = <4>; keypad,num-columns = <1>; status = "okay"; }; };
where I define the pins as
main_i2c2_pins_default: main-i2c2-pins-default { pinctrl-single,pins = < AM62X_IOPAD(0x0b0, PIN_INPUT_PULLUP, 1) /* (K22) I2C2_SCL */ AM62X_IOPAD(0x0b4, PIN_INPUT_PULLUP, 1) /* (K24) I2C2_SDA */ AM62X_IOPAD(0x1b8, PIN_INPUT_PULLUP, 7) /* (C13) GPIO1_16 */ >; };
in the node main_pmx0. I am using kernel 6.1.69.
The device file /dev/i2c-2 is created and the devicetree seems to be parsed correctly according to /proc/device-tree. The probe function of the TCA8418 is also called.
However I don't see anything happening on the I2C bus, even when I use I2C-Tools to write something (on I2C0 and I2C1 it works). I am using the SK-AM62-SIP evaluation module, my analyzer is connected to pins 3, 5 and 6 (GND) on the 40 pin connector.
What could I be doing wrong?
Kind regards
Leon Rigoni