Skip to content
Commit be78ccf9 authored by Phil Elwell's avatar Phil Elwell Committed by Dom Cobley
Browse files

i2c-gpio: Also set bus numbers from reg property



I2C busses can be assigned specific bus numbers using aliases in
Device Tree - string properties where the name is the alias and the
value is the path to the node. The current DT parameter mechanism
does not allow property names to be derived from a parameter value
in any way, so it isn't possible to generate unique or matching
aliases for nodes from an overlay that can generate multiple
instances, e.g. i2c-gpio.

Work around this limitation (at least temporarily) by allowing
the i2c adapter number to be initialised from the "reg" property
if present.

Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
parent e1860f35
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment