Using I2C 2/3 in Windows IOT


#1

Hi Guys.
Has anyone tried using I2C 2/3 which is routed to the HS Expansion connector on the dragonboard 410c with Windows IOT?

How does one go about this?

Thank you in advance.


#2

Did you try using the sample app from https://github.com/Microsoft/Windows-universal-samples/tree/master/Samples/IoT-I2C?

Full disclosure: I am an employee of Qualcomm Canada, any opinions I may have expressed in this or any other posting may not reflect the opinions of my employer.


#3

Hi,

Thanks for your reply.

I have had no issues using I2C 0 and 1 which are available on the LS expansion connector. I am however trying to utilize I2C 2 and 3 which are on the HS expansion connector of the dragonboard.

The sample project referenced above also only detects I2C 0 and 1.

My thinking is that the BLSP’s where I2C 2 and 3 are located are not configured in I2C mode. From my research it is quite straight forward to enable this in the device tree when using Linux/android, but I have not found any info/documentation on how to do this for Windows IOT.

Kind regards


#4

Hi @cmfkruger

By default I2C 2/3 are set up for camera CCI, and MIPI-DSI->HDMI bridge operation. If you are not using these features they can be reallocated to being general purpose I2C ports.

You will need to modify buses.asl and RHProxy.asl then rebuild the BSP following the directions in https://developer.qualcomm.com/download/db410c/windows-10-iot-bsp-customization-guide.pdf

The next release of the BSP Customization guide will contain more details on exactly how to do this.

Full disclosure: I am an employee of Qualcomm Canada, any opinions I may have expressed in this or any other posting may not reflect the opinions of my employer.


#5

Thank you.

Will give it a shot.