How to setup i2c-4 for am5729-beagleboneai?
Created by: MaBecker
Hi,
running on 4.14.108-ti-r143
and trying to activate i2c4 ( i2c5) on BBAI
i2c3 is active by default
i2cdetect -y -a -r 3
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
i2cdetect -l
i2c-3 i2c OMAP I2C adapter I2C adapter
i2c-0 i2c OMAP I2C adapter I2C adapter
i2cdetect -y -a -l 3
now update dtb and add i2c5
cd /opt/source/dtb-4.14-ti
git pull
git branch
* v4.14.x-ti
vi src/arm/am5729-beagleboneai.dts
&i2c5 {
status = "okay";
clock-frequency = <100000>;
};
make src/arm/am5729-beagleboneai.dtb
cp src/arm/am5729-beagleboneai.dtb /boot/dtbs/4.14.108-ti-r143
reboot
i2cdetect -l
i2c-3 i2c OMAP I2C adapter I2C adapter
i2c-4 i2c OMAP I2C adapter I2C adapter
i2c-0 i2c OMAP I2C adapter I2C adapter
i2cdetect -y -a -r 4
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- ^C
runs into timeouts
No clue how to set the i2c pins for i2c-4
P9.17 and P9.18: pinctrl-single,pins = <0x158 0x72 0x15c 0x72>;
Any idea how to solve this?