All of lore.kernel.org
 help / color / mirror / Atom feed
* Configuring device with I2C mux
@ 2020-01-08  1:13 Alex Qiu
  2020-01-08 14:43 ` Milton Miller II
  0 siblings, 1 reply; 8+ messages in thread
From: Alex Qiu @ 2020-01-08  1:13 UTC (permalink / raw)
  To: OpenBMC Maillist; +Cc: Devjit Gopalpur, Kais Belgaied, Peter Lundgren

[-- Attachment #1: Type: text/plain, Size: 989 bytes --]

Hi folks,

We have a JSON file configuring I2C devices of a PCIe card which has an
8-channel I2C mux for entity-manager. After we properly configure the mux
of the card, we get 8 new I2C buses in sysfs; however, we don't find an
arithmetic way to describe the relationship between the new buses and their
parent buses.

For example, we have a mux on physical BMC I2C bus i2c-8 spawning a couple
of child buses including i2c-24 and i2c-26, which are the buses for each
PCIe card. The mux on i2c-24 PCIe card spawned 8 buses from i2c-70 to
i2c-77, and the mux on i2c-26 PCIe card spawned ones from i2c-62 to i2c-69.
We have I2C devices on i2c-76 and i2c-68 needs to be configured together
with the PCIe card on i2c-24 and i2c-26 separately.

How do we implement this in the JSON file? If that's not possible to do it
in JSON merely, what's the suggested approach to implement this feature?
Device tree? Implement code in entity-manager to walk through the I2C sysfs?

Thank you!

- Alex Qiu

[-- Attachment #2: Type: text/html, Size: 1256 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-01-10  1:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-08  1:13 Configuring device with I2C mux Alex Qiu
2020-01-08 14:43 ` Milton Miller II
2020-01-08 17:25   ` Alex Qiu
2020-01-08 17:46     ` James Feist
2020-01-08 17:54       ` Alex Qiu
2020-01-08 18:02         ` James Feist
2020-01-08 18:06           ` Alex Qiu
2020-01-10  1:46             ` Alex Qiu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.