Hi Nikolaus
I have yet to see a SOC that allows connecting one internal I2C controller to two sets of external pins at one time. Although theoretically possible it would be an unusual feature, and of very limited use. The usual solution is to have multiple I2C controllers in the SOC, and allow routing of each controller to various pins on the SOC package.
I just had a quick read through the Mighty Gecko datasheet. The processor has two I2C controllers, which in Zephyr parlance will be I2C_1 and I2C_2. You need to define both controllers and their physical pins in your device tree overlay. Then your software must open both controllers, and you must communicate with your peripherals through the correct I2C controller.
Hope this helps.
Lawrence King Principal Developer +1(416)627-7302
From: users@... <users@...>
On Behalf Of Adam Podogrocki
Sent: Monday, November 23, 2020 2:47 AM To: Nikolaus Huber <nikolaus.huber@...> Cc: Erik Englund <erik.englund@...>; users@... Subject: Re: Private: Re: [Zephyr-users] Same I2C bus on different pins #driver #i2c
Hi Nikolaus,
I assume that your MCU allows alternative SDA/SCL configurations but not simultaneous, i.e. you can decide on which SDA/SCL pair of pins you can have I2C bus, but not on all pairs at the same time.
Cheers, Adam
On Sat, 21 Nov 2020 at 00:52, Nikolaus Huber <nikolaus.huber@...> wrote:
|
|