From: Shawn Guo <shawnguo2@yeah.net>
To: Andrej Picej <andrej.picej@norik.com>
Cc: shawnguo@kernel.org, s.hauer@pengutronix.de,
kernel@pengutronix.de, festevam@gmail.com, robh@kernel.org,
krzk+dt@kernel.org, conor+dt@kernel.org, imx@lists.linux.dev,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, upstream@lists.phytec.de
Subject: Re: [PATCH v2 13/15] arm64: dts: imx8mm-phycore-som: Add overlay for rproc
Date: Mon, 17 Feb 2025 18:11:40 +0800 [thread overview]
Message-ID: <Z7MLXJkmcTuq3ZHn@dragon> (raw)
In-Reply-To: <221c8216-ce71-4ba2-9981-8612ff33ec2a@norik.com>
On Tue, Dec 31, 2024 at 08:34:32AM +0100, Andrej Picej wrote:
> > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso b/arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso
> > > new file mode 100644
> > > index 000000000000..0c61946f0cf8
> > > --- /dev/null
> > > +++ b/arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso
> > > @@ -0,0 +1,55 @@
> > > +// SPDX-License-Identifier: GPL-2.0
> > > +/*
> > > + * Copyright (C) 2024 PHYTEC Messtechnik GmbH
> > > + * Author: Dominik Haller <d.haller@phytec.de>
> > > + */
> > > +
> > > +/dts-v1/;
> > > +/plugin/;
> > > +
> > > +#include <dt-bindings/clock/imx8mm-clock.h>
> > > +
> > > +&{/} {
> > > + reserved-memory {
> > > + #address-cells = <2>;
> > > + #size-cells = <2>;
> > > + ranges;
> >
> > I'm getting this:
> >
> > arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:16.3-10: Warning (ranges_format): /fragment@0/__overlay__/reserved-memory:ranges: empty "ranges" property but its #size-cells (2) differs from /fragment@0/__overlay__ (1)
> > arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #address-cells value
> > arch/arm64/boot/dts/freescale/imx8mm-phycore-rpmsg.dtso:13.18-43.4: Warning (avoid_default_addr_size): /fragment@0/__overlay__/reserved-memory: Relying on default #size-cells value
> >
>
> I see, missed this before, sorry. But I have some problems fixing it.
> I think the problem is that this is overlay, the same node put in the
> imx8mm-phycore-som.dtsi doesn't trigger a warning.
> The only solution that I found is that I specify the default address-cells
> and size-cells in root node:
>
>
> &{/} {
> #address-cells = <2>;
> #size-cells = <2>;
>
> reserved-memory {
> #address-cells = <2>;
> #size-cells = <2>;
> ranges;
> ...
> };
> };
>
> The same values are used in imx8mm.dtsi, but the checker fails to find these
> default values.
> Not sure if this is the right solution, though. Your input would be helpful,
> thanks.
Unless DT folks have better suggestion, I'm fine with this.
Shawn
next prev parent reply other threads:[~2025-02-17 10:53 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-02 7:20 [PATCH v2 00/15] Update PHYTEC's i.MX8MM DTSs Andrej Picej
2024-12-02 7:20 ` [PATCH v2 01/15] arm64: dts: imx8mm-phycore-som: Keep LDO3 on in suspend Andrej Picej
2024-12-02 7:20 ` [PATCH v2 02/15] arm64: dts: imx8mm-phycore-som: Fix bluetooth wakeup source Andrej Picej
2024-12-02 7:20 ` [PATCH v2 03/15] arm64: dts: imx8mm-phycore-som: Remove magic-packet property Andrej Picej
2024-12-02 7:20 ` [PATCH v2 04/15] arm64: dts: imx8mm-phycore-som: Assign regulator for dsi to lvds bridge Andrej Picej
2024-12-02 7:20 ` [PATCH v2 05/15] arm64: dts: imx8mm-phycore-som: add descriptions to nodes Andrej Picej
2024-12-02 7:20 ` [PATCH v2 06/15] arm64: dts: imx8mm-phyboard-polis: add RTC description Andrej Picej
2024-12-02 7:20 ` [PATCH v2 07/15] arm64: dts: imx8mm-phyboard-polis: Set RTC as wakeup-source Andrej Picej
2024-12-02 7:20 ` [PATCH v2 08/15] arm64: dts: imx8mm-phygate-tauri-l: " Andrej Picej
2024-12-02 7:20 ` [PATCH v2 09/15] arm64: dts: imx8mm: move bulk of rtc properties to carrierboards Andrej Picej
2024-12-02 7:20 ` [PATCH v2 10/15] arm64: dts: imx8mm-phyboard-polis: Assign missing regulator for bluetooth Andrej Picej
2024-12-02 7:20 ` [PATCH v2 11/15] arm64: dts: imx8mm-phyboard-polis: Add support for PEB-AV-10 Andrej Picej
2024-12-02 7:20 ` [PATCH v2 12/15] arm64: dts: imx8mm-phyboard-polis: Add overlay for PEB-EVAL-01 Andrej Picej
2024-12-02 7:20 ` [PATCH v2 13/15] arm64: dts: imx8mm-phycore-som: Add overlay for rproc Andrej Picej
2024-12-30 4:17 ` Shawn Guo
2024-12-31 7:34 ` Andrej Picej
2025-01-20 7:01 ` [Upstream] " Andrej Picej
2025-02-17 10:11 ` Shawn Guo [this message]
2025-02-18 5:16 ` Andrej Picej
2024-12-02 7:20 ` [PATCH v2 14/15] arm64: dts: imx8mm-phycore-som: Add no-eth phy overlay Andrej Picej
2024-12-02 7:20 ` [PATCH v2 15/15] arm64: dts: imx8mm-phycore-som: Add overlay to disable SPI NOR flash Andrej Picej
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Z7MLXJkmcTuq3ZHn@dragon \
--to=shawnguo2@yeah.net \
--cc=andrej.picej@norik.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.de \
--cc=shawnguo@kernel.org \
--cc=upstream@lists.phytec.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).