AnsweredAssumed Answered

How to configure I2C for IMX8dx/qxp

Question asked by viswanath kondapalli on Jun 25, 2019
Latest reply on Jun 25, 2019 by igorpadykov

Hi

fsl-imx8dx.dtsi is having this below for the I2C :

    i2c0: i2c@5a800000 {
        compatible = "fsl,imx8qm-lpi2c", "fsl,imx7ulp-lpi2c";
        reg = <0x0 0x5a800000 0x0 0x4000>;
        interrupts = <GIC_SPI 220 IRQ_TYPE_LEVEL_HIGH>;
        interrupt-parent = <&gic>;
        clocks = <&clk IMX8QXP_I2C0_CLK>;
        clock-names = "per";
        assigned-clocks = <&clk IMX8QXP_I2C0_CLK>;
        assigned-clock-rates = <24000000>;
        power-domains = <&pd_dma_lpi2c0>;
        status = "disabled";
    };

 

I2C driver has :

#define DRIVER_NAME "imx-lpi2c"

static const struct of_device_id lpi2c_imx_of_match[] = {
    { .compatible = "fsl,imx7ulp-lpi2c" },
    { .compatible = "fsl,imx8qm-lpi2c" },
    { },
};

 

Will it load for Machine type is IMX8dx/qxp..???

Outcomes