Skip to content

Override device name using DT "dev-name" property

Manish Varma linux-devicetree linux-i2c lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dt-bindings: i2c: add "dev-name" property to assign specific device nameDocumentation/devicetree/bindings/i2c/i2c.txt+5 -02 replies
2/2i2c: use "dev-name" device tree property to override device namedrivers/i2c/i2c-core-of.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] Override device name using DT "dev-name" property

Currently I2C device names are assigned dynamically unless they are instantiated through ACPI, this names are based on adapter_id and device_address. While device_address will remain constant for a given device, the adapter_id may vary across different systems and hence, overall, the device name won't be unique for the same I2C device.

Changes here addresses this problem by introducing an optional device tree property "dev-name", which will be used to set the device name, if present, instead of following <adapter_id>-<device_addr> convention.

Manish Varma (2):
dt-bindings: i2c: add "dev-name" property to assign specific device
name
i2c: use "dev-name" device tree property to override device name

 Documentation/devicetree/bindings/i2c/i2c.txt | 5 +++++
 drivers/i2c/i2c-core-of.c                     | 2 ++
 2 files changed, 7 insertions(+)
Signature · 1 line
2.31.1.295.g9ea45b61b8-goog