From: "Niklas Söderlund" <niklas.soderlund+renesas@ragnatech.se>
To: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Krzysztof Kozlowski <krzk@kernel.org>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Hans Verkuil <hverkuil@xs4all.nl>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
Jacopo Mondi <jacopo.mondi@ideasonboard.com>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-renesas-soc@vger.kernel.org
Subject: Re: [PATCH 1/7] dt-bindings: media: renesas,isp: Add ISP core function block
Date: Mon, 17 Mar 2025 20:44:19 +0100 [thread overview]
Message-ID: <20250317194419.GB949127@ragnatech.se> (raw)
In-Reply-To: <CAMuHMdXU4JxDe-L+UcUwzndariz=mfed7UyVXW2Mv0yggXZw4w@mail.gmail.com>
Hi Geert,
Thanks for your feedback.
On 2025-03-17 20:21:14 +0100, Geert Uytterhoeven wrote:
> Hi Niklas,
>
> On Mon, 17 Mar 2025 at 16:37, Niklas Söderlund
> <niklas.soderlund+renesas@ragnatech.se> wrote:
> > On 2025-03-17 15:57:31 +0100, Krzysztof Kozlowski wrote:
> > > On 17/03/2025 12:50, Niklas Söderlund wrote:
> > > > On 2025-03-17 12:33:07 +0100, Krzysztof Kozlowski wrote:
> > > >> On Sat, Mar 15, 2025 at 04:27:02PM +0100, Niklas Söderlund wrote:
> > > >>> ports:
> > > >>> $ref: /schemas/graph.yaml#/properties/ports
> > > >>> @@ -103,10 +138,14 @@ properties:
> > > >>> required:
> > > >>> - compatible
> > > >>> - reg
> > > >>> + - reg-names
> > > >>> - interrupts
> > > >>> + - interrupt-names
> > > >>> - clocks
> > > >>> + - clock-names
> > > >>> - power-domains
> > > >>> - resets
> > > >>> + - reset-names
> > > >>
> > > >> Another point, this will spawn bunch of warnings for no real reason.
> > > >> Just drop all the xxx-names from properties and from here.
> > > >
> > > > I'm sorry maybe I'm missing something, but if I drop them from
> > > > properties how can I add checks to makesure the names are either "cs" or
> > >
> > > Why do you need to check for the names? There will be no names, so
> > > nothing to check for.
> >
> > Ahh I see. But I would like to have names if possible.
> >
> > The driver is backward compatible with the old bindings, and going
> > forward we have better bindings with names. All users are updated in the
> > next commits in this series so the warnings will go way rather quickly.
>
> Note that the driver does not _have_ to obtain the "cs" clock by name,
> as it will always be the first clock anyway ("make dtbs_check" will
> sort-of enforce that). So you can simplify the code by obtaining
> the first clock without specifying a name, and the second (optional)
> clock with a name.
I understand that, and for this fix this would be acceptable. I'm just
trying to think a head, something I should have done when first writing
these bindings...
I'm fearing a scenario where we will need to add a 3rd reg region or
clock. I don't think we will need that for the compatible values we have
here, but then I never though we get the documentation that now allows
us to describe the second region...
If you and Krzysztof are happy without names I can move forward with
that too, I'm just trying to learn from my mistakes ;-) I will give it a
few days and then head down this road without names.
--
Kind Regards,
Niklas Söderlund
next prev parent reply other threads:[~2025-03-17 19:44 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-15 15:27 [PATCH 0/7] rcar-isp: Prepare for ISP core support Niklas Söderlund
2025-03-15 15:27 ` [PATCH 1/7] dt-bindings: media: renesas,isp: Add ISP core function block Niklas Söderlund
2025-03-17 11:31 ` Krzysztof Kozlowski
2025-03-17 11:49 ` Niklas Söderlund
2025-03-17 15:02 ` Krzysztof Kozlowski
2025-03-17 15:34 ` Niklas Söderlund
2025-03-18 7:27 ` Krzysztof Kozlowski
2025-03-18 8:05 ` Geert Uytterhoeven
2025-03-18 8:05 ` Niklas Söderlund
2025-03-17 11:33 ` Krzysztof Kozlowski
2025-03-17 11:50 ` Niklas Söderlund
2025-03-17 14:57 ` Krzysztof Kozlowski
2025-03-17 15:37 ` Niklas Söderlund
2025-03-17 19:21 ` Geert Uytterhoeven
2025-03-17 19:44 ` Niklas Söderlund [this message]
2025-03-18 7:29 ` Krzysztof Kozlowski
2025-03-18 7:56 ` Niklas Söderlund
2025-03-18 7:50 ` Geert Uytterhoeven
2025-03-15 15:27 ` [PATCH 2/7] arm64: dts: renesas: r8a779a0: " Niklas Söderlund
2025-03-19 14:50 ` Jacopo Mondi
2025-03-19 15:07 ` Niklas Söderlund
2025-03-19 15:19 ` Jacopo Mondi
2025-04-10 15:54 ` Geert Uytterhoeven
2025-04-10 16:40 ` Niklas Söderlund
2025-03-15 15:27 ` [PATCH 3/7] arm64: dts: renesas: r8a779g0: " Niklas Söderlund
2025-03-19 14:37 ` Jacopo Mondi
2025-04-10 15:54 ` Geert Uytterhoeven
2025-03-15 15:27 ` [PATCH 4/7] arm64: dts: renesas: r8a779h0: " Niklas Söderlund
2025-03-19 14:40 ` Jacopo Mondi
2025-04-10 15:57 ` Geert Uytterhoeven
2025-03-15 15:27 ` [PATCH 5/7] media: rcar-isp: Move driver to own directory Niklas Söderlund
2025-03-19 14:25 ` Jacopo Mondi
2025-03-15 15:27 ` [PATCH 6/7] media: rcar-isp: Rename base register variable Niklas Söderlund
2025-03-19 14:26 ` Jacopo Mondi
2025-03-15 15:27 ` [PATCH 7/7] media: rcar-isp: Parse named cs memory region Niklas Söderlund
2025-03-19 14:28 ` Jacopo Mondi
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=20250317194419.GB949127@ragnatech.se \
--to=niklas.soderlund+renesas@ragnatech.se \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=geert+renesas@glider.be \
--cc=geert@linux-m68k.org \
--cc=hverkuil@xs4all.nl \
--cc=jacopo.mondi@ideasonboard.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=linux-media@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox