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.

DRA718: Detect i2c4 on DRA718

Part Number: DRA718

Hello,

We are planning to connect one deserializer on i2c4 instance of custom DRA718 board

But i do not see any pin mux enabled for i2c4 neither in mux_data.h in uboot nor dra71x-evm.dts file.

Should we need to enable it .dts file alone or in any other file also?

  • Hi,

    Please enable that in mux_data.h. Enable the i2c4 device tree node in kernel dts & Check if i2c4 instance gets probed successfully.

    Best Regards,
    Keerthy

  • Hello Keerthy,

    Can you pls confirm the below configurations are correct?

    mux_data.h:

    const struct pad_conf_entry dra71x_core_padconf_array[] = {
        {MCASP1_FSR, (M10 | PIN_INPUT_PULLUP)},    /* mcasp1_fsr.i2c4_scl */
        {MCASP1_ACLKR, (M10 | PIN_INPUT_PULLUP )},    /* mcasp1_aclkr.i2c4_sda */

    };

    dra71-evm.dts:

    &dra7_pmx_core {
            deserial_i2c_pins: pinmux_deserial_i2c_pins {
                pinctrl-single,pins = <
                DRA7XX_CORE_IOPAD(0x36b0, PIN_INPUT_PULLUP | MUX_MODE10) /* mcasp1_fsr.i2c4_scl  ball D17, this pin is used as a i2c4 SDA via mcasp */
                DRA7XX_CORE_IOPAD(0x36ac, PIN_INPUT_PULLUP | MUX_MODE10) /* mcasp1_aclkr.i2c4_sda  ball D16, this pin is used as a i2c4 SCL via mcasp */
            >;

        };

    };

  • Prasad,

    i2c4_scl comes out on:

    M1 --> gpmc_a0
    D17 --> mcasp1_fsr
    B25 --> mcasp4_fsx
    v5 --> mmc1_sdwp

    Similarly i2c4_sda comes out On M2, D16, C23, U5.

    Can you confirm on which ball the 2 signals come out on your custom board?

    Best Regards,
    Keerthy

  • Hello Keerthy,

    i2c4_scl on D17

    i2c4_sda on D16

  • Hi Prasad,

    Those are correct.

    Also enable i2c4 in dts:

    diff --git a/arch/arm/boot/dts/dra71-evm.dts b/arch/arm/boot/dts/dra71-evm.dts
    index 3c32394e04..a775a7e0de 100644
    --- a/arch/arm/boot/dts/dra71-evm.dts
    +++ b/arch/arm/boot/dts/dra71-evm.dts
    @@ -179,6 +179,10 @@
            };
     };
     
    +&i2c4 {
    +status = "okay";
    +}:
    +

    This should get i2c4 probing on the linux side.

    Best Regards,
    Keerthy

  • Hello Keerthy,

    Thanks, will close this thread once i could probe i2c4 successfully.