From: Francesco Dolcini <francesco@dolcini.it>
To: Frank Li <Frank.li@oss.nxp.com>
Cc: Francesco Dolcini <francesco@dolcini.it>,
Francesco Dolcini <francesco.dolcini@toradex.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>, Frank Li <Frank.Li@nxp.com>,
Sascha Hauer <s.hauer@pengutronix.de>,
Pengutronix Kernel Team <kernel@pengutronix.de>,
Fabio Estevam <festevam@gmail.com>,
linux-bsp@toradex.com, devicetree@vger.kernel.org,
imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v1 01/11] arm64: dts: freescale: imx8mm-verdin: Add SPI alias
Date: Mon, 16 Nov 2026 12:45:09 +0100 [thread overview]
Message-ID: <20261116114509.GA101185@francesco-nb> (raw)
In-Reply-To: <aveChu8WqYM2JZcN@SMW015318>
Hello Frank,
On Fri, Nov 13, 2026 at 03:35:02PM -0600, Frank Li wrote:
> On Fri, Nov 13, 2026 at 06:19:27PM +0100, Francesco Dolcini wrote:
> > On Fri, Nov 13, 2026 at 10:11:11AM -0600, Frank Li wrote:
> > > On Fri, Nov 13, 2026 at 08:31:35AM +0100, Francesco Dolcini wrote:
> > > > Hello Frank,
> > > >
> > > > On Thu, Nov 12, 2026 at 09:41:31AM -0600, Frank Li wrote:
> > > > > On Thu, Nov 12, 2026 at 04:02:23PM +0100, Francesco Dolcini wrote:
> > > > > > From: Francesco Dolcini <francesco.dolcini@toradex.com>
> > > > > >
> > > > > > The Verdin family pinout defines the SoM interfaces and their
> > > > > > numbering, SPI_1 being the SPI bus available to the carrier board,
> > > > > > implemented by ecspi2 on Verdin iMX8MM.
> > > > > >
> > > > > > imx8mm.dtsi numbers ecspi2 as spi1, so the Linux bus number in sysfs
> > > > > > and the spidev name do not match the Verdin interface. Add a spi0
> > > > > > alias in the SoM dtsi and delete the inherited spi1, so ecspi2 is
> > > > > > bus 0, zero-based with SPI_1 being spi0, and carries a single alias.
> > > > > > ecspi3, internal to the SoM with the CAN controller and the TPM, keeps
> > > > > > the spi2 alias inherited from the SoC.
> > > > > >
> > > > > > Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
> > > > > > ---
> > > > > > arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi | 2 ++
> > > > > > 1 file changed, 2 insertions(+)
> > > > > >
> > > > > > diff --git a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
> > > > > > index 1ac9d000d415..0369803a4d46 100644
> > > > > > --- a/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
> > > > > > +++ b/arch/arm64/boot/dts/freescale/imx8mm-verdin.dtsi
> > > > > > @@ -16,6 +16,8 @@ chosen {
> > > > > > aliases {
> > > > > > rtc0 = &rtc_i2c;
> > > > > > rtc1 = &snvs_rtc;
> > > > > > + spi0 = &ecspi2;
> > > > > > + /delete-property/ spi1;
> > > > >
> > > > > Can you avoid delete property for new platform?
> > > >
> > > > Unfortunately this is needed.
> > > >
> > > > The included imx8mm.dtsi has
> > > >
> > > > spi1 = &ecspi2;
> > >
> > > Create patch move aliase to each boards' dts from imx8mm.dtsi, which is
> > > board feature, not soc features.
> >
> > Please see the linked thread [0][1]. It's not a viable option.
>
> where [0] and [1]
Please see my previous email,
https://lore.kernel.org/all/20261113073135.GA8515@francesco-nb/
in which I tried to explain the issue.
> > In addition, I can do this for my boards (Toradex), how do I know what I
> > have to move for boards I do not know? I can't do that. The only way
> > would be to duplicate the whole aliases on *every* board.
>
> at imx9, already move aliase to each boards, dupicate it and just make
> sure build finial results the same.
>
> i.mx8 is still not too old yet.
Do you want me to duplicate the whole aliases block on every board? I
cannot do anything better then just duplicating everything, given I do
not know what aliases make sense for each board. I can do better for my
boards (Toradex), but for the others I can't.
And this will likely break out-of-tree users (and to be clear, I think
that out-of-tree users of Linux DT files is a fact, see U-Boot, barebox,
... and more), as I discussed in the previously linked discussion.
To me this is not the correct thing to do, it will work for my boards,
but I do not think this is the right decision for the whole i.MX
ecosystem.
And it's not about being old or not, it's about not introducing
regressions and caring about the users.
Francesco
next prev parent reply other threads:[~2026-11-16 11:45 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-12 15:02 [PATCH v1 00/11] arm64: dts: freescale: Add SPI aliases to Toradex SoMs Francesco Dolcini
2026-11-12 15:02 ` [PATCH v1 01/11] arm64: dts: freescale: imx8mm-verdin: Add SPI alias Francesco Dolcini
2026-11-12 15:41 ` Frank Li
2026-11-13 7:31 ` Francesco Dolcini
2026-11-13 16:11 ` Frank Li
2026-11-13 17:19 ` Francesco Dolcini
2026-11-13 21:35 ` Frank Li
2026-11-16 11:45 ` Francesco Dolcini [this message]
2026-11-12 15:02 ` [PATCH v1 02/11] arm64: dts: freescale: imx8mp-verdin: " Francesco Dolcini
2026-11-12 15:02 ` [PATCH v1 03/11] arm64: dts: freescale: imx95-verdin: " Francesco Dolcini
2026-11-12 15:02 ` [PATCH v1 04/11] arm64: dts: freescale: imx8x-colibri: " Francesco Dolcini
2026-11-12 15:02 ` [PATCH v1 05/11] arm64: dts: freescale: imx8mp-toradex-smarc: Add SPI aliases Francesco Dolcini
2026-11-12 15:02 ` [PATCH v1 06/11] arm64: dts: freescale: imx95-toradex-smarc: " Francesco Dolcini
2026-11-12 15:02 ` [PATCH v1 07/11] arm64: dts: freescale: imx95-aquila: " Francesco Dolcini
2026-11-12 15:02 ` [PATCH v1 08/11] arm64: dts: freescale: imx8-apalis: " Francesco Dolcini
2026-11-12 15:02 ` [PATCH v1 09/11] arm64: dts: freescale: imx93-imx91-lino-common: " Francesco Dolcini
2026-11-12 15:02 ` [PATCH v1 10/11] arm64: dts: freescale: imx93-imx91-toradex-osm-common: " Francesco Dolcini
2026-11-12 15:02 ` [PATCH v1 11/11] arm64: dts: freescale: imx95-toradex-osm: " Francesco Dolcini
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=20261116114509.GA101185@francesco-nb \
--to=francesco@dolcini.it \
--cc=Frank.Li@nxp.com \
--cc=Frank.li@oss.nxp.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=festevam@gmail.com \
--cc=francesco.dolcini@toradex.com \
--cc=imx@lists.linux.dev \
--cc=kernel@pengutronix.de \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-bsp@toradex.com \
--cc=linux-kernel@vger.kernel.org \
--cc=robh@kernel.org \
--cc=s.hauer@pengutronix.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
all inboxes | Powered by JetHome®