diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-05-27 14:44:06 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-05-31 09:00:27 +0200 |
commit | 8a26715aad3d88c3876b3305762a7a549472d969 (patch) | |
tree | dd61e0293ac9198b3cdc75d5b15f2057d6e57c9e /include | |
parent | 30f96444b68b75dc940fb698df0f4427e437cdf2 (diff) | |
download | barebox-8a26715aad3d88c3876b3305762a7a549472d969.tar.gz barebox-8a26715aad3d88c3876b3305762a7a549472d969.tar.xz |
commands: of_dump: implement -p for printing properties only
Some boards rewrite root node properties like compatible and
serial-number. Checking them can be annoying, because the properties
have usually long scrolled by, by the time the device tree was
completely dumped. Add a -p option to print only properties.
-p -n (print only node names AND only properties) is interpreted
to cancel each other out, so the whole device tree is dumped normally.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20210527124406.22121-1-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/of.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index 645f429bde..55e6bff868 100644 --- a/include/of.h +++ b/include/of.h @@ -105,6 +105,7 @@ void of_print_property(const void *data, int len); void of_print_cmdline(struct device_node *root); void of_print_nodes(struct device_node *node, int indent); +void of_print_properties(struct device_node *node); void of_diff(struct device_node *a, struct device_node *b, int indent); int of_probe(void); int of_parse_dtb(struct fdt_header *fdt); |