mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Geert Uytterhoeven" <geert+renesas@glider.be>
To: "Biju Das" <biju.das.au@gmail.com>
Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org,
	linux-kernel@vger.kernel.org,
	"Biju Das" <biju.das.jz@bp.renesas.com>,
	"Magnus Damm" <magnus.damm@gmail.com>,
	"Rob Herring" <robh@kernel.org>,
	"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
	"Conor Dooley" <conor+dt@kernel.org>,
	"Jonathan Cameron" <jic23@kernel.org>,
	linux-iio@vger.kernel.org
Subject: Re: [PATCH v9 1/4] arm64: dts: renesas: r9a08g046: Enable TSU
Date: Thu, 26 Nov 2026 11:31:41 +0100	[thread overview]
Message-ID: <a152df0a-0b0b-4193-b3ac-ee0df0350802@app.fastmail.com> (raw)
In-Reply-To: <20261125-usb_rzg3l-v9-1-ea14d3ab8a53@bp.renesas.com>

Hi Biju,

Cc IIO

On Wed, Nov 25, 2026, at 12:05, Biju Das wrote:
> From: Biju Das <biju.das.jz@bp.renesas.com>
>
> Add #cooling-cells to the CPU nodes, and describe the ADC1 (used
> exclusively by the TSU) and TSU nodes along with a CPU thermal zone
> using passive and critical trip points, with CPU frequency cooling
> maps for thermal mitigation.
>
> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>

Thanks for your patch!

> --- a/arch/arm64/boot/dts/renesas/r9a08g046.dtsi
> +++ b/arch/arm64/boot/dts/renesas/r9a08g046.dtsi

> @@ -381,6 +385,37 @@ scif5: serial@1004e000 {
>  			status = "disabled";
>  		};
> 
> +		adc1: adc@108c0000 {
> +			compatible = "renesas,r9a08g046-adc1";
> +			reg = <0 0x108c0000 0 0x10000>;
> +			interrupts = <GIC_SPI 378 IRQ_TYPE_EDGE_RISING>;
> +			clocks = <&cpg CPG_MOD R9A08G046_ADC1_ADCLK>,
> +				 <&cpg CPG_MOD R9A08G046_ADC1_PCLK>;
> +			clock-names = "adclk", "pclk";
> +			resets = <&cpg R9A08G046_ADC1_PRESETN>,
> +				 <&cpg R9A08G046_ADC1_ADRST_N>;
> +			reset-names = "presetn", "adrst-n";
> +			power-domains = <&cpg>;
> +			#address-cells = <1>;
> +			#size-cells = <0>;
> +			#io-channel-cells = <1>;
> +
> +			channel@8 {
> +				reg = <8>;
> +			};
> +		};
> +
> +		tsu: thermal@108d0000 {
> +			compatible = "renesas,r9a08g046-tsu";
> +			reg = <0 0x108d0000 0 0x10000>;
> +			clocks = <&cpg CPG_MOD R9A08G046_TSU_PCLK>;
> +			resets = <&cpg R9A08G046_TSU_PRESETN>;
> +			power-domains = <&cpg>;
> +			#thermal-sensor-cells = <0>;
> +			io-channels = <&adc1 0>;

<&adc1 8>

You cannot have "channel@8" in the ADC node and magically assume
consumers should refer to this using "<&adc1 0>".

I don't buy your rationale in [1]:

   "There is a mapping between internal Linux array index (0) and the actual hardware channel ID (8).

    See the code
    https://elixir.bootlin.com/linux/v7.3-rc3/source/drivers/iio/adc/rzg2l_adc.c#L354"

This mapping is in the driver, and there is no mention of it in the DT bindings.
This means the driver must be fixed first, too.

> +			io-channel-names = "tsu";
> +		};
> +
>  		i2c0: i2c@100ae000 {
>  			compatible = "renesas,riic-r9a08g046", "renesas,riic-r9a09g057";
>  			reg = <0 0x100ae000 0 0x400>;

[1] https://lore.kernel.org/TY3PR01MB11346F7B4718113C76B93362986872@TY3PR01MB11346.jpnprd01.prod.outlook.com/

Gr{oetje,eeting}s,

                                                Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                                            -- Linus Torvalds

  reply	other threads:[~2026-11-26 10:32 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25 11:05 [PATCH v9 0/4] Enable USB2.0 and TSU on RZ/G3L SMARC EVK Biju Das
2026-11-25 11:05 ` [PATCH v9 1/4] arm64: dts: renesas: r9a08g046: Enable TSU Biju Das
2026-11-26 10:31   ` Geert Uytterhoeven [this message]
2026-11-26 11:53     ` Biju Das
2026-11-26 12:27       ` Geert Uytterhoeven
2026-11-25 11:05 ` [PATCH v9 2/4] arm64: dts: renesas: r9a08g046: Add USB2.0 host/phy device nodes Biju Das
2026-11-25 11:05 ` [PATCH v9 3/4] arm64: dts: renesas: r9a08g046: Add USB2.0 function " Biju Das
2026-11-25 11:05 ` [PATCH v9 4/4] arm64: dts: renesas: r9a08g046l48-smarc: Enable USB2.0 support Biju Das

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=a152df0a-0b0b-4193-b3ac-ee0df0350802@app.fastmail.com \
    --to=geert+renesas@glider.be \
    --cc=biju.das.au@gmail.com \
    --cc=biju.das.jz@bp.renesas.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=jic23@kernel.org \
    --cc=krzk+dt@kernel.org \
    --cc=linux-iio@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-renesas-soc@vger.kernel.org \
    --cc=magnus.damm@gmail.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

all inboxes | Powered by JetHome®