From: Krzysztof Kozlowski <krzk@kernel.org>
To: Ayman Chaudhry <ayman.chaudhry.kc@renesas.com>,
Geert Uytterhoeven <geert+renesas@glider.be>,
"magnus.damm" <magnus.damm@gmail.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney+clk@redhat.com>,
Jerome Brunet <jbrunet+clk@baylibre.com>,
Ulf Hansson <ulfh@kernel.org>
Cc: "linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-clk@vger.kernel.org" <linux-clk@vger.kernel.org>,
"linux-pm@vger.kernel.org" <linux-pm@vger.kernel.org>,
Chris Paterson <Chris.Paterson2@renesas.com>,
Biju Das <biju.das.jz@bp.renesas.com>,
Fabrizio Castro <fabrizio.castro.jz@renesas.com>,
Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [PATCH 02/10] dt-bindings: power: Add r8a774a3 SYSC power domain definitions
Date: Tue, 1 Sep 2026 16:15:32 +0200 [thread overview]
Message-ID: <a7cc6bf8-706a-4b51-a0ce-d6246045d5da@kernel.org> (raw)
In-Reply-To: <TYCPR01MB11865BD2FC199EFC6BE613A5DA2A82@TYCPR01MB11865.jpnprd01.prod.outlook.com>
On 01/09/2026 16:11, Ayman Chaudhry wrote:
> Hi Krzysztof,
>
> Thanks for the review.
>
>> From: Krzysztof Kozlowski <krzk@kernel.org>
>> Sent: Saturday, August 22, 2026 8:30 AM
>> To: Ayman Chaudhry <ayman.chaudhry.kc@renesas.com>; Geert
>> Uytterhoeven <geert+renesas@glider.be>; magnus.damm
>> <magnus.damm@gmail.com>; Rob Herring <robh@kernel.org>; Krzysztof
>> Kozlowski <krzk+dt@kernel.org>; Conor Dooley <conor+dt@kernel.org>;
>> Stephen Boyd <sboyd@kernel.org>; Brian Masney
>> <bmasney+clk@redhat.com>; Jerome Brunet <jbrunet+clk@baylibre.com>;
>> Ulf Hansson <ulfh@kernel.org>
>> Cc: linux-renesas-soc@vger.kernel.org; devicetree@vger.kernel.org; linux-
>> kernel@vger.kernel.org; linux-clk@vger.kernel.org; linux-pm@vger.kernel.org;
>> Chris Paterson <Chris.Paterson2@renesas.com>; Biju Das
>> <biju.das.jz@bp.renesas.com>; Fabrizio Castro
>> <fabrizio.castro.jz@renesas.com>; Prabhakar Mahadev Lad
>> <prabhakar.mahadev-lad.rj@bp.renesas.com>
>> Subject: Re: [PATCH 02/10] dt-bindings: power: Add r8a774a3 SYSC power
>> domain definitions
>>
>> On 21/08/2026 17:03, Ayman Chaudhry wrote:
>>> This patch adds power domain indices for the Renesas RZ/G2M v3.0
>>
>>
>> Please do not use "This commit/patch/change", but imperative mood. See
>> longer explanation here:
>> https://elixir.bootlin.com/linux/v6.16/source/Documentation/process/submi
>> tting-patches.rst#L94
>>
>
> Agreed, I will update the commit message.
>
>>> (a.k.a. R8A774A3) SoC.
>>>
>>> Signed-off-by: Ayman Chaudhry <ayman.chaudhry.kc@renesas.com>
>>> ---
>>> include/dt-bindings/power/r8a774a3-sysc.h | 30
>>> +++++++++++++++++++++++
>>
>> Filename must match compatible.
>>
>
> Agreed, I will rename the file.
>
> The bindings specify the filename, should I add an exception for this platform?
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=981a340540381532652731a500ba9df768bcef7d
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=61cada8da2f4c67026e41915f91673f045d4b18c
>
>>
>>> 1 file changed, 30 insertions(+)
>>> create mode 100644 include/dt-bindings/power/r8a774a3-sysc.h
>>>
>>> diff --git a/include/dt-bindings/power/r8a774a3-sysc.h
>>> b/include/dt-bindings/power/r8a774a3-sysc.h
>>> new file mode 100644
>>> index 000000000000..5694a422b771
>>> --- /dev/null
>>> +++ b/include/dt-bindings/power/r8a774a3-sysc.h
>>> @@ -0,0 +1,30 @@
>>> +/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
>>> +/*
>>> + * Copyright (C) 2026 Renesas Electronics Corp.
>>> + */
>>> +#ifndef __DT_BINDINGS_POWER_R8A774A3_SYSC_H__
>>> +#define __DT_BINDINGS_POWER_R8A774A3_SYSC_H__
>>> +
>>> +/*
>>> + * These power domain indices match the numbers of the interrupt bits
>>
>> No, that's not a binding then.
>>
>> Also, why is this sent separately from the binding?
>
> The binding is already present in the kernel:
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=3eb434de00b39c843249e89cf151757410e8a6ad
And where is it explained? Bindings are supposed to be complete so why
they were not posted complete?
>
>>
>>> + * representing the power areas in the various Interrupt Registers
>>> + * (e.g. SYSCISR, Interrupt Status Register) */
>>> +
>>> +#define R8A774A3_PD_CA57_CPU0 0
>>> +#define R8A774A3_PD_CA57_CPU1 1
>>> +#define R8A774A3_PD_CA53_CPU0 5
>>
>> No, value is 2. Or not a binding.
>
> The values are pulled directly from the R8A774A3 hardware manual and
> as a result are not sequential.
So not really a binding.
>
> This is compliant with header files for similar devices, so if we were to change
> the approach now it would probably make things more confusing for the
No, it is not compliant. Maybe it is done the same way as old devices,
but feedback was provided already for a few years, so plenty of time to
accept it.
> user and it would also require some special handling. Given that this is
> compliant with the style for similar devices adopting the same bindings,
It is not compliant.
> it's easy to understand as the numbers come straight from the HW manual,
> I would actually prefer if we could stick with this numbering scheme if
> possible.
Nope, as explained many times already for obvious reasons. Otherwise
provide me clear pieces of code which you bind here (as in DT bindings
header purpose).
Best regards,
Krzysztof
next prev parent reply other threads:[~2026-09-01 14:15 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-21 15:03 [PATCH 00/10] Add support for Renesas RZ/G2M v3.0 (a.k.a R8A774A3) SoC Ayman Chaudhry
2026-08-21 15:03 ` [PATCH 01/10] soc: renesas: Identify RZ/G2M v3.0 SoC Ayman Chaudhry
2026-09-04 15:00 ` Geert Uytterhoeven
2026-08-21 15:03 ` [PATCH 02/10] dt-bindings: power: Add r8a774a3 SYSC power domain definitions Ayman Chaudhry
2026-08-22 7:29 ` Krzysztof Kozlowski
2026-09-01 14:11 ` Ayman Chaudhry
2026-09-01 14:15 ` Krzysztof Kozlowski [this message]
2026-09-04 14:59 ` Geert Uytterhoeven
2026-09-04 15:00 ` Geert Uytterhoeven
2026-08-21 15:03 ` [PATCH 03/10] pmdomain: renesas: rcar-sys: Add r8a774a3 support Ayman Chaudhry
2026-09-04 15:02 ` Geert Uytterhoeven
2026-08-21 15:03 ` [PATCH 04/10] soc: renesas: Enable SYSC driver for r8a774a3 Ayman Chaudhry
2026-09-04 15:03 ` Geert Uytterhoeven
2026-08-21 15:03 ` [PATCH 05/10] soc: renesas: rcar-rst: Add support for RZ/G2M v3.0 Ayman Chaudhry
2026-09-04 15:05 ` Geert Uytterhoeven
2026-08-21 15:03 ` [PATCH 06/10] dt-bindings: clock: Add r8a774a3 CPG Core Clock definitions Ayman Chaudhry
2026-08-22 7:31 ` Krzysztof Kozlowski
2026-09-01 15:03 ` Ayman Chaudhry
2026-09-04 15:13 ` Geert Uytterhoeven
2026-08-21 15:03 ` [PATCH 07/10] clk: renesas: Add support for RZ/G2M v3.0 Ayman Chaudhry
2026-09-04 15:16 ` Geert Uytterhoeven
2026-08-21 15:03 ` [PATCH 08/10] arm64: dts: renesas: Add initial SoC DTSI " Ayman Chaudhry
2026-08-22 7:38 ` Krzysztof Kozlowski
2026-09-01 15:10 ` Ayman Chaudhry
2026-09-04 15:23 ` Geert Uytterhoeven
2026-09-04 15:29 ` Geert Uytterhoeven
2026-08-21 15:03 ` [PATCH 09/10] arm64: dts: renesas: Add HiHope RZ/G2M v3.0 SoC main board support Ayman Chaudhry
2026-08-22 7:34 ` Krzysztof Kozlowski
2026-09-01 15:12 ` Ayman Chaudhry
2026-08-21 15:03 ` [PATCH 10/10] arm64: dts: renesas: Add HiHope RZ/G2M v3.0 SoC sub " Ayman Chaudhry
2026-09-04 15:36 ` 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=a7cc6bf8-706a-4b51-a0ce-d6246045d5da@kernel.org \
--to=krzk@kernel.org \
--cc=Chris.Paterson2@renesas.com \
--cc=ayman.chaudhry.kc@renesas.com \
--cc=biju.das.jz@bp.renesas.com \
--cc=bmasney+clk@redhat.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=fabrizio.castro.jz@renesas.com \
--cc=geert+renesas@glider.be \
--cc=jbrunet+clk@baylibre.com \
--cc=krzk+dt@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=magnus.damm@gmail.com \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=robh@kernel.org \
--cc=sboyd@kernel.org \
--cc=ulfh@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