Devicetree
 help / color / mirror / Atom feed
From: Krzysztof Kozlowski <krzk@kernel.org>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: Linus Walleij <linus.walleij@linaro.org>,
	Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	"linux-gpio@vger.kernel.org" <linux-gpio@vger.kernel.org>,
	"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
	Geert Uytterhoeven <geert+renesas@glider.be>,
	Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>,
	"biju.das.au" <biju.das.au@gmail.com>,
	"linux-renesas-soc@vger.kernel.org"
	<linux-renesas-soc@vger.kernel.org>
Subject: Re: [PATCH v4 1/7] dt-bindings: pinctrl: renesas: Add alpha-numerical port support for RZ/V2H
Date: Tue, 17 Dec 2024 08:50:32 +0100	[thread overview]
Message-ID: <c57d3568-68f4-4e5a-874f-4d9f0cc1f2f3@kernel.org> (raw)
In-Reply-To: <TY3PR01MB11346902114D33FA66F4C3BF686042@TY3PR01MB11346.jpnprd01.prod.outlook.com>

On 17/12/2024 08:29, Biju Das wrote:
> Hi Krzysztof Kozlowski,
> 
> Thanks for the feedback.
> 
>> -----Original Message-----
>> From: Krzysztof Kozlowski <krzk@kernel.org>
>> Sent: 17 December 2024 06:32
>> Subject: Re: [PATCH v4 1/7] dt-bindings: pinctrl: renesas: Add alpha-numerical port support for RZ/V2H
>>
>> On Mon, Dec 16, 2024 at 07:53:11PM +0000, Biju Das wrote:
>>> RZ/V2H has ports P0-P9 and PA-PB. Add support for defining
>>> alpha-numerical ports in DT using RZV2H_* macros.
>>
>> So this is only for DT? Not really a binding. Binding binds driver implementation with DTS and you do
>> not have here driver.
> 
> Please see patch [1], see how this definition binds driver implementation with DTS
> 
> [1] https://lore.kernel.org/all/20241216195325.164212-4-biju.das.jz@bp.renesas.com/

I don't know what is this patch, it is not part of these series
addressed to me and commit msg says "in DT". If you want to receive
meaningful review, make it easier for reviewers.


> 
>>
>> Calling it a binding makes it immutable and gives us, DT maintainers, more work, so really no benefits
>> at all.
> 
>>
>> I guess other DT maintainers will ack it, I prefer to reduce number of headers.
> 
> DT describes hardware. The port names are alpha numeric on hardware manual.

We talk about binding, not DT.

> 
> For example, consider the case of  hardware pin PS1 mentioned in hardware manual.
> 
> With current changes,
> pinmux = <RZG3E_PORT_PINMUX(S, 1, 0)>;
> 
> With existing code
> pinmux = <RZG3E_PORT_PINMUX(28, 1, 0)>;

Based on this pure code: still not a binding.

> 
> What do you prefer here? 28 is just a number derived from hardware indices

Let me ask rhetorical question: if 28 hardware constant is suitable for
binding, then why are you not defining GPIO numbers, IRQ numbers and
MMIO addresses as bindings as well?

> Or actual port name PS1 as mentioned in hardware manual?

Well, I don't know. Commit says DTS, no driver patches here in my inbox,
so what do I know?

Best regards,
Krzysztof

  reply	other threads:[~2024-12-17  7:50 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-16 19:53 [PATCH v4 0/7] Add RZ/G3E pinctrl support Biju Das
2024-12-16 19:53 ` [PATCH v4 1/7] dt-bindings: pinctrl: renesas: Add alpha-numerical port support for RZ/V2H Biju Das
2024-12-17  6:31   ` Krzysztof Kozlowski
2024-12-17  7:29     ` Biju Das
2024-12-17  7:50       ` Krzysztof Kozlowski [this message]
2024-12-17  8:49         ` Biju Das
2024-12-17  8:59           ` Krzysztof Kozlowski
2024-12-17  9:19             ` Biju Das
2024-12-17  9:44               ` Krzysztof Kozlowski
2024-12-17  9:52                 ` Biju Das
2024-12-17 11:58   ` Rob Herring
2024-12-17 12:33     ` Biju Das
2024-12-18 19:22       ` Rob Herring
2024-12-18 19:24   ` Rob Herring (Arm)
2025-01-03 18:43   ` Geert Uytterhoeven
2025-01-07 11:16     ` Biju Das
2024-12-16 19:53 ` [PATCH v4 2/7] dt-bindings: pinctrl: renesas: Document RZ/G3E SoC Biju Das
2025-01-03 18:45   ` Geert Uytterhoeven
2025-01-07 11:15     ` Biju Das
2024-12-16 19:53 ` [PATCH v4 5/7] arm64: dts: renesas: r9a09g057h44-rzv2h-evk: Replace RZG2L macros Biju Das
2025-01-03 18:50   ` Geert Uytterhoeven
2024-12-16 19:53 ` [PATCH v4 6/7] arm64: dts: renesas: r9a09g047: Add pincontrol node Biju Das
2025-01-03 18:50   ` Geert Uytterhoeven
2024-12-16 19:53 ` [PATCH v4 7/7] arm64: dts: renesas: r9a09g047: Add scif pincontrol Biju Das
2025-01-03 18:51   ` Geert Uytterhoeven

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=c57d3568-68f4-4e5a-874f-4d9f0cc1f2f3@kernel.org \
    --to=krzk@kernel.org \
    --cc=biju.das.au@gmail.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=krzk+dt@kernel.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-gpio@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
    --cc=robh@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