summaryrefslogtreecommitdiff
path: root/drivers/of/unittest-data/overlay_gpio_03.dts
diff options
context:
space:
mode:
authorAlexandre Torgue <alexandre.torgue@foss.st.com>2022-10-21 10:44:47 +0200
committerRob Herring <robh@kernel.org>2022-10-21 16:02:05 -0500
commitae5a16c8da92f511fe633d0872043cd317966092 (patch)
tree80e47591b73b2e29b99d47536a65cb81a16a158e /drivers/of/unittest-data/overlay_gpio_03.dts
parent33ce453cad470ffd92ba79534dc67946b64d13b2 (diff)
downloadlwn-ae5a16c8da92f511fe633d0872043cd317966092.tar.gz
lwn-ae5a16c8da92f511fe633d0872043cd317966092.zip
scripts: dtc: only show unique unit address warning for enabled nodes
In some cases an hardware peripheral can be used for two exclusive usages. For example, on STM32MP15 we have the same peripheral for I2S and SPI. We have dedicated driver for each usage and so a dedicated device node in devicetree. To avoid to get useless warnings running "make W=1 dtbs", this patch adds the "-Wunique_unit_address_if_enabled" flag for a make with W=1. In this case we will detect a duplicate address only if both devices are enabled in the devicetree, which is a real error case. Signed-off-by: Alexandre Torgue <alexandre.torgue@foss.st.com> Link: https://lore.kernel.org/r/20221021084447.5550-1-alexandre.torgue@foss.st.com [robh: Refactor options and keep 'unique_unit_address' for W=2] Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/unittest-data/overlay_gpio_03.dts')
0 files changed, 0 insertions, 0 deletions