zephyr/dts
Ulf Magnusson d834b69bd9 scripts: dts: Improve syntax and code for including binding files
Have

    include: foo.dts
    include: [foo.dts, bar.dts]

instead of

    inherits:
        !include foo.dts

    inherits:
        !include [foo.dts, bar.dts]

This is a nicer and shorter and less cryptic syntax, and will make it
possible to get rid of the custom PyYAML constructor for '!include'
later.

'inherits: !include ...' is still supported for backwards compatibility
for now. Later on, I'm planning to mass-replace it, add a deprecation
warning if it's used, and document 'include:'. Then the '!include'
implementation can be removed a bit later.

'!include' has caused issues in the past (see the comment above the
add_constructor() call), gets iffy with multiple EDT instances, and
makes the code harder to follow.

I'm guessing '!include' might've been intended to be useful outside of
'inherits:' originally, but that's the only place where it's used. It's
undocumented that it's possible to put it elsewhere.

To implement the backwards compatibility, the code just transforms

    inherits:
        !include foo.dts

into

    inherits:
        - foo.dts

and treats 'inherits:' similarly to 'include:'. Previously, !include
inserted the contents of the included file instead.

Some more sanity checks for 'include:'/'inherits:' are included as well.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
2019-09-07 10:25:02 -05:00
..
arc boards: hsdk: add initial support of ARC HS Development Kit 2019-08-10 20:11:29 +02:00
arm dts: Add io-channel details to ADC nodes/bindings 2019-09-07 10:25:02 -05:00
bindings dts: bindings: Have 'required: true/false' instead of 'category: ...' 2019-09-07 10:25:02 -05:00
common dts: flash simulator cleanup 2019-04-26 04:04:19 -07:00
nios2 dts: nios2: Remove device_type = "memory" from SRAM nodes 2019-08-06 08:59:22 -04:00
posix dts: posix: Add DTS support for POSIX architecture 2019-05-28 21:14:19 -04:00
riscv riscv: add a qemu_riscv64 board 2019-08-09 09:11:45 -05:00
x86 x86: ia32: do not use the first megabyte 2019-08-07 12:50:53 -07:00
xtensa dts: Add information about system bus frequency to the dts 2019-07-17 21:53:36 +02:00
Kconfig license: cleanup: add SPDX Apache-2.0 license identifier 2019-04-07 08:45:22 -04:00
binding-template.yaml scripts: dts: Improve syntax and code for including binding files 2019-09-07 10:25:02 -05:00