How to Enable I2C on AML-A311D-CC

While the AML-S905X-CC Le Potato has overlays to enable both, I2C AO and I2C B, the AML-A311D-CC currently has I2C AO enabled by default but no overlay for I2C B is available, yet.

$ ldto list
#Overlays available
cpu-b-opp-2304
cpu-l-opp-2208
npu
spifc-nor

I did find the AML-S905X-CC i2c-b.dts, but I don’t know if I can just reuse it for the AML-A311D-CC. Also the commented pins 27/28 and the used ones 26/27 seem off by one.

And pointers welcome.

I am doing this to investigate replacing the Raspberry Pi 3B+ in a pi-top[3] with the AML-A311D-CC. The pi-tobHub v2 does fit nicely and I’ll report back with my findings.

I created a pull request with my attemt at an i2c_b overlay for the AML-A311D-CC in Add i2c_b.dts for aml-a311d-cc by butonic · Pull Request #13 · libre-computer-project/libretech-wiring-tool · GitHub