Re: [RFC] i2c-stub: make it usable with DT when booting

2017-05-18 Thread Wolfram Sang
Hi Jean, > I get the idea and I understand the need to emulate the devices early > in the boot process. However, how do you deal with the I2C devices > pre-initialization (setting initial register values)? This is typically > done in user-space with the i2c-stub-from-dump script, or manual calls

Re: [RFC] i2c-stub: make it usable with DT when booting

2017-05-18 Thread Jean Delvare
Hi Wolfram, On Tue, 16 May 2017 13:27:58 +0200, Wolfram Sang wrote: > This patch makes the stub driver parse the device tree when booting and > create a virtual bus with the desired devices attached. Here is an > example DTS snipplet making use of it. It is for simulating a more > complex camera

[RFC] i2c-stub: make it usable with DT when booting

2017-05-16 Thread Wolfram Sang
This patch makes the stub driver parse the device tree when booting and create a virtual bus with the desired devices attached. Here is an example DTS snipplet making use of it. It is for simulating a more complex camera device which has dependencies which needs to be sorted out at boot time: