u-boot-brain/scripts/dtc
Maxime Ripard 5ed2dc5623 dtc: add ability to make nodes conditional on them being referenced
This is needed when importing mainline DTs into U-Boot, as some started
using this /omit-if-no-ref/ tag, so won't compile with U-Boot's current
dtc copy. This is just a cherry-pick of the patch introducing this
feature.
Original commit message from Maxime:
------------------
A number of platforms have a need to reduce the number of DT nodes,
mostly because of two similar constraints: the size of the DT blob, and
the time it takes to parse it.

As the DT is used in more and more SoCs, and by more projects, some
constraints start to appear in bootloaders running from SRAM with an
order of magnitude of 10kB. A typical DT is in the same order of
magnitude, so any effort to reduce the blob size is welcome in such an
environment.

Some platforms also want to reach very fast boot time, and the time it
takes to parse a typical DT starts to be noticeable.

Both of these issues can be mitigated by reducing the number of nodes in
the DT. The biggest provider of nodes is usually the pin controller and
its subnodes, usually one for each valid pin configuration in a given
SoC.

Obviously, a single, fixed, set of these nodes will be used by a given
board, so we can introduce a node property that will tell the DT
compiler to drop the nodes when they are not referenced in the tree, and
as such wouldn't be useful in the targetted system.

Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2020-02-05 19:33:46 -07:00
..
libfdt libfdt: Revert 6dcb8ba4 from upstream libfdt 2020-01-30 13:30:35 -05:00
pylibfdt scripts: dtc: ignore files generated generated by python 2019-11-23 14:53:48 -05:00
.gitignore scripts/dtc: Re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
checks.c dtc: add ability to make nodes conditional on them being referenced 2020-02-05 19:33:46 -07:00
data.c scripts/dtc: Update to upstream version v1.4.4 2017-09-23 17:33:06 -04:00
dtc-lexer.l dtc: add ability to make nodes conditional on them being referenced 2020-02-05 19:33:46 -07:00
dtc-parser.y dtc: add ability to make nodes conditional on them being referenced 2020-02-05 19:33:46 -07:00
dtc.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
dtc.h dtc: add ability to make nodes conditional on them being referenced 2020-02-05 19:33:46 -07:00
flattree.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
fstree.c scripts/dtc: Update to upstream version v1.4.3 2017-09-23 17:33:03 -04:00
livetree.c dtc: add ability to make nodes conditional on them being referenced 2020-02-05 19:33:46 -07:00
Makefile scripts/dtc: Re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
Makefile.dtc scripts/dtc: Update to upstream version v1.4.3 2017-09-23 17:33:03 -04:00
srcpos.c scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
srcpos.h scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
treesource.c scripts/dtc: Update to upstream version v1.4.4 2017-09-23 17:33:06 -04:00
update-dtc-source.sh scripts/dtc: Re-sync with Linux 4.17-rc4 2018-05-31 08:53:11 -04:00
util.c scripts/dtc: Update to upstream version v1.4.4 2017-09-23 17:33:06 -04:00
util.h scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00
version_gen.h scripts/dtc: Update to upstream version v1.4.6-9-gaadd0b65c987 2018-05-31 08:53:11 -04:00