devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephan Gerhold <stephan@gerhold.net>
To: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Cc: Bjorn Andersson <andersson@kernel.org>,
	Konrad Dybcio <konrad.dybcio@linaro.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Stephen Boyd <sboyd@kernel.org>,
	linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org
Subject: Re: [PATCH] dt-bindings: arm: qcom: drop the superfluous device compatibility schema
Date: Tue, 20 Feb 2024 22:11:24 +0100	[thread overview]
Message-ID: <ZdUVfHa5SvoWbc-Z@gerhold.net> (raw)
In-Reply-To: <CAA8EJprKfMGTAtaMm1YoioRLDOtjXQ4XGm8geURB5WVXdYUK0A@mail.gmail.com>

On Tue, Feb 20, 2024 at 11:11:15AM +0200, Dmitry Baryshkov wrote:
> On Sun, 11 Feb 2024 at 12:36, Stephan Gerhold <stephan@gerhold.net> wrote:
> > On Sun, Feb 04, 2024 at 06:56:35PM +0200, Dmitry Baryshkov wrote:
> > > The idea impressed in the commit b32e592d3c28 ("devicetree: bindings:
> > > Document qcom board compatible format") never got actually adopted. As
> > > can be seen from the existing board DT files, no device actually used
> > > the PMIC / foundry / version parts of the compatible string. Drop this
> > > compatibility string description to avoid possible confusion and keep
> > > just the generic terms and the SoC list.
> > >
> > > Fixes: b32e592d3c28 ("devicetree: bindings: Document qcom board compatible format")
> >
> > FWIW: It's not correct that no device uses the version parts of the
> > compatible string. There are actually two boards documented in qcom.yaml
> > that follow this scheme:
> >
> >   compatible = "qcom,msm8916-mtp", "qcom,msm8916-mtp/1", "qcom,msm8916";
> >   compatible = "longcheer,l8150", "qcom,msm8916-v1-qrd/9-v1", "qcom,msm8916";
> >
> > I don't think anyone is actively relying on those, though. I guess we
> > can just ignore them or even remove them.
> 
> Excuse me for the long delay. As it was you who added the
> longcheer-l8150 support, does it require any of the msm-id options or
> dtbTool (original or modified) processing?
> If it can work with no additional tags, we can drop these compatibility strings.
> 

I think we added it back then to allow booting mainline with the
original bootloader. Together with the "skales" dtbTool (used to be at
https://source.codeaurora.org/quic/kernel/skales) the compatible does
result in a correct QCDT that is accepted by the bootloader.

I doubt anyone still uses this way of booting nowadays. In postmarketOS
we strongly recommend everyone to boot MSM8916 devices using lk2nd [1]
which supports plain appended DTB without special properties and other
more reliable forms of DTB selection. I have not tested booting mainline
with the original bootloader for many years.

Dropping the extra compatible would be fine for me. Personally I don't
consider booting via weird/broken bootloaders worth supporting (at least
if better workarounds exist). Having to boot with "custom" bootloaders
tends to be a somewhat subjective topic though so others might disagree.

Thanks,
Stephan

[1]: https://github.com/msm8916-mainline/lk2nd

  reply	other threads:[~2024-02-20 21:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-04 16:56 [PATCH] dt-bindings: arm: qcom: drop the superfluous device compatibility schema Dmitry Baryshkov
2024-02-05  7:59 ` Krzysztof Kozlowski
2024-02-06 21:52 ` Bjorn Andersson
2024-02-07  4:46 ` Bjorn Andersson
2024-02-11 10:36 ` Stephan Gerhold
2024-02-20  9:11   ` Dmitry Baryshkov
2024-02-20 21:11     ` Stephan Gerhold [this message]
2024-02-20 22:25       ` Dmitry Baryshkov

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=ZdUVfHa5SvoWbc-Z@gerhold.net \
    --to=stephan@gerhold.net \
    --cc=andersson@kernel.org \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dmitry.baryshkov@linaro.org \
    --cc=konrad.dybcio@linaro.org \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=linux-arm-msm@vger.kernel.org \
    --cc=robh@kernel.org \
    --cc=sboyd@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).