Hello,
is anyone here, who knows, how enable i2c on gpio pin5 and pin3 on M3?
I spend many days looking for solution, but without result.
in dtb file, I now have:
i2c2_ph_pins: i2c2-ph-pins {
pins = "PH4","PH5";
function = "i2c2";
};
i2c@1c2b400 {
compatible = "allwinner,sun8i-a83t-i2c\0allwinner,sun6i>
reg = <0x1c2b400 0x400>;
interrupts = <0x00 0x07 0x04>;
clocks = <0x02 0x34>;
resets = <0x02 0x27>;
pinctrl-names = "default";
pinctrl-0 = <&i2c2_ph_pins>;
status = "okay";
#address-cells = <0x01>;
#size-cells = <0x00>;
};
i2cdetect: (with connected i2c device)
spravce@bananapim3:~$ sudo i2cdetect -l
i2c-0 i2c DesignWare HDMI I2C adapter
i2c-1 i2c mv64xxx_i2c adapter I2C adapter
i2c-2 i2c mv64xxx_i2c adapter I2C adapter
spravce@bananapim3:~$ sudo i2cdetect -y 2
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Hardware is ok, when I tried UBUNTU image, i2c worked normaly, but I need armbian.
pls help, I have 7pcs of Bpi M3, and without i2c, I can put it in the trash.