| #
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 ...
|
| #
4ad73f9e |
| 21-May-2021 |
Joseph Chen <chenjh@rock-chips.com> |
core: dump: show device address
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I7f8e4e0d665c454678fd5f20b4a4fb58b3079ba2
|
| #
659e640a |
| 08-Jul-2020 |
Joseph Chen <chenjh@rock-chips.com> |
core: dump: add symbol for remained dm device
Symbol: "**" : pre-reloc node and the device is remained in dm tree. "* " : pre-reloc node but the device is already being removed from dm tree.
=> d
core: dump: add symbol for remained dm device
Symbol: "**" : pre-reloc node and the device is remained in dm tree. "* " : pre-reloc node but the device is already being removed from dm tree.
=> dm tree Class Probed Driver Name
Change-Id: Ie242117d4d323ba24894dd99ab061d187230621d ---------------------------------------------------------- root [ + ] root_driver root_driver rsa_mod_ex [ ] mod_exp_sw |-- mod_exp_sw clk [ ] fixed_rate_clock |-- external-gmac-clockm0 * clk [ ] fixed_rate_clock |-- external-gmac-clockm1 * syscon [ + ] rv1126_syscon |-- syscon@fe000000 * syscon [ + ] rv1126_syscon |-- syscon@fe020000 * ...... mtd [ ] rk_nandc_v6 |-- nandc@ffc80000 ** blk [ ] mtd_blk | `-- nandc@ffc80000.blk spi [ ] rockchip_sfc |-- sfc@ffc90000 * mtd [ ] spi_nand | |-- flash@0 ** blk [ ] mtd_blk | | `-- flash@0.blk spi_flash [ ] spi_flash_std | `-- flash@1 ** blk [ ] mtd_blk | `-- flash@1.blk ......
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I5bf643b9a2b29a86ac7315462ad9f65f30e18442
show more ...
|
| #
d5cc49d9 |
| 27-May-2020 |
Joseph Chen <chenjh@rock-chips.com> |
core: dump: update "dm uclass" print format
Signed-off-by: Joseph Chen <chenjh@rock-chips.com> Change-Id: I751a9458721df165e6cfb1ce34d00dc85edf4716
|
| #
b8dc613c |
| 19-Nov-2019 |
Joseph Chen <chenjh@rock-chips.com> |
Merge branch 'next-dev' into thunder-boot
|
| #
930ceb12 |
| 24-Oct-2019 |
Joseph Chen <chenjh@rock-chips.com> |
driver: core/input: treat 'u-boot,dm-spl' as 'u-boot,dm-pre-reloc'
It works when CONFIG_USING_KERNEL_DTB is enabled, because we can set either 'u-boot,dm-spl' or 'u-boot,dm-pre-reloc' for the node t
driver: core/input: treat 'u-boot,dm-spl' as 'u-boot,dm-pre-reloc'
It works when CONFIG_USING_KERNEL_DTB is enabled, because we can set either 'u-boot,dm-spl' or 'u-boot,dm-pre-reloc' for the node that we can to leave in the u-boot.dtb.
Change-Id: Id3cec0c64ee55ca9bc1e5871e7ad5a2ebb4b1b6a Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
show more ...
|
| #
b07f31dd |
| 04-Jun-2019 |
Joseph Chen <chenjh@rock-chips.com> |
core: dump: add "*" for node from U-Boot dtb
This is useful for debugging.
Change-Id: If6a6e29053c1519ec40ccbcb183e35ffd81c64e8 Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
d114ba00 |
| 17-Jul-2018 |
Joseph Chen <chenjh@rock-chips.com> |
core: dump: increase info length
Change-Id: Ide57bc45fcdeb5fb158ae67d0c56a9f80ac4d8cf Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
|
| #
ae9ecb97 |
| 02-Aug-2017 |
Simon Glass <sjg@chromium.org> |
UPSTREAM: dm: core: Show driver name with 'dm tree'
It is often useful to see which driver was actually selected for each device. Add a new 'Driver' column to provide this information. Sample output
UPSTREAM: dm: core: Show driver name with 'dm tree'
It is often useful to see which driver was actually selected for each device. Add a new 'Driver' column to provide this information. Sample output:
Class Probed Driver Name ---------------------------------------- root [ + ] root_drive root_driver keyboard [ + ] i8042_kbd |-- keyboard serial [ + ] ns16550_se |-- serial rtc [ ] rtc_mc1468 |-- rtc timer [ + ] tsc_timer |-- tsc-timer syscon [ + ] ich6_pinct |-- pch_pinctrl pci [ + ] pci_x86 |-- pci northbridge [ + ] bd82x6x_no | |-- northbridge@0,0 video [ + ] bd82x6x_vi | |-- gma@2,0 vidconsole0 [ + ] vidconsole | | `-- gma@2,0.vidconsole0 ...
Change-Id: Ib6ed67d9de2d94f9aae4d4a180a71191a0836786 Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit ee3e520dad0b368df4541cd0af0d4011cf481e5b)
show more ...
|
| #
58b0f002 |
| 02-Aug-2017 |
Simon Glass <sjg@chromium.org> |
UPSTREAM: dm: core: Drop use of strlcpy()
We can use printf() to limit the string width. Adjust the code to do this instead of using strlcpy() which is a bit clumbsy.
Change-Id: I69e67116ac1e955498
UPSTREAM: dm: core: Drop use of strlcpy()
We can use printf() to limit the string width. Adjust the code to do this instead of using strlcpy() which is a bit clumbsy.
Change-Id: I69e67116ac1e955498ff886c7daa7461e1fa17ab Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Tested-by: Bin Meng <bmeng.cn@gmail.com> Signed-off-by: Kever Yang <kever.yang@rock-chips.com> (cherry picked from commit a0f9acb08bd6f3b4a6f3adcb02c8170e522c074a)
show more ...
|
| #
8d3a2568 |
| 12-Jul-2017 |
Tom Rini <trini@konsulko.com> |
Merge git://git.denx.de/u-boot-dm
|
| #
fce136aa |
| 22-Jun-2017 |
Masahiro Yamada <yamada.masahiro@socionext.com> |
dm: include <dm/util.h> from driver/core/dump.c
Include <dm/util.h> to fix sparse warnings: symbol 'dm_dump_all' was not declared. Should it be static? symbol 'dm_dump_uclass' was not declared. Shou
dm: include <dm/util.h> from driver/core/dump.c
Include <dm/util.h> to fix sparse warnings: symbol 'dm_dump_all' was not declared. Should it be static? symbol 'dm_dump_uclass' was not declared. Should it be static?
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Acked-by: Simon Glass <sjg@chromium.org>
show more ...
|
| #
304fbef1 |
| 23-Jun-2015 |
Simon Glass <sjg@chromium.org> |
dm: Move the tree/uclass dump code into its own file
In SPL it is sometimes useful to be able to obtain a dump of the current driver model state. Since commands are not available, provide a way to d
dm: Move the tree/uclass dump code into its own file
In SPL it is sometimes useful to be able to obtain a dump of the current driver model state. Since commands are not available, provide a way to directly call the functions to output this information.
Adjust the existing commands to use these functions.
Signed-off-by: Simon Glass <sjg@chromium.org>
show more ...
|