bone$ dmesg | grep i2c
[ 0.622594] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
[ 0.623608] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
[ 0.625035] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 1.357694] i2c /dev entries driver
[ 1.543350] input: tps65217_pwr_but as /devices/platform/ocp/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
[ 1.544568] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
The speed appears to be set here:
bone$ uname -a
Linux beaglebone 4.14.52-ti-rt-r60 #1 SMP PREEMPT Tue Jun 26 23:28:55 UTC 2018 armv7l GNU/Linux
bone$ cd /opt/source/dtb-4.14-ti/src/arm/
Unfortunately I now need to use i2c bus 1 on pins P9_24 and P9_26. BB-I2C1-FAST-00A0.dtbo is set up for P9_17 and P9_18.
It’s not hard to edit the source, but how do I compile it so it find the include files?
That compiled and worked fine. I2C1 is now 400kHz, but I can’t config my other pins:
P9_18 pinmux file not found!
bash: /sys/devices/platform/ocp/ocpP9_18_pinmux/state: No such file or directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocpP9_18_pinmux/state
P9_21 pinmux file not found!
bash: /sys/devices/platform/ocp/ocpP9_21_pinmux/state: No such file or directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocpP9_21_pinmux/state
P9_22 pinmux file not found!
bash: /sys/devices/platform/ocp/ocpP9_22_pinmux/state: No such file or directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocpP9_22_pinmux/state
P9_17 pinmux file not found!
bash: /sys/devices/platform/ocp/ocpP9_17_pinmux/state: No such file or directory
Cannot write pinmux file: /sys/devices/platform/ocp/ocpP9_17_pinmux/state