openbmc / entity-manager

Run-time JSON driven system configuration manager
Other
26 stars 48 forks source link

How to describe i2c switch in json file #25

Open znning opened 1 year ago

znning commented 1 year ago

How to describe below i2c topology in json file?

i2c-0------- |--------------------|
             | PCA9548         ch0|----emc1413
             |                 ch1|----ina219
reset_pin----|--------------------|
edineshkumar commented 1 year ago

Need to configure Mux in kernel device tree and then you can use corresponded bus number and slave address in json file I guess.

Below is the reference for to configure Mux in DT.

https://github.com/openbmc/linux/blob/dev-6.1/arch/arm/boot/dts/aspeed-bmc-facebook-fuji.dts