Hi team,
I have booted the kernel image for LS2088 V2XD board with latest sdk of nxp. I am unable to find the I2c in /dev, there are 4 i2c enable in .dtsi file of sdk.
please help me to resolve this.
Hi pavel,
the follawing are the dtsi settings for i2c .please check them.
i2c0: i2c@2000000 {
compatible = "fsl,vf610-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x2000000 0x0 0x10000>;
interrupts = <0 34 0x4>; /* Level high type */
clock-names = "i2c";
clocks = <&clockgen 4 3>;
};
i2c1: i2c@2010000 {
compatible = "fsl,vf610-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x2010000 0x0 0x10000>;
interrupts = <0 34 0x4>; /* Level high type */
clock-names = "i2c";
clocks = <&clockgen 4 3>;
};
i2c2: i2c@2020000 {
compatible = "fsl,vf610-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x2020000 0x0 0x10000>;
interrupts = <0 35 0x4>; /* Level high type */
clock-names = "i2c";
clocks = <&clockgen 4 3>;
};
i2c3: i2c@2030000 {
compatible = "fsl,vf610-i2c";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x0 0x2030000 0x0 0x10000>;
interrupts = <0 35 0x4>; /* Level high type */
clock-names = "i2c";
clocks = <&clockgen 4 3>;
};
Look at the Chapter 11.5 of LSDK 18.12 documentation:
https://www.nxp.com/docs/en/supporting-information/LSDK-KC-REV18.12.pdf
This Chapter contains I2C for Power and Thermal monitors on the LS2088QDS board.
Use this Chapter as example for using I2C on the LS2088 board.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Pavel,
The above mentioned documnent gives me i2c for thermal sensor, but i have enabled 4 i2c bus but while booting it gives an error.
imx-i2c 2000000.i2c: fsl-scl-gpio not found
[ 3.765522] imx-i2c 2000000.i2c: can't get I2C clock
i have enabled all drivers even then this comes, im unable to get i2c bus in /dev .
please help me to resolve this and also why i am getting fsl-scl-gpio not found.