From: Rob Herring <robh@kernel.org>
To: George Moussalem <george.moussalem@outlook.com>
Cc: "Uwe Kleine-König" <ukleinek@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"Baruch Siach" <baruch@tkos.co.il>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
linux-arm-msm@vger.kernel.org, linux-pwm@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v16 3/9] dt-bindings: pwm: qcom,ipq6018-pwm: Add compatible for ipq5018
Date: Wed, 8 Oct 2025 08:31:15 -0500 [thread overview]
Message-ID: <20251008133115.GA3406112-robh@kernel.org> (raw)
In-Reply-To: <DS7PR19MB8883089D146F101AB2F7F8DB9DE2A@DS7PR19MB8883.namprd19.prod.outlook.com>
On Sun, Oct 05, 2025 at 09:07:39PM +0400, George Moussalem wrote:
> Hi Krzysztof, Rob,
>
> Since I have to submit another version anyways, I was thinking of
> changing from a fallback compatible to a list of enums but wanted to get
> your guidance on this. The driver needs not distinguish between the SoCs
> and no SoC specific match data is needed. Would you prefer as proposed
> in below patch or switch to enumerating them in the bindings and in the
> driver?
If the block is "the same" in newer versions as you said, then a
fallback is the correct choice. No match data or the same match data is
another clue.
Rob
>
> On 10/1/25 18:04, George Moussalem via B4 Relay wrote:
> > From: George Moussalem <george.moussalem@outlook.com>
> >
> > The IPQ5018 SoC contains a PWM block which is exactly the same as the
> > one found in IPQ6018. So let's add a compatible for IPQ5018 and use
> > IPQ6018 as the fallback.
> >
> > Signed-off-by: George Moussalem <george.moussalem@outlook.com>
> > ---
> > Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml | 7 ++++++-
> > 1 file changed, 6 insertions(+), 1 deletion(-)
> >
> > diff --git a/Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml b/Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml
> > index 1172f0b53fadc140482f9384a36020260df372b7..acbdd952fcca53368e3b594544df8d3dae8a06b3 100644
> > --- a/Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml
> > +++ b/Documentation/devicetree/bindings/pwm/qcom,ipq6018-pwm.yaml
> > @@ -11,7 +11,12 @@ maintainers:
> >
> > properties:
> > compatible:
> > - const: qcom,ipq6018-pwm
> > + oneOf:
> > + - items:
> > + - enum:
> > + - qcom,ipq5018-pwm
> > + - const: qcom,ipq6018-pwm
> > + - const: qcom,ipq6018-pwm
> >
> > reg:
> > maxItems: 1
> >
>
> Best regards,
> George
next prev parent reply other threads:[~2025-10-08 13:31 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-01 14:04 [PATCH v16 0/9] Add PWM support for IPQ chipsets George Moussalem via B4 Relay
2025-10-01 14:04 ` [PATCH v16 1/9] dt-bindings: pwm: add IPQ6018 binding George Moussalem via B4 Relay
2025-10-01 14:04 ` [PATCH v16 2/9] pwm: driver for qualcomm ipq6018 pwm block George Moussalem via B4 Relay
2025-10-01 14:04 ` [PATCH v16 3/9] dt-bindings: pwm: qcom,ipq6018-pwm: Add compatible for ipq5018 George Moussalem via B4 Relay
2025-10-05 17:07 ` George Moussalem
2025-10-08 13:31 ` Rob Herring [this message]
2025-10-08 13:31 ` Rob Herring (Arm)
2025-10-01 14:04 ` [PATCH v16 4/9] dt-bindings: pwm: qcom,ipq6018-pwm: Add compatible for ipq5332 George Moussalem via B4 Relay
2025-10-08 13:28 ` Rob Herring (Arm)
2025-10-01 14:04 ` [PATCH v16 5/9] dt-bindings: pwm: qcom,ipq6018-pwm: Add compatible for ipq9574 George Moussalem via B4 Relay
2025-10-08 13:28 ` Rob Herring (Arm)
2025-10-01 14:04 ` [PATCH v16 6/9] arm64: dts: qcom: ipq6018: add pwm node George Moussalem via B4 Relay
2025-10-02 2:05 ` Dmitry Baryshkov
2025-10-01 14:04 ` [PATCH v16 7/9] arm64: dts: qcom: ipq5018: " George Moussalem via B4 Relay
2025-10-02 2:06 ` Dmitry Baryshkov
2025-10-01 14:04 ` [PATCH v16 8/9] arm64: dts: qcom: ipq5332: " George Moussalem via B4 Relay
2025-10-02 2:06 ` Dmitry Baryshkov
2025-10-01 14:04 ` [PATCH v16 9/9] arm64: dts: qcom: ipq9574: " George Moussalem via B4 Relay
2025-10-02 2:21 ` Dmitry Baryshkov
2025-10-01 23:42 ` [PATCH v16 0/9] Add PWM support for IPQ chipsets Rob Herring (Arm)
2025-10-03 7:06 ` George Moussalem
2025-10-06 12:06 ` Konrad Dybcio
2025-10-03 9:04 ` Kathiravan Thirumoorthy
2025-10-03 9:30 ` George Moussalem
2025-10-03 9:39 ` Kathiravan Thirumoorthy
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=20251008133115.GA3406112-robh@kernel.org \
--to=robh@kernel.org \
--cc=andersson@kernel.org \
--cc=baruch@tkos.co.il \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=george.moussalem@outlook.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=ukleinek@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).