Re: [PATCH] i2c-dev: Introduce "linux,i2c-dev-name" property for device tree of I2C controller.
From: Conor Dooley
Date: Wed May 29 2024 - 12:10:58 EST
On Wed, May 29, 2024 at 12:28:03PM +0200, Wolfram Sang wrote:
>
> > Optionally, an I2C controller may have a "linux,i2c-dev-name" property.
> > This is a string which is defining a custom suffix name for I2C device
> > in /dev/i2c-<name> format. It helps to improve software portability between
> > various SoCs and reduce complexities of hardware related codes in SWs.
>
> (I thought I already replied to this?)
>
> Highly similar to [1] from 2021. I don't have a super clear opinion
> about this, so I'd need help from the DT maintainers. But the discussion
> from back then stalled.
>
> [1] http://patchwork.ozlabs.org/project/linux-i2c/list/?series=237908
This patch (or one very similar) got sent to the SPI and GPIO subsystems
too. The response was effectively "use udev":
https://lore.kernel.org/all/20240519144920.14804-1-egyszeregy@xxxxxxxxxxx/
https://lore.kernel.org/all/20240519211346.30323-1-egyszeregy@xxxxxxxxxxx/
This definitely is in "devicetree properties are not for software-policy"
territory to me, maybe Rob's changed his mind since 2021.
Attachment:
signature.asc
Description: PGP signature