[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Ya5wRwx9xZX9pQBV@robh.at.kernel.org>
Date: Mon, 6 Dec 2021 14:19:19 -0600
From: Rob Herring <robh@...nel.org>
To: Sam Protsenko <semen.protsenko@...aro.org>
Cc: Jaewon Kim <jaewon02.kim@...sung.com>,
Geert Uytterhoeven <geert+renesas@...der.be>,
Rob Herring <robh+dt@...nel.org>, linux-kernel@...r.kernel.org,
Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>,
David Virag <virag.david003@...il.com>,
Masahiro Yamada <masahiroy@...nel.org>,
devicetree@...r.kernel.org, linux-samsung-soc@...r.kernel.org
Subject: Re: [PATCH] dt-bindings: Only show unique unit address warning for
enabled nodes
On Fri, 03 Dec 2021 20:35:17 +0200, Sam Protsenko wrote:
> There are valid cases when two nodes can have the same address. For
> example, in Exynos SoCs there is USI IP-core, which might be configured
> to provide UART, SPI or I2C block, all of which having the same base
> register address. But only one can be enabled at a time. That looks like
> this:
>
> usi@...200c0 {
> serial@...20000 {
> status = "okay";
> };
>
> i2c@...20000 {
> status = "disabled";
> };
> };
>
> When running "make dt_binding_check", it reports next warning:
>
> Warning (unique_unit_address):
> /example-0/usi@...200c0/serial@...20000:
> duplicate unit-address (also used in node
> /example-0/usi@...200c0/i2c@...20000)
>
> Disable "unique_unit_address" in DTC_FLAGS to suppress warnings like
> that, but enable "unique_unit_address_if_enabled" warning, so that dtc
> still reports a warning when two enabled nodes are having the same
> address.
>
> Signed-off-by: Sam Protsenko <semen.protsenko@...aro.org>
> Reported-by: Rob Herring <robh@...nel.org>
> Suggested-by: Rob Herring <robh@...nel.org>
> ---
> Documentation/devicetree/bindings/Makefile | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
Applied, thanks!
Powered by blists - more mailing lists