How to configure I2C for IMX8dx/qxp

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to configure I2C for IMX8dx/qxp

645 Views
viswa_kondapall
Contributor IV

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..???

0 Kudos
1 Reply

501 Views
igorpadykov
NXP Employee
NXP Employee

Hi viswanath

>Will it load for Machine type is IMX8dx/qxp

i.MX8QXP has the same lpi2c module as i.MX8QM so these settings are correct.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos