AnsweredAssumed Answered

i2c4 bus dead on ls1023a

Question asked by Dan Lenz on Nov 5, 2019
Latest reply on Nov 8, 2019 by ufedor

We are using the ls1023a on a custom board derived from the ls1043ardb. 


my dtsi has:

i2c3: i2c@21b0000 {
compatible = "fsl,vf610-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x21b0000 0x0 0x10000>;
interrupts = <0 59 0x4>;
clock-names = "i2c";
clocks = <&clockgen 4 0>;
dmas = <&edma0 1 41>,
<&edma0 1 40>;
dma-names = "tx", "rx";
status = "disabled";


my dts has:

&i2c3 {
   status = "okay";
   eeprom@57 {
      compatible = "at24,24c64";
      /* Address = 1010111b */
      reg = <0x57>;
   tmp422@4c {
      compatible = "ti,tmp421";
      /* Address = 1001100b */
      reg = <0x4c>;


I see the bus init OK:

   [ 1.721911] imx-i2c 21b0000.i2c: fsl-scl-gpio not found
   [ 1.727198] imx-i2c 21b0000.i2c: can't get pinctrl, bus recovery not supported
   [ 1.734625] i2c i2c-0: IMX I2C adapter registered
   [ 1.739382] i2c i2c-0: using dma0chan16 (tx) and dma0chan17 (rx) for DMA transfers


But the tmp421 driver can not read the chip:

   tmp421 0-004c: Could not read configuration register (-6)


I see no activity on the i2c4 bus (i2c4_scl at pin M3 and i2c4_sda at pin N3). I suspect that the pins are not enabled properly but I see no reference to these pin in RCW and the only thing I can find in the data sheet or users guide is the "Extended RCW PinMux Control Register" at 0x157040c which I am setting to 0x00000000.


Are there other settings that I am missing?