From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795950683; b=i+TN+DuVWk4UBfMNPbKeVqJ4z+WBXzYtE6wcDGT943EcmSaMn5iPMtp0RSEC9y49bF37 0ShH1KsSSTDeiblhQPYrRfZF5o6GIgf9LIEX1rQ5RNNGk9WpRzRQZzpNroRFTADFGgC2t /1wXFIKZehXp7NFh/Fi+inR5rk493dC4AsuuAiZtER1XDb5+iYTDvdbBJ6EGSDxlD0DQt 54hnnvRBt7M849LJ4JL+veP4FBSlee1oLCm8m0kVtpaNS7ieLVWQ1ul1Qr/qeWqGDMqvA G/hddOH7ybHTQ63QGJx8Qpf/w9TQM9cU67Q1dZy/pHW70CHO1GkTMiPvxSoBHo3H0hg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795950683; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=TBDiDrLp+s+svYNGrs4822a1v3lKWsXQIu+M6rZd51o=; b=cQqPyNcVIkqn6Ab2FS9MinPP19AMPHnKYeovIQ2ygt/2ex05IfG0XZyGXhr/C+ND/T14 73vHmPe+E1hrHap5uTciogw3A1CVZqb1No17NjXsQBgZsGSEKm+InDRPEpwVuhX2vfZUB wIovY28RPiXAb2eu9b2kDDC9e+buJDx/NYX9UI+E71Qa2L3nbBwcRlaBUAuBjv3AMbwgT QuPiPzMd9wkeTfgxCeDqUTgn3QqEcOAYQXqRtn+lSUucMPS74tOGnCmSgxyUaLbYwwfGH /QgiNX3/MUVLZlAJspZtV8qAV6ACsHp2E0lT3/viH4unN9OQVVAuNc0Yg+qfL1FSWIg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Q5w5xojR; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3B3EA606A325 for ; Sun, 29 Nov 2026 11:11:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=Q5w5xojR Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F5DF1F000C1; Sun, 29 Nov 2026 11:11:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795950682; bh=TBDiDrLp+s+svYNGrs4822a1v3lKWsXQIu+M6rZd51o=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=Q5w5xojRSoM3jUJQeEL/FHoHv8q9q6e5KrNg5+HZ2xjzA6ccKhQFyEUZ78ff0E1DI ENejOW0r5ZD4hesBr/nFn4f2a4+cO2QKO3tr+6OBIZ+jIXW3ZEDuuSqQn2CjaaL6yd 7UeH26GGiSiffvJ2j0uX7cwdCpOyK9aYkwpIATTxgD19uIY6347SYPCcyBsmQfgtim lIgKI0NsEanTOBgXd8TZp7Uped20eMxQvM41xfZHmfzmprSwRb54IL5rrmw5oowXFh SKjxyio0o8WXA+wQhxIXt3H7xELtFVz67V2lE/xu4GgsCDrHCqQxlwp4KNaN/9V+K5 IJbKy/Mu+0CIQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v10 1/4] arm64: dts: renesas: r9a08g046: Enable TSU Reply-To: sashiko-reviews@lists.linux.dev To: "Biju Das" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, wsa+renesas@sang-engineering.com In-Reply-To: <20261129-usb_rzg3l-v10-1-35311c80e9b2@bp.renesas.com> References: <20261129-usb_rzg3l-v10-0-35311c80e9b2@bp.renesas.com> <20261129-usb_rzg3l-v10-1-35311c80e9b2@bp.renesas.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sun, 29 Nov 2026 11:11:22 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] arm64: dts: renesas: r9a08g046: tsu io-channels lookup fails with -EINVAL - [Low] arm64: dts: renesas: r9a08g046: adc1 and tsu nodes out of unit-address order -- commit fc5eafdbbfd9c0935ab645f076dfcf57ba97c007 Author: Biju Das arm64: dts: renesas: r9a08g046: Enable TSU This commit adds #cooling-cells to the CPU nodes and describes the ADC1, TSU, and CPU thermal zone nodes for thermal mitigation on the r9a08g046 SoC. > diff --git a/arch/arm64/boot/dts/renesas/r9a08g046.dtsi b/arch/arm64/boot= /dts/renesas/r9a08g046.dtsi > index bb69e5e3528d0..245e0a34023f1 100644 > --- a/arch/arm64/boot/dts/renesas/r9a08g046.dtsi > +++ b/arch/arm64/boot/dts/renesas/r9a08g046.dtsi [ ... ] > @@ -381,6 +385,37 @@ scif5: serial@1004e000 { > status =3D "disabled"; > }; > =20 > + adc1: adc@108c0000 { > + compatible =3D "renesas,r9a08g046-adc1"; > + reg =3D <0 0x108c0000 0 0x10000>; [Severity: Low] This isn't a bug, but adc@108c0000 and thermal@108d0000 are placed between serial@1004e000 and i2c@100ae000 instead of in ascending unit-address order after gpu@108b0000 (and before clock-controller@11010000). > + interrupts =3D ; > + clocks =3D <&cpg CPG_MOD R9A08G046_ADC1_ADCLK>, > + <&cpg CPG_MOD R9A08G046_ADC1_PCLK>; > + clock-names =3D "adclk", "pclk"; > + resets =3D <&cpg R9A08G046_ADC1_PRESETN>, > + <&cpg R9A08G046_ADC1_ADRST_N>; > + reset-names =3D "presetn", "adrst-n"; > + power-domains =3D <&cpg>; > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + #io-channel-cells =3D <1>; > + > + channel@8 { > + reg =3D <8>; > + }; > + }; > + > + tsu: thermal@108d0000 { > + compatible =3D "renesas,r9a08g046-tsu"; > + reg =3D <0 0x108d0000 0 0x10000>; > + clocks =3D <&cpg CPG_MOD R9A08G046_TSU_PCLK>; > + resets =3D <&cpg R9A08G046_TSU_PRESETN>; > + power-domains =3D <&cpg>; > + #thermal-sensor-cells =3D <0>; > + io-channels =3D <&adc1 8>; > + io-channel-names =3D "tsu"; > + }; [Severity: High] As reported by Geert Uytterhoeven on v9 [1], does devm_iio_channel_get() in rzg3s_thermal_probe() fail with -EINVAL when looking up <&adc1 8> without the prerequisite rzg2l_adc .fwnode_xlate support in tree? Because adc1 defines only one channel subnode (channel@8), devm_iio_adc_device_alloc_chaninfo_se() sets indio_dev->num_channels to 1. In the current tree, rzg2l_adc_iio_info in drivers/iio/adc/rzg2l_adc.c has no .fwnode_xlate callback, so __fwnode_iio_channel_get() falls back to __fwnode_iio_simple_xlate(), which rejects iiospec->args[0] (8) >=3D indio_dev->num_channels (1) and leaves the TSU thermal sensor and cpu-thermal zone unregistered. [1] https://lore.kernel.org/r/a152df0a-0b0b-4193-b3ac-ee0df0350802@app.fast= mail.com --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261129-usb_rzg3l-= v10-0-35311c80e9b2@bp.renesas.com?part=3D1