Hi all,
I wanted to do some tests with the i2c0 port in the 40 pin low speed connector. But it is not working. I am using Ubuntu server image.
I had a look at schematics. I saw that i2c0 port is connected to RK3399 i2c6 port (see images below).
From Rock960 console, I did:
$ ls /dev/i2c*
/dev/i2c-0 /dev/i2c-1 /dev/i2c-2 /dev/i2c-4 /dev/i2c-7 /dev/i2c-9
I was a bit surprised because there was no /dev/i2c-6. I checked device tree file like:
$ dtc -I fs ./sys/firmware/devicetree/base/
And I got:
i2c@ff110000 {
reg = <0x0 0xff110000 0x0 0x1000>;
interrupts = <0x0 0x3b 0x4 0x0>;
pinctrl-0 = <0x3a>;
compatible = "rockchip,rk3399-i2c";
clock-names = "i2c", "pclk";
clocks = <0x8 0x41 0x8 0x155>;
status = "okay";
#address-cells = <0x1>;
#size-cells = <0x0>;
pinctrl-names = "default";
};
i2c@ff150000 {
reg = <0x0 0xff150000 0x0 0x1000>;
interrupts = <0x0 0x25 0x4 0x0>;
pinctrl-0 = <0x42>;
compatible = "rockchip,rk3399-i2c";
clock-names = "i2c", "pclk";
clocks = <0x8 0x45 0x8 0x159>;
status = "disabled";
#address-cells = <0x1>;
#size-cells = <0x0>;
pinctrl-names = "default";
};
Here’s the memory map:
So:
- i2c@ff110000 is for i2c1in 40 pin low speed connector, and has: status=“okay”
- i2c@ff150000 is for i2c0 in 40 pin low speed connector, and has: status=“disabled”
How can I use i2c0?
Thank you