u-boot/arch/sandbox/dts
Michael Walle be1a6e9425 dm: uclass: don't assign aliased seq numbers
If there are aliases for an uclass, set the base for the "dynamically"
allocated numbers next to the highest alias.

Please note, that this might lead to holes in the sequences, depending
on the device tree. For example if there is only an alias "ethernet1",
the next device seq number would be 2.

In particular this fixes a problem with boards which are using ethernet
aliases but also might have network add-in cards like the E1000. If the
board is started with the add-in card and depending on the order of the
drivers, the E1000 might occupy the first ethernet device and mess up
all the hardware addresses, because the devices are now shifted by one.

Also adapt the test cases to the new handling and add test cases
checking the holes in the seq numbers.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Alex Marginean <alexandru.marginean@nxp.com>
Tested-by: Alex Marginean <alexandru.marginean@nxp.com>
Acked-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Michal Simek <michal.simek@xilinx.com> [on zcu102-revA]
2020-06-11 20:52:11 -06:00
..
include Makefile: Support include files for .dts files 2014-06-20 11:55:03 -06:00
cros-ec-keyboard.dtsi cros_ec: exynos: Match up device tree with kernel version 2015-04-18 11:11:16 -06:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sandbox.dts sandbox: add reserved-memory node in device tree 2020-04-16 08:07:58 -06:00
sandbox.dtsi sandbox: Update PCI nodes in dts files 2020-04-16 08:07:57 -06:00
sandbox64.dts sandbox: add reserved-memory node in device tree 2020-04-16 08:07:58 -06:00
sandbox_pmic.dtsi dm: sandbox: i2c: Use new emulator parent uclass 2018-11-29 09:30:05 -07:00
test.dts dm: uclass: don't assign aliased seq numbers 2020-06-11 20:52:11 -06:00