[PATCH v2 0/6] commands: implement of_compatible command

Sascha Hauer sha at pengutronix.de
Thu May 25 00:36:18 PDT 2023


On Fri, May 19, 2023 at 12:01:14PM +0200, Ahmad Fatoum wrote:
> This enables scripts to do:
> 
>   if of_compatible -k radxa,rock3a radxa,rock5a ; then
>     of_property -df mmc0 sd-uhs-sdr104
>   fi
> 
> instead of checking $global.model. See individual patches for changelog.
> 
> Ahmad Fatoum (6):
>   treewide: don't mix goto labels and statements on same line
>   treewide: drop null pointer checks around of_delete_node
>   commands: of_property: use new of_read_file
>   commands: of_dump: remove duplicate error message
>   commands: of_dump: use of_dup instead of flattening/unflattening
>   commands: implement of_compatible command
> 
>  commands/Kconfig                 |  15 ++++
>  commands/Makefile                |   1 +
>  commands/of_compatible.c         | 124 +++++++++++++++++++++++++++++++
>  commands/of_dump.c               |  28 ++-----
>  commands/of_property.c           |  16 +---
>  common/blspec.c                  |   3 +-
>  common/state/state.c             |  15 ++--
>  common/state/state_variables.c   |   9 ++-
>  drivers/usb/gadget/udc/fsl_udc.c |   3 +-
>  9 files changed, 168 insertions(+), 46 deletions(-)
>  create mode 100644 commands/of_compatible.c

Applied, thanks

Sascha

-- 
Pengutronix e.K.                           |                             |
Steuerwalder Str. 21                       | http://www.pengutronix.de/  |
31137 Hildesheim, Germany                  | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list