Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2579013rwd; Fri, 2 Jun 2023 11:20:19 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6iSEiQgKDPXx9tz2o0u9eg3wOz7fVYKJ4zy1rybuIPaRvtQWYbAL4rwsY52KIhdXD2t0Wu X-Received: by 2002:a17:903:2343:b0:1b1:c0f7:cd27 with SMTP id c3-20020a170903234300b001b1c0f7cd27mr678651plh.22.1685730019169; Fri, 02 Jun 2023 11:20:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685730019; cv=none; d=google.com; s=arc-20160816; b=G+tw+nFbm5/y7WPIFA2TFgrG3eCEZdgVXfbZfM1dNFBUKnDAt6MCmldjme2ry+k5H5 T3rNsRx8Oa8/dl7eQTZVbYj9j+ZpyNQ5vkScd3f+9u9dHeYDiPG7HCT4pgFvapRjpyI8 mdd+OcXIzHfhGcssRbckRmztRHUltB3qMDa87a5XktQIEfSCGhSCJy4PAEP41hCOZv7c QfhNTOny5n6UQxokhagnkli7ugEdS9PqYyLJ1pA7CqPq0+JZ8nzA5x8vaVPxCB+NvnKc aeg8h3/QUhoESjZnyc7m9rUk0cKw+yByf6HgKKGTjhV5b6kkBXGjduZLpBpiegQm5mgW 64cg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lTXPopgHyEmhEAnBO2qY56Uwx+qlhlFJL9zBNYf1Gu0=; b=jUwfjJJcCySN9ovNgfv2iGhu9wcQzK179E5cVSSTJ0/fdj9I9fVuJ5dBzYACFEGbQ5 cNQ2tAhRq8pqgJI8H5vfeq0/AE1hFhY2oNRpCcVlL7HZuceDrsWhQbLwho2W+k+wcIKM kDk2vezraY6vUpxsTZobSC7jLbj0Y+CJ0BudIqQUPZ8faFXn/aEl4AOGPpd7CpvErlEW g0H2nEob1f21Mr/xRiN4aLz4hao3jpiUR56sAnm8vPp6WqMh5Nj1Cl0kLCudyomTNqQY McwWfV8RZXVlotEY+OWQK6Os5tHXYEUCwloIAgekvbFcC4G4zV7EzbG8ntI9mzxDP/vL U9hA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uZ6mOuJV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c11-20020a170902d48b00b001a6b5a7db52si1257516plg.596.2023.06.02.11.20.05; Fri, 02 Jun 2023 11:20:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uZ6mOuJV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236976AbjFBRxm (ORCPT + 99 others); Fri, 2 Jun 2023 13:53:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234562AbjFBRxh (ORCPT ); Fri, 2 Jun 2023 13:53:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 435B3123; Fri, 2 Jun 2023 10:53:35 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D3AD9611D7; Fri, 2 Jun 2023 17:53:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4F5FBC433D2; Fri, 2 Jun 2023 17:53:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685728414; bh=b9kqJeL7cB8BeNqJEwvKkD/C4WuuGR4Ka56IkoyPdZI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=uZ6mOuJVbaEs4cQyr4LZnHZh/yUVRjDOlp1Ioa6RC71KmCQfxKDLraKbbwMGGZj0z G5gtS5y/vq3pkIMIB++bB6fGpe1G5liOJzZj61Z7hSbOPcGZ3MCU+6uA9DlRWzR862 MR9umtnYTtIEJcF4A3oaYPPspc2d0ECbtXY46ih2us0zG/LzK32MYl32FjSnW45u8Z MTLQi7K7uQNo9Jq/63FaI6K793namWs0XsMqjCj5dhupydAhKBQ9GCqGukNhOx0Nf5 zLWRP+cUJwaG/mUcsKmalR75rd9L+Yp4yijOhZnUwdK8k0ygBp2VCMkQFqdl9YIL+3 wrhZUnL4IiOFw== Date: Fri, 2 Jun 2023 18:53:28 +0100 From: Conor Dooley To: matthias.bgg@kernel.org Cc: rafael@kernel.org, Daniel Lezcano , Rob Herring , Krzysztof Kozlowski , Conor Dooley , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, Amit Kucheria , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, Zhang Rui , linux-arm-kernel@lists.infradead.org, Matthias Brugger Subject: Re: [PATCH v2 1/2] dt-bindings: thermal: mediatek: Move auxdac binding to yaml Message-ID: <20230602-pacify-dares-0989f2c759b2@spud> References: <20230601134425.29499-1-matthias.bgg@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="/PBB13aRPpKxOFCF" Content-Disposition: inline In-Reply-To: <20230601134425.29499-1-matthias.bgg@kernel.org> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --/PBB13aRPpKxOFCF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Jun 01, 2023 at 03:44:24PM +0200, matthias.bgg@kernel.org wrote: > From: Matthias Brugger >=20 > Convert the older binding to yaml syntax. > The thermal IP has several sensors, to reflect that > thermal-sensors-cells is set to '1'. Apart optional regulator > for bank supply wasn't part of the old binding description, > this patch adds them. >=20 > Signed-off-by: Matthias Brugger >=20 > --- >=20 > Changes in v2: > - drop auxadc and apmixedsys nodes > - maxItems for clocks > - drop obvious description of reset > - mention optional regulators in commit message > - mention thermal-sensors-cells change in commit message >=20 > .../bindings/thermal/mediatek,thermal.yaml | 152 ++++++++++++++++++ > .../bindings/thermal/mediatek-thermal.txt | 52 ------ > 2 files changed, 152 insertions(+), 52 deletions(-) > create mode 100644 Documentation/devicetree/bindings/thermal/mediatek,th= ermal.yaml > delete mode 100644 Documentation/devicetree/bindings/thermal/mediatek-th= ermal.txt >=20 > diff --git a/Documentation/devicetree/bindings/thermal/mediatek,thermal.y= aml b/Documentation/devicetree/bindings/thermal/mediatek,thermal.yaml > new file mode 100644 > index 000000000000..bbc9c2935da0 > --- /dev/null > +++ b/Documentation/devicetree/bindings/thermal/mediatek,thermal.yaml > @@ -0,0 +1,152 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/thermal/mediatek,thermal.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek Thermal Sensor > + > +maintainers: > + - Matthias Brugger > + > +description: | ^ You don't need this btw, unless you have formatting to preserve. > + The MediaTek thermal controller measures the on-SoC temperatures. > + This device does not have its own ADC, instead it directly controls > + the AUXADC via AHB bus accesses. For this reason this device needs > + phandles to the AUXADC. Also it controls a mux in the apmixedsys > + register space via AHB bus accesses, so a phandle to the APMIXEDSYS > + is also needed. > + reset-names: > + items: > + - const: therm > + nvmem-cell-names: > + items: > + - const: calibration-data You don't need the "items: - const:", "const:" alone is sufficient. > + > + mediatek,auxadc: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + A phandle to the AUXADC which the thermal controller uses... =2E..to read the on-SoC temperatures as it does not have its own ADC. Moving the information out of the description down here seems like it would be better than what the original text binding does. Sorry for not point that out last time around. > + > + mediatek,apmixedsys: > + $ref: /schemas/types.yaml#/definitions/phandle > + description: > + A phandle to the APMIXEDSYS controller... Ideally the information about the purpose of the mux would go here, but I don't know the purpose of it :) > + "#thermal-sensor-cells": > + const: 1 > + > + bank0-supply: > + description: Regulator supplying voltage to the first bank Since I am an eejit, first bank of what? Sensors? Otherwise, LGTM. Cheers, Conor. --/PBB13aRPpKxOFCF Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZHosmAAKCRB4tDGHoIJi 0i3eAQDTiUYAwX9JPVS3gO5Z7cj7YBFJT4ql+2b/vG0SvLN9PwEAmPXWtqSLISGI EH42+4j4s+1DWnLiQj/R9cdkpYNLeQE= =LSEq -----END PGP SIGNATURE----- --/PBB13aRPpKxOFCF--