| d9da4b44 | 08-Oct-2021 |
Joseph Chen <chenjh@rock-chips.com> |
dm: core: add kernel dtb version 2 mechanism support
The V2 mechanism: - both of U-Boot and kernel's *ALL* devices are exist in dm tree. - put the necessary U-Boot devices in the head of device
dm: core: add kernel dtb version 2 mechanism support
The V2 mechanism: - both of U-Boot and kernel's *ALL* devices are exist in dm tree. - put the necessary U-Boot devices in the head of device uclass list. - the both existence policy don't require phandle fixup any more. - it is for the next generation(rk3588 ...) or necessary platforms. - traverse u-boot fdt phandle if not found in kernel fdt, because the U-Boot framework gets phandle by of_root(from fdt) but not dm_root(from dm). The V1 mechanism(legacy): - U-Boot: only some necessary U-Boot devices(storage, crypto...) in dm tree. - kernel: all the devices(except the U-Boot only) in dm tree.
The commit (bd3ad955a3 scripts/dtc: phandle index start from 0x1000000) is necessary for this v2 mechanism.
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I0964f176a17725f9bb7c4e491373c278ed2bfcc5
show more ...
|