From: Stephan Gerhold <stephan@gerhold.net>
To: Rob Herring <robh@kernel.org>
Cc: Stephan Gerhold <stephan.gerhold@kernkonzept.com>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Andy Gross <agross@kernel.org>,
Konrad Dybcio <konrad.dybcio@somainline.org>,
Mathieu Poirier <mathieu.poirier@linaro.org>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
Sireesh Kodali <sireeshkodali1@gmail.com>,
Luca Weiss <luca@z3ntu.xyz>,
linux-arm-msm@vger.kernel.org, linux-remoteproc@vger.kernel.org,
devicetree@vger.kernel.org
Subject: Re: [PATCH v2 2/5] dt-bindings: remoteproc: qcom,q6v5: Move MSM8916 to schema
Date: Thu, 21 Jul 2022 22:02:43 +0200 [thread overview]
Message-ID: <Ytmw41giZ/4S+Pp0@gerhold.net> (raw)
In-Reply-To: <20220720224608.GA4107504-robh@kernel.org>
On Wed, Jul 20, 2022 at 04:46:08PM -0600, Rob Herring wrote:
> On Mon, Jul 18, 2022 at 04:03:41PM +0200, Stephan Gerhold wrote:
> > qcom,q6v5.txt covers multiple SoCs with quite different binding
> > requirements. Converting this into one DT schema would require
> > several if statements, making the DT schema overall harder to
> > read and understand.
> >
> > To avoid this, follow the example of SC7180/SC7280 and split
> > "qcom,msm8916-mss-pil" (and the equivalent deprecated "qcom,q6v5-pil"
> > compatible) into a separate DT schema. The schema is somewhat based
> > on the one for SC7180/SC7280 but adjusted for the old platforms.
> >
> > Compared to the old plain text bindings, add missing documentation for
> > the "bam-dmux" subnode and recommend one particular approach to specify
> > the MBA/MPSS "memory-region" (the other one is marked as deprecated).
> >
> > Cc: Sireesh Kodali <sireeshkodali1@gmail.com>
> > Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com>
> > ---
> > Changes in v2:
> > - Add blank lines between top-level properties
> > - Drop "deprecated" in "oneOf" list, it is not clear if this is valid
> > and it should be redundant since the properties itself are already
> > marked as "deprecated"
> > ---
> > Like Sibi's patch series for SC7180/SC7820 [1] this is somewhat related
> > to Sireesh's series that converts all of qcom,q6v5.txt [2] (with a lot
> > of if statements). However, this series focuses on MSM8916/MSM8974 (or
> > actually MSM8909) only.
> >
> > [1]: https://lore.kernel.org/linux-arm-msm/1657020721-24939-1-git-send-email-quic_sibis@quicinc.com/
> > [2]: https://lore.kernel.org/linux-arm-msm/20220511161602.117772-7-sireeshkodali1@gmail.com/
>
> Is that one abandoned or do we just get to review both approaches
> without coordination?
>
I assumed the decision to make separate schemas rather than a big one
was already made, since Sibi's series was applied and has already moved
parts of qcom,q6v5.txt into separate schemas.
Still, I did coordinate with Sireesh before submitting this patch and
suggested that he can likely just add the new "qcom,msm8953-mss-pil"
compatible from his series to the DT schema in this patch (the setup is
also very similar).
> I think you need a common q6v5 schema here with all the common
> properties. Having the same property name with the type defined multiple
> times is not great. In fact, I'm working on a check for finding those.
Which properties would you move to a common schema? Most of the schema
is just listing items for generic properties (interrupts, clocks, power
domains, supplies, resets, memory-region, ...) and having them separated
is intended to avoid lots of if statements in a common schema.
What remains is maybe:
- "qcom,smem-states", which is already used in several other schemas
and could be possibly defined together with #qcom,smem-state-cells
in some generic schema(?)
- "qcom,halt-regs", "firmware-name", "smd-edge" are used by different
Qualcomm remoteproc drivers, so they could possibly be defined in
some common "qcom-remoteproc.yaml" schema(?)
Thanks,
Stephan
next prev parent reply other threads:[~2022-07-21 20:02 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-18 14:03 [PATCH v2 0/5] remoteproc: qcom_q6v5_mss: Add MSM8909 Stephan Gerhold
2022-07-18 14:03 ` [PATCH v2 1/5] arm64: dts: qcom: msm8916: Drop MSS fallback compatible Stephan Gerhold
2022-07-18 14:03 ` [PATCH v2 2/5] dt-bindings: remoteproc: qcom,q6v5: Move MSM8916 to schema Stephan Gerhold
2022-07-18 22:03 ` Rob Herring
2022-07-20 22:46 ` Rob Herring
2022-07-21 20:02 ` Stephan Gerhold [this message]
2022-07-23 20:41 ` Krzysztof Kozlowski
2022-07-26 17:19 ` Stephan Gerhold
2022-07-18 14:03 ` [PATCH v2 3/5] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Add MSM8974 Stephan Gerhold
2022-07-18 14:03 ` [PATCH v2 4/5] dt-bindings: remoteproc: qcom,msm8916-mss-pil: Add MSM8909 Stephan Gerhold
2022-07-18 14:03 ` [PATCH v2 5/5] remoteproc: qcom_q6v5_mss: Add support for MSM8909 Stephan Gerhold
2022-10-18 3:15 ` (subset) [PATCH v2 0/5] remoteproc: qcom_q6v5_mss: Add MSM8909 Bjorn Andersson
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=Ytmw41giZ/4S+Pp0@gerhold.net \
--to=stephan@gerhold.net \
--cc=agross@kernel.org \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=konrad.dybcio@somainline.org \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-remoteproc@vger.kernel.org \
--cc=luca@z3ntu.xyz \
--cc=mathieu.poirier@linaro.org \
--cc=robh@kernel.org \
--cc=sireeshkodali1@gmail.com \
--cc=stephan.gerhold@kernkonzept.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.