dm: core: Support sorting devices with dm tree

Add a -s flag to sort the top-level devices in order of uclass ID.

Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
Simon Glass
2023-01-17 10:47:12 -07:00
committed by Tom Rini
parent c0f19fedaa
commit 3d01254140
5 changed files with 114 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ Synopis
dm devres
dm drivers
dm static
dm tree
dm tree [-s]
dm uclass
Description
@@ -123,6 +123,9 @@ Name
Shows the device name as well as the tree structure, since child devices are
shown attached to their parent.
If -s is given, the top-level devices (those which are children of the root
device) are shown sorted in order of uclass ID, so it is easier to find a
particular device type.
dm uclass
~~~~~~~~~