All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/5] Improve output type formatting
@ 2021-07-27 18:30 Rob Herring
       [not found] ` <20210727183023.3212077-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
  0 siblings, 1 reply; 23+ messages in thread
From: Rob Herring @ 2021-07-27 18:30 UTC (permalink / raw)
  To: devicetree-compiler-u79uwXL29TY76Z2rM5mHXA

This series improves maintaining type information in the output of dtc
from sources without any type annotations such as dtb format. As there's
already a bunch of type information in the checks, we simply need to
have the checks add markers.

This is needed in part to be able to run DT schema validation on dtb
files. I also plan to use the schema files to provide type information
for all the properties not covered by the dtc checks. Why not do this
for all the properties? It's possible, but it wouldn't be possible with
just pure schema. The phandle+args patterns with variable cells would
need to recreate the same parsing code.

Rob

Rob Herring (5):
  Move marker functions to dtc.h
  Add has_type_markers() helper
  checks: Add markers on known properties
  dtc: Drop dts source restriction for yaml output
  treesource: Maintain phandle label/path on output

 checks.c                        | 87 +++++++++++++++++++++++++++++++--
 dtc.c                           |  2 -
 dtc.h                           | 28 ++++++++++-
 tests/type-preservation.dt.yaml |  3 ++
 tests/type-preservation.dts     |  3 ++
 treesource.c                    | 48 ++++++++----------
 6 files changed, 135 insertions(+), 36 deletions(-)

-- 
2.27.0


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2021-11-09  4:41 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27 18:30 [PATCH v3 0/5] Improve output type formatting Rob Herring
     [not found] ` <20210727183023.3212077-1-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2021-07-27 18:30   ` [PATCH v3 1/5] Move marker functions to dtc.h Rob Herring
     [not found]     ` <20210727183023.3212077-2-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2021-08-26  4:00       ` David Gibson
2021-09-27 20:56         ` Rob Herring
     [not found]           ` <CAL_Jsq+QAnyu=Fj_RtRu-dS4Ta0bZJWFUABsK1uKbnAKpXi1mA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-10-11  5:29             ` David Gibson
2021-07-27 18:30   ` [PATCH v3 2/5] Add has_type_markers() helper Rob Herring
2021-07-27 18:30   ` [PATCH v3 3/5] checks: Add markers on known properties Rob Herring
     [not found]     ` <20210727183023.3212077-4-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2021-10-11  5:09       ` David Gibson
2021-10-11 13:57         ` Rob Herring
2021-07-27 18:30   ` [PATCH v3 4/5] dtc: Drop dts source restriction for yaml output Rob Herring
     [not found]     ` <20210727183023.3212077-5-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2021-10-11  5:15       ` David Gibson
2021-10-11 13:22         ` Rob Herring
     [not found]           ` <CAL_Jsq+sMrRWqqPgcvoaiY0rLSp_s+gXOqJ9OuFLQ-3piUHSVA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-10-13  3:12             ` David Gibson
2021-10-14  1:29               ` Rob Herring
     [not found]                 ` <CAL_Jsq+iv7eM+LZ1O8d3V18dHraEAyfgdT8ucFKKVXZc9jEp4g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-11-03  4:42                   ` David Gibson
2021-11-03 15:59                     ` Rob Herring
     [not found]                       ` <CAL_JsqLNyfe8Ou4RXeLm0ie1vvJ+z15J6EDgB96dPbCC5qvHVQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-11-03 19:16                         ` Rob Herring
     [not found]                           ` <CAL_JsqKeNne0Bf0ahG_h977snsBtsk3hbQOPO-6RiyFSyiOsfA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-11-03 19:56                             ` Simon Glass
     [not found]                               ` <CAPnjgZ3BNPW+L4BrhQ9W4nLovSgcchWPfbznYxtf20sv2ntYaA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-11-03 22:42                                 ` Rob Herring
     [not found]                                   ` <CAL_JsqLdKsVO9kzkZcqL160COrpEp6GsR10AyPvmSG3B=grAXg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2021-11-03 22:48                                     ` Simon Glass
2021-11-09  4:41                         ` David Gibson
2021-07-27 18:30   ` [PATCH v3 5/5] treesource: Maintain phandle label/path on output Rob Herring
     [not found]     ` <20210727183023.3212077-6-robh-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2021-10-11  5:21       ` David Gibson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.