All of lore.kernel.org
 help / color / mirror / Atom feed
From: Conor Dooley <conor@kernel.org>
To: Kelvin Zhang <kelvin.zhang@amlogic.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>,
	zelong dong <zelong.dong@amlogic.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Rob Herring <robh@kernel.org>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	Conor Dooley <conor.dooley@microchip.com>
Subject: Re: [PATCH v3 1/3] dt-bindings: reset: Add compatible for Amlogic A4/A5 Reset Controller
Date: Wed, 12 Mar 2025 20:31:36 +0000	[thread overview]
Message-ID: <20250312-atlas-paver-0f0e888a641b@spud> (raw)
In-Reply-To: <84612c6b-621d-47cc-8a2e-41d1fa42f0fe@amlogic.com>


[-- Attachment #1.1: Type: text/plain, Size: 2387 bytes --]

On Tue, Mar 11, 2025 at 05:48:26PM +0800, Kelvin Zhang wrote:
> 
> 
> On 2024/9/18 16:01, Conor Dooley wrote:
> > On Wed, Sep 18, 2024 at 09:51:28AM +0200, Philipp Zabel wrote:
> > > On Mi, 2024-09-18 at 15:42 +0800, zelong dong wrote:
> > > > From: Zelong Dong<zelong.dong@amlogic.com>
> > > > 
> > > > Add new compatible for Amlogic A4/A5 Reset Controller
> > > > 
> > > > Signed-off-by: Zelong Dong<zelong.dong@amlogic.com>
> > > > Acked-by: Conor Dooley<conor.dooley@microchip.com>
> > > > ---
> > > >   .../bindings/reset/amlogic,meson-reset.yaml   | 23 ++++++++++++-------
> > > >   1 file changed, 15 insertions(+), 8 deletions(-)
> > > > 
> > > > diff --git a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml
> > > > index 695ef38a7bb3..0ad81fe7b629 100644
> > > > --- a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml
> > > > +++ b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml
> > > > @@ -12,14 +12,21 @@ maintainers:
> > > >   properties:
> > > >     compatible:
> > > > -    enum:
> > > > -      - amlogic,meson8b-reset # Reset Controller on Meson8b and compatible SoCs
> > > > -      - amlogic,meson-gxbb-reset # Reset Controller on GXBB and compatible SoCs
> > > > -      - amlogic,meson-axg-reset # Reset Controller on AXG and compatible SoCs
> > > > -      - amlogic,meson-a1-reset # Reset Controller on A1 and compatible SoCs
> > > > -      - amlogic,meson-s4-reset # Reset Controller on S4 and compatible SoCs
> > > > -      - amlogic,c3-reset # Reset Controller on C3 and compatible SoCs
> > > > -      - amlogic,t7-reset
> > > > +    oneOf:
> > > > +      - items:
> > > I'm not well versed in preferred dt-bindings style, but this items
> > > looks superfluous to me. It only contains a single enum.
> > Oh, ye. Good spot.
> 
> Hello Philipp, Conor,
> Sorry for the late reply.
> 
> Do you mean to use 'amlogic,meson-s4-reset' for A4 and A5 directly, without
> the fallback?

No. We are saying that

+      - items:
+          - enum:
+              - amlogic,meson8b-reset # Reset Controller on Meson8b and compatible SoCs

is pointless duplication, because your "items" list only has only
entry in it (the enum) and you could just remove the "- items" line
entirely and have the same outcome.

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

WARNING: multiple messages have this Message-ID (diff)
From: Conor Dooley <conor@kernel.org>
To: Kelvin Zhang <kelvin.zhang@amlogic.com>
Cc: Philipp Zabel <p.zabel@pengutronix.de>,
	zelong dong <zelong.dong@amlogic.com>,
	Neil Armstrong <neil.armstrong@linaro.org>,
	Kevin Hilman <khilman@baylibre.com>,
	Rob Herring <robh@kernel.org>,
	Martin Blumenstingl <martin.blumenstingl@googlemail.com>,
	Jerome Brunet <jbrunet@baylibre.com>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	linux-kernel@vger.kernel.org, linux-amlogic@lists.infradead.org,
	linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
	Conor Dooley <conor.dooley@microchip.com>
Subject: Re: [PATCH v3 1/3] dt-bindings: reset: Add compatible for Amlogic A4/A5 Reset Controller
Date: Wed, 12 Mar 2025 20:31:36 +0000	[thread overview]
Message-ID: <20250312-atlas-paver-0f0e888a641b@spud> (raw)
In-Reply-To: <84612c6b-621d-47cc-8a2e-41d1fa42f0fe@amlogic.com>

[-- Attachment #1: Type: text/plain, Size: 2387 bytes --]

On Tue, Mar 11, 2025 at 05:48:26PM +0800, Kelvin Zhang wrote:
> 
> 
> On 2024/9/18 16:01, Conor Dooley wrote:
> > On Wed, Sep 18, 2024 at 09:51:28AM +0200, Philipp Zabel wrote:
> > > On Mi, 2024-09-18 at 15:42 +0800, zelong dong wrote:
> > > > From: Zelong Dong<zelong.dong@amlogic.com>
> > > > 
> > > > Add new compatible for Amlogic A4/A5 Reset Controller
> > > > 
> > > > Signed-off-by: Zelong Dong<zelong.dong@amlogic.com>
> > > > Acked-by: Conor Dooley<conor.dooley@microchip.com>
> > > > ---
> > > >   .../bindings/reset/amlogic,meson-reset.yaml   | 23 ++++++++++++-------
> > > >   1 file changed, 15 insertions(+), 8 deletions(-)
> > > > 
> > > > diff --git a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml
> > > > index 695ef38a7bb3..0ad81fe7b629 100644
> > > > --- a/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml
> > > > +++ b/Documentation/devicetree/bindings/reset/amlogic,meson-reset.yaml
> > > > @@ -12,14 +12,21 @@ maintainers:
> > > >   properties:
> > > >     compatible:
> > > > -    enum:
> > > > -      - amlogic,meson8b-reset # Reset Controller on Meson8b and compatible SoCs
> > > > -      - amlogic,meson-gxbb-reset # Reset Controller on GXBB and compatible SoCs
> > > > -      - amlogic,meson-axg-reset # Reset Controller on AXG and compatible SoCs
> > > > -      - amlogic,meson-a1-reset # Reset Controller on A1 and compatible SoCs
> > > > -      - amlogic,meson-s4-reset # Reset Controller on S4 and compatible SoCs
> > > > -      - amlogic,c3-reset # Reset Controller on C3 and compatible SoCs
> > > > -      - amlogic,t7-reset
> > > > +    oneOf:
> > > > +      - items:
> > > I'm not well versed in preferred dt-bindings style, but this items
> > > looks superfluous to me. It only contains a single enum.
> > Oh, ye. Good spot.
> 
> Hello Philipp, Conor,
> Sorry for the late reply.
> 
> Do you mean to use 'amlogic,meson-s4-reset' for A4 and A5 directly, without
> the fallback?

No. We are saying that

+      - items:
+          - enum:
+              - amlogic,meson8b-reset # Reset Controller on Meson8b and compatible SoCs

is pointless duplication, because your "items" list only has only
entry in it (the enum) and you could just remove the "- items" line
entirely and have the same outcome.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

  reply	other threads:[~2025-03-12 20:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-18  7:42 [PATCH v3 0/3] reset: amlogic-a4/a5: add reset driver zelong dong
2024-09-18  7:42 ` zelong dong
2024-09-18  7:42 ` [PATCH v3 1/3] dt-bindings: reset: Add compatible for Amlogic A4/A5 Reset Controller zelong dong
2024-09-18  7:42   ` zelong dong
2024-09-18  7:51   ` Philipp Zabel
2024-09-18  7:51     ` Philipp Zabel
2024-09-18  8:01     ` Conor Dooley
2024-09-18  8:01       ` Conor Dooley
2025-03-11  9:48       ` Kelvin Zhang
2025-03-11  9:48         ` Kelvin Zhang
2025-03-12 20:31         ` Conor Dooley [this message]
2025-03-12 20:31           ` Conor Dooley
2025-03-13  1:48           ` Kelvin Zhang
2025-03-13  1:48             ` Kelvin Zhang
2024-09-18  7:42 ` [PATCH v3 2/3] arm64: dts: amlogic: Add Amlogic A4 reset controller zelong dong
2024-09-18  7:42   ` zelong dong
2024-09-18  7:42 ` [PATCH v3 3/3] arm64: dts: amlogic: Add Amlogic A5 " zelong dong
2024-09-18  7:42   ` zelong dong

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=20250312-atlas-paver-0f0e888a641b@spud \
    --to=conor@kernel.org \
    --cc=conor.dooley@microchip.com \
    --cc=devicetree@vger.kernel.org \
    --cc=jbrunet@baylibre.com \
    --cc=kelvin.zhang@amlogic.com \
    --cc=khilman@baylibre.com \
    --cc=krzk+dt@kernel.org \
    --cc=linux-amlogic@lists.infradead.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=martin.blumenstingl@googlemail.com \
    --cc=neil.armstrong@linaro.org \
    --cc=p.zabel@pengutronix.de \
    --cc=robh@kernel.org \
    --cc=zelong.dong@amlogic.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.