From: Marek Vasut <marex@denx.de>
To: Francesco Dolcini <francesco.dolcini@toradex.com>
Cc: linux-arm-kernel@lists.infradead.org,
Fabio Estevam <festevam@denx.de>,
Marcel Ziswiler <marcel.ziswiler@toradex.com>,
Peng Fan <peng.fan@nxp.com>, Shawn Guo <shawnguo@kernel.org>,
NXP Linux Team <linux-imx@nxp.com>
Subject: Re: [PATCH 2/2] arm64: dts: imx8mm: Add i.MX8M Mini Toradex Verdin based Menlo board
Date: Wed, 13 Apr 2022 16:14:20 +0200 [thread overview]
Message-ID: <35de4a8f-72c7-020f-4c71-c14d12dbe3b6@denx.de> (raw)
In-Reply-To: <20220413094449.GB118560@francesco-nb.int.toradex.com>
On 4/13/22 11:44, Francesco Dolcini wrote:
> Hello Marek
Hi,
> On Sun, Apr 10, 2022 at 11:37:52PM +0200, Marek Vasut wrote:
>> On 4/10/22 10:46, Francesco Dolcini wrote:
>>> On Fri, Apr 08, 2022 at 05:02:15PM +0200, Marek Vasut wrote:
>>>> On 4/8/22 08:46, Francesco Dolcini wrote:
>>>>>> + /delete-node/ gpio-keys;
>>>>> would it be better if we had a label in the imx8mm-verdin.dtsi and we
>>>>> could just set status=disabled here?
>>>>
>>>> It would be better if there was Verdin SoM dtsi and Verdin carrier board dts
>>>> which includes the SoM dtsi. Right now, it seems these two things are
>>>> conflated a bit.
>>>>
>>>> There are no GPIO buttons on the Verdin SoM, there are some on the Dahlia
>>>> carrier board I think.
>>>
>>> The GPIO keys, for example the suspend button, are part of Verdin family
>>> SODIMM connector pinout/definition (see related datasheets). In the SoM
>>> dtsi we implement our standard family definition.
>>>
>>> Of course, you are free to redefine this in any way you prefer. In
>>> general the way we envision this is to just enable/disable in the
>>> carrier board or overlay dts, this is the reason I proposed to add
>>> a label there. I do not see any real value on deleting the node at all,
>>> just some potential for additional maintenance burden.
>>
>> There are two reasons for not adding DT nodes for hardware which is not
>> populated:
>> - You are polluting the DT with unused nodes representing hardware which
>> can never be present on the system, that makes the DT bigger and more
>> complex, for no reason.
>> - Once DTOs enter the picture, these so far only useless nodes and
>> properties actively become a problem. You cannot delete either node or
>> property from a base DT using a DTO, because neither /delete-node/ nor
>> /delete-property/ can be encoded into the DTO blob .
>
> Ok, I understand your arguments and I agree they are fully valid.
> We (Toradex) had some discussion about in the past and we still see
> benefit on the way we are doing it never the less.
>
> - The SoM dtsi representing not only the functionality implemented into
> the SoM, but the whole connector pinout to the carrier makes very easy
> to just include a different som.dtsi in the carrier board dts and just
> switch SoM, for example from a colibri-imx6 to a colibri-imx7.
> - We avoid code duplication
> - Even if the DTO cannot `delete`, it can disable a node. We do our
> best to have label and keep nodes disabled when functionality is not
> self-contained in the SoM.
You missed one important problem here, superfluous properties in the SoM DT:
®_usb_otg2_vbus {
/delete-property/ enable-active-high; // <----- HERE
};
You cannot get rid of those using DTOs.
> This is working for us pretty well so far and the majority of the users
> of ours modules rely on that, changing it now would just be too
> disruptive.
>
> I would propose that you go with the delete-node as you are doing and we
> keep the verdin.dtsi as it is.
Let's do that, thanks.
[...]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2022-04-13 14:15 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-04-07 20:24 [PATCH 1/2] dt-bindings: arm: Add i.MX8M Mini Toradex Verdin based Menlo board Marek Vasut
2022-04-07 20:24 ` [PATCH 2/2] arm64: dts: imx8mm: " Marek Vasut
2022-04-08 6:46 ` Francesco Dolcini
2022-04-08 7:56 ` Marcel Ziswiler
2022-04-08 8:49 ` Francesco Dolcini
2022-04-08 15:29 ` Tim Harvey
2022-04-08 15:54 ` Adam Ford
2022-04-08 16:16 ` Tim Harvey
2022-04-08 16:24 ` Marcel Ziswiler
2022-04-08 17:21 ` Marek Vasut
2022-04-08 16:20 ` Marek Vasut
2022-04-08 16:46 ` Fabio Estevam
2022-04-08 15:31 ` Marek Vasut
2022-04-08 15:02 ` Marek Vasut
2022-04-10 8:46 ` Francesco Dolcini
2022-04-10 21:37 ` Marek Vasut
2022-04-13 9:44 ` Francesco Dolcini
2022-04-13 14:14 ` Marek Vasut [this message]
2022-04-08 7:55 ` [PATCH 1/2] dt-bindings: arm: " Marcel Ziswiler
2022-04-08 16:25 ` Marek Vasut
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=35de4a8f-72c7-020f-4c71-c14d12dbe3b6@denx.de \
--to=marex@denx.de \
--cc=festevam@denx.de \
--cc=francesco.dolcini@toradex.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-imx@nxp.com \
--cc=marcel.ziswiler@toradex.com \
--cc=peng.fan@nxp.com \
--cc=shawnguo@kernel.org \
/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).