From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BAF9AF34C63 for ; Mon, 13 Apr 2026 15:42:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:Content-Type: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=WIPMaqXK3AiKBPeDNH6zeef47lYThSZsPryJ8YzgHqk=; b=O+x3mD93CKp7dKWw5gTye2DUOI RwLKNcy3l/SfdBCXRICFuCQ7sz6k3KxoP9GNLAnMirRnN4zSvyHU5xxkiZA+bQ2/e0mgXjlQuusyI 7JomZTh9OKxLG8MfNaBFciitlL34Ezb01H9LDPGEMTz1zvbzzKeFvlV1/ytEquVbcsv4+7vMhcSCe ImwsMJ/IB9W5y3AmJsY40ElV7LEjOZNN+BUvmSImZ81y0+xH/IHrLZUycc5WJiAmfkXG53IIoqN3b oVpgnKFJUJYxCdWK1WLLF7eGE4VVx/Hz8zRQuzEQ7dOKFdvm6bq2O5giaT1/FBwZCMHwIAG5xVgAZ KaMxU4Yg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1wCJQe-0000000Fzdt-3sIk; Mon, 13 Apr 2026 15:42:24 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1wCJQc-0000000Fzde-3rtH; Mon, 13 Apr 2026 15:42:23 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 0B16260180; Mon, 13 Apr 2026 15:42:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 69F5FC2BCAF; Mon, 13 Apr 2026 15:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1776094941; bh=NZiRtuusNFRQ9ALDsb7+X0+Un3wKAtS+hdSBSZf6dFY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jr43NkbvAeO28DfZVQX8WcSGLw3Sv46TmveO6Ji8/02wIzyHVvM4aAj8OAfxdfSIo 5g6GJidKvGlxbtC21BQUWzWeJjQSINytASVO76dZaFiFAEmN+gH73KVIWatrarViGK PWNWZyNphAHyoSW0zpjfwcU0+ZmC7a26QvhCs2knO7pKuoeUhOkSvzY/xiDyScCxmD V1ikFkFwhj/TALOgXN3hr8I75LeMcmHEm4R8+PUot5ndePdhi91Kd6a9aZ6wuhOTdw EUK9tk3ZgcFdv4q/tIPqHCYMcdxXmRV8rqg5FqlpBCINYzjAibABu4N6Q6ZUmksHpY +O9jAG0bZ31Lw== Date: Mon, 13 Apr 2026 16:42:16 +0100 From: Conor Dooley To: Ronald Claveau Cc: Guillaume La Roque , "Rafael J. Wysocki" , Daniel Lezcano , Zhang Rui , Lukasz Luba , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Neil Armstrong , Kevin Hilman , Jerome Brunet , Martin Blumenstingl , linux-pm@vger.kernel.org, linux-amlogic@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 1/8] dt-bindings: thermal: amlogic: Add support for T7 Message-ID: <20260413-impose-cartel-bd7d18f91a24@spud> References: <20260413-add-thermal-t7-vim4-v2-0-1002d90a0602@aliel.fr> <20260413-add-thermal-t7-vim4-v2-1-1002d90a0602@aliel.fr> MIME-Version: 1.0 In-Reply-To: <20260413-add-thermal-t7-vim4-v2-1-1002d90a0602@aliel.fr> X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============6626860828032186281==" Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org --===============6626860828032186281== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="dTC3gs8s/Z9bvL6x" Content-Disposition: inline --dTC3gs8s/Z9bvL6x Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 13, 2026 at 12:52:42PM +0200, Ronald Claveau wrote: > Add the amlogic,t7-thermal compatible for the Amlogic T7 thermal sensor. >=20 > Unlike existing variants which use a phandle to the ao-secure syscon, > the T7 relies on a secure monitor interface described by a phandle and > a sensor index argument. >=20 > The T7 integrates multiple thermal sensors, all accessed through the > same SMC call. The sensor index argument is required to identify which > sensor's calibration data the secure monitor should return, as a single > SM_THERMAL_CALIB_READ command serves all of them. >=20 > Introduce the amlogic,secure-monitor property as a phandle-array and > make amlogic,ao-secure or amlogic,secure-monitor conditionally required > depending on the compatible. >=20 > Signed-off-by: Ronald Claveau > --- > .../bindings/thermal/amlogic,thermal.yaml | 42 ++++++++++++++++= ++++-- > 1 file changed, 40 insertions(+), 2 deletions(-) >=20 > diff --git a/Documentation/devicetree/bindings/thermal/amlogic,thermal.ya= ml b/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml > index 70b273271754b..1c096116b2dda 100644 > --- a/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml > +++ b/Documentation/devicetree/bindings/thermal/amlogic,thermal.yaml > @@ -21,7 +21,9 @@ properties: > - amlogic,g12a-cpu-thermal > - amlogic,g12a-ddr-thermal > - const: amlogic,g12a-thermal > - - const: amlogic,a1-cpu-thermal > + - enum: > + - amlogic,a1-cpu-thermal > + - amlogic,t7-thermal > =20 > reg: > maxItems: 1 > @@ -42,12 +44,39 @@ properties: > '#thermal-sensor-cells': > const: 0 > =20 > + amlogic,secure-monitor: > + description: phandle to the secure monitor > + $ref: /schemas/types.yaml#/definitions/phandle-array > + items: > + - items: > + - description: phandle to the secure monitor > + - description: sensor index to get specific calibration data > + > required: > - compatible > - reg > - interrupts > - clocks > - - amlogic,ao-secure > + > +allOf: > + - if: > + properties: > + compatible: > + contains: > + enum: > + - amlogic,a1-cpu-thermal > + - amlogic,g12a-thermal > + then: > + required: > + - amlogic,ao-secure > + - if: > + properties: > + compatible: > + contains: > + const: amlogic,t7-thermal This can just be replaced by a else I think. > + then: > + required: > + - amlogic,secure-monitor > =20 > unevaluatedProperties: false > =20 > @@ -62,4 +91,13 @@ examples: > #thermal-sensor-cells =3D <0>; > amlogic,ao-secure =3D <&sec_AO>; > }; > + - | > + a73_tsensor: temperature-sensor@20000 { Can drop the label here, it has no users. Otherwise, seems fine. Cheers, Conor. pw-bot: changes-requested > + compatible =3D "amlogic,t7-thermal"; > + reg =3D <0x0 0x20000 0x0 0x50>; > + interrupts =3D ; > + clocks =3D <&clkc_periphs CLKID_TS>; > + #thermal-sensor-cells =3D <0>; > + amlogic,secure-monitor =3D <&sm 1>; > + }; > ... >=20 > --=20 > 2.49.0 >=20 --dTC3gs8s/Z9bvL6x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCad0O2AAKCRB4tDGHoIJi 0sbSAP4nORffFzPK6NFPJTU1MrhZS0mvUDhBdgSXCaZqTS1+vQEAxha0GIdwWfXQ 95JymSDVjHiQlz/NE/rfhqyIzCy/AQg= =maw2 -----END PGP SIGNATURE----- --dTC3gs8s/Z9bvL6x-- --===============6626860828032186281== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic --===============6626860828032186281==--