u-boot/test/dm
Patrick Delaunay 0544ecbfe9 dm: core: Move "/chosen" and "/firmware" node scan
Use the new function dm_scan_fdt_ofnode_path() to scan all the nodes
which aren't devices themselves but may contain some:
- "/chosen"
- "/clocks"
- "/firmware"

The patch removes the strcmp call in recursive function dm_scan_fdt_live()
and also corrects a conflict with the 2 applied patches in
the commit 1712ca2192 ("dm: core: Scan /firmware node by default")
and in the commit 747558d014 ("dm: fdt: scan for devices under
/firmware too"): the subnodes of "/firmware" (optee for example)
are bound 2 times.

For example the dm tree command result on STM32MP1 is:

STM32MP> dm tree
 Class     Index  Probed  Driver                Name
 -----------------------------------------------------------
 root          0  [ + ]   root_driver           root_driver
 firmware      0  [   ]   psci                  |-- psci
 sysreset      0  [   ]   psci-sysreset         |   `-- psci-sysreset
 simple_bus    0  [ + ]   generic_simple_bus    |-- soc
...
 tee           0  [ + ]   optee                 |-- optee
...
 tee           1  [   ]   optee                 `-- optee

Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-04-16 08:07:57 -06:00
..
adc.c test: dm: adc: use the real device name 2019-07-12 21:07:58 -04:00
audio.c dm: sound: Create a uclass for audio codecs 2018-12-13 16:32:49 -07:00
axi.c test: Add AXI test 2018-08-11 08:11:02 +02:00
blk.c test: dm: blk: Correct blk_base test case 2018-11-14 09:16:27 -08:00
board.c test: Add tests for board uclass 2018-09-29 11:49:35 -06:00
bootcount.c test: bootcount: add bootcount-uclass test 2019-01-14 17:41:23 -05:00
bus.c dm: core: Add a function to count the children of a device 2019-10-11 10:07:33 -04:00
cache.c dm: cache: Add enable and disable ops for sandbox and test 2019-09-03 09:31:03 +08:00
clk.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
clk_ccf.c sandbox: clk: add clk enable/disable test code 2019-08-22 00:10:09 +02:00
core.c dm: core: Correct the return value for uclass_find_first_device() 2019-10-08 13:57:38 +08:00
cpu.c test: Add tests for CPU uclass 2018-09-18 08:12:21 -06:00
devres.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
dma.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
dsi_host.c dm: Add a dsi host uclass 2019-10-13 23:34:43 +02:00
eth.c env: Move env_set() to env.h 2019-08-11 16:43:41 -04:00
firmware.c dm: test: Add "/firmware" node scan test 2018-09-29 11:49:35 -06:00
gpio.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
hwspinlock.c dm: Add Hardware Spinlock class 2018-12-06 23:26:32 -05:00
i2c.c dm: i2c: EEPROM simulator add tests for addr offset mask 2019-12-17 06:57:31 +01:00
i2s.c dm: sound: Create a uclass for i2s 2018-12-13 16:32:49 -07:00
irq.c dm: irq: Add support for requesting interrupts 2020-02-07 22:46:32 +08:00
Kconfig test: Move the unit tests to their own menu 2015-05-21 09:16:17 -04:00
led.c sandbox: led: use new function to configure default state 2018-08-10 10:27:32 -04:00
mailbox.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
Makefile dm: Increased separation of ofdata_to_platdata() and probe methods 2020-01-09 08:52:21 -05:00
mdio.c test: dm_mdio: add a 2nd register to the emulated PHY 2019-07-18 16:37:13 -05:00
mdio_mux.c test: dm: add a test for MDIO MUX DM uclass 2019-07-18 16:37:13 -05:00
misc.c misc: Update read() and write() methods to return bytes xfered 2018-11-20 19:14:22 -07:00
mmc.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
nop.c dm: Add a No-op uclass 2019-07-05 14:19:41 +02:00
ofnode.c dm: core: Add ofnode_get_chosen_prop() 2020-02-05 19:33:45 -07:00
osd.c video_osd: Add osd sandbox driver and tests 2018-09-28 18:26:52 +02:00
p2sb.c sandbox: Add PCI driver and test for p2sb 2019-12-15 11:44:11 +08:00
panel.c panel: Expand the backlight support 2018-10-09 04:40:27 -06:00
pch.c pch: Add ioctl support 2019-02-20 15:27:08 +08:00
pci.c dm: pci: Add a function to read a PCI BAR 2019-10-08 13:57:43 +08:00
pci_ep.c test: pci_ep: add basic pci_ep tests 2019-07-11 10:05:15 -04:00
phy.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
pmc.c x86: sandbox: Add a PMC emulator and test 2019-12-15 11:44:11 +08:00
pmic.c sandbox: tests: Add tests for mc34708 PMIC device 2018-05-18 08:27:26 +02:00
power-domain.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
pwm.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ram.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
regmap.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
regulator.c dm: regulator: support regulator more state 2019-11-10 20:31:09 +08:00
remoteproc.c remoteproc: elf_loader: Add elf resource table load support 2020-01-07 11:13:25 -05:00
reset.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
rng.c test: rng: Add basic test for random number generator(rng) uclass 2020-01-07 18:08:21 +01:00
rtc.c dm: sandbox: i2c: Use new emulator parent uclass 2018-11-29 09:30:05 -07:00
serial.c dm: serial: Adjust serial_getinfo() to use proper API 2019-01-14 17:47:13 -07:00
sf.c common: Move command functions out of common.h 2019-12-02 18:25:02 -05:00
smem.c test: smem: add basic smem test 2018-07-19 17:03:28 -04:00
sound.c sound: Add a new stop_play() method 2020-02-05 19:33:46 -07:00
spi.c test: dm: spi: Fix sandbox dm_test_spi_find() 2020-01-27 22:27:21 +05:30
spmi.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
syscon.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
sysreset.c sandbox: sysreset: Update to support power-on reset 2018-12-05 06:01:34 -07:00
tee.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
test-driver.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
test-fdt.c dm: core: Move "/chosen" and "/firmware" node scan 2020-04-16 08:07:57 -06:00
test-main.c test: Enable console recording in tests 2020-02-05 19:33:46 -07:00
test-uclass.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
usb.c dm: test: usb: rework keyboard test 2019-11-25 13:28:53 +01:00
video.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
virtio.c test: dm: virtio: Add test cases for virtio uclass 2018-11-14 09:16:28 -08:00
wdt.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00