1
linux/scripts/dtc
Nícolas F. R. A. Prado 365ba0c7a7 dt: dt-extract-compatibles: Add flag for driver matching compatibles
Add a new flag, '--driver-match', to the dt-extract-compatibles script
that causes it to only print out compatibles that are expected to match
a driver. This output can then be used by tests to detect device probe
failures.

In order to filter the compatibles down to only ones that will match to
a driver, the following is considered:
- A compatible needs to show up in a driver's of_match_table for it to
  be matched to a driver
- Compatibles that are used in both of_match_table and OF_DECLARE type
  macros can't be expected to match to a driver and so are ignored.
  One exception is CLK_OF_DECLARE_DRIVER, since it indicates that a
  driver will also later probe, so compatibles in this macro are not
  ignored.

Signed-off-by: Nícolas F. R. A. Prado <nfraprado@collabora.com>
Link: https://lore.kernel.org/r/20230828211424.2964562-3-nfraprado@collabora.com
Signed-off-by: Rob Herring <robh@kernel.org>
2023-09-20 14:25:10 -05:00
..
include-prefixes dts: add riscv include prefix link 2023-03-27 22:45:22 +02:00
libfdt scripts/dtc: Update to upstream version v1.6.1-66-gabbd523bae6e 2023-02-06 11:03:00 -06:00
.gitignore
checks.c scripts/dtc: Update to upstream version v1.6.1-63-g55778a03df61 2022-11-10 08:37:19 -06:00
data.c
dt_to_config
dt-extract-compatibles dt: dt-extract-compatibles: Add flag for driver matching compatibles 2023-09-20 14:25:10 -05:00
dtc-lexer.l scripts/dtc: Update to upstream version v1.6.1-63-g55778a03df61 2022-11-10 08:37:19 -06:00
dtc-parser.y scripts/dtc: Update to upstream version v1.6.1-66-gabbd523bae6e 2023-02-06 11:03:00 -06:00
dtc.c
dtc.h
dtx_diff
fdtget.c
fdtoverlay.c
fdtput.c
flattree.c
fstree.c
livetree.c scripts/dtc: Update to upstream version v1.6.1-63-g55778a03df61 2022-11-10 08:37:19 -06:00
Makefile dt-bindings: kbuild: Use DTB files for validation 2022-03-11 11:16:16 -06:00
of_unittest_expect of: add processing of EXPECT_NOT to of_unittest_expect 2023-02-17 15:46:20 -06:00
srcpos.c
srcpos.h
treesource.c
update-dtc-source.sh dt-bindings: kbuild: Use DTB files for validation 2022-03-11 11:16:16 -06:00
util.c scripts/dtc: Update to upstream version v1.6.1-63-g55778a03df61 2022-11-10 08:37:19 -06:00
util.h scripts/dtc: Update to upstream version v1.6.1-63-g55778a03df61 2022-11-10 08:37:19 -06:00
version_gen.h scripts/dtc: Update to upstream version v1.6.1-66-gabbd523bae6e 2023-02-06 11:03:00 -06:00
yamltree.c