Re: [PATCH v2 2/4] dt-bindings: add bus number property
From: Arnd Bergmann <arnd@arndb.de>
Date: 2021-10-05 16:22:33
Also in:
linux-devicetree, linux-i2c, lkml
From: Arnd Bergmann <arnd@arndb.de>
Date: 2021-10-05 16:22:33
Also in:
linux-devicetree, linux-i2c, lkml
On Tue, Oct 5, 2021 at 4:37 PM Paweł Anikiel [off-list ref] wrote:
On SoCFPGA systems, it's desireable to have fixed numbering for i2c busses, while being able to enable/disable them (e.g. have i2c1 be mapped to /dev/i2c-1, even though i2c0 is disabled). This can also be achieved using devicetree aliases (see i2c_add_adapter). However, having the driver be self-contained without relying on aliases is more robust. Signed-off-by: Paweł Anikiel <redacted>
I don't see how adding a nonstandard property in one of the i2c bus
drivers helps at all. How do you expect this to work when there are
multiple i2c controllers in the system using different drivers? What
should happen if both an alias and the busno property are set?
Arnd
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel