0
votes

I am trying to see how I could instantiate i2c-mux-gpio driver at run time from user-space.

Basically, the intent is to use a default version of the distribution but at run time determine based on certain parameters to instantiate the i2c-mux-gpio so that it can add more buses.

Example, something like

modprobe i2c-mux-gpio <"gpio0=1,gpio2=0">

The existing i2c-mux-gpio seems to take the required information via standard structure which happens to be populated via a device-tree/acpi etc.

Exploring if someone has already attempted to pass this information at run time.

Thanks Sriaknth

1

1 Answers

2
votes

If you're using the Device Tree on your platform, you should have a look at the recent Device Tree Overlay mechanism which was merged. It also to load additional fragments of Device Tree at runtime.