I have used
https://lore.kernel.org/patchwork/patch/952860/ for getting sfp driver so that i can read SFP eeprom, SFP eeprom is connected over i2c bus. But there are multiple SFP's connected to address 0x50 and they are selected based on gpio select signal. I need dst structure for creating virtual i2c bus which will create device directory for all the sfp devices connected.
for example after using above patch i am using
echo optoe2 0x50 > /sys/bus/i2c/devices/i2c-0/new_device
echo port1 > /sys/bus/i2c/devices/i2c-0/port_name
to add the i2c device 0x50.
What i need is
/sys/bus/i2c/devices/i2c-0/0-0050
/sys/bus/i2c/devices/i2c-1/0-0050
.
.
multiple dummy i2c buses for each SFP eeprom.
so i have to modify the dts for the same. Any suggestions on that.