Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp3739315ybi; Mon, 27 May 2019 05:17:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqylISgFDHl/xo3lvDKdma4wWUszszkJuYfg9vN0MZNNV7a1jHs2XgyaxAVGyAwWg8Tujgcp X-Received: by 2002:a17:90a:c588:: with SMTP id l8mr31286488pjt.59.1558959472144; Mon, 27 May 2019 05:17:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558959472; cv=none; d=google.com; s=arc-20160816; b=jEnKVlo2DceRgrTjHz9Vgm1T4Aod3O99W2KcZ1/9cGpuLoBnl9egGIvGdwCtY47bLZ ZXk+N5xFndl6n18RvMXISsiREu2joexUk+cRzwEIPXbHiObC/PfHljeLxy7AeryrDT9A cEOXIeCBpNLFss5R3HMqdbM248eeeLePG5JQbYLbpGJRtcdrQx0/Ik0pchN77VjaTVoB c2t7hqniXILGfwyAmyhxAoCMBKVMsESRRYLfopMsgRNZrZ5W5Xzbl2pDGJypEJ/CNVRF 5I27QA4z6vkXOUHtkbMGQemUiWFz0uGBUapzN6NdqXIk/gvvFE1/vAHgxB9eawBLiXor K2kQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=GBG+poN8qrVyjPjm8gWjJSVDH72gLboM/rhOaA/UB5Y=; b=wtcsctwdLFzU3BnyVM1Aq9W3nNJCSQL6xEoWV7IGnGZRMbRVnZFn7g1aIrcT5ftJen XIckNWNsmu/XIghNTVoHA1y2UoBFTFsRMFcJHuFRrbpxuipCGeISOSzKBCyadro2IzFT x6UAFTs9zPMlf3BxnVuRxgaGNEyOAF2z7dLytXF5kkCwhBVoMXmOOGJxDFSu5Z0M/ywQ X+AxjRfDfS/i0smeqOdmukXhoiTPJIMZRCUMPnLN+RnXl17DIoXmMHfTR8HN5SeAN5TH xmPmos0bUDnXSzyMMnveNEEqcaVwq0PBB36Wi9nxxTTQCTKZGwYRwP3LeWtFXQ4LahDw UF7g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e96si14173134plb.123.2019.05.27.05.17.36; Mon, 27 May 2019 05:17:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726870AbfE0MQd (ORCPT + 99 others); Mon, 27 May 2019 08:16:33 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:48139 "EHLO relay10.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725858AbfE0MQd (ORCPT ); Mon, 27 May 2019 08:16:33 -0400 Received: from localhost (aaubervilliers-681-1-27-134.w90-88.abo.wanadoo.fr [90.88.147.134]) (Authenticated sender: maxime.ripard@bootlin.com) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 17976240018; Mon, 27 May 2019 12:16:24 +0000 (UTC) Date: Mon, 27 May 2019 14:16:24 +0200 From: Maxime Ripard To: Yangtao Li Cc: rui.zhang@intel.com, edubezval@gmail.com, daniel.lezcano@linaro.org, robh+dt@kernel.org, mark.rutland@arm.com, wens@csie.org, davem@davemloft.net, mchehab+samsung@kernel.org, gregkh@linuxfoundation.org, linus.walleij@linaro.org, nicolas.ferre@microchip.com, paulmck@linux.ibm.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 2/3] dt-bindings: thermal: add binding document for h6 thermal controller Message-ID: <20190527121624.5qwrrzc4whrddbbe@flea> References: <20190525181329.18657-1-tiny.windzz@gmail.com> <20190525181329.18657-3-tiny.windzz@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="5l3rwiguuszwblyx" Content-Disposition: inline In-Reply-To: <20190525181329.18657-3-tiny.windzz@gmail.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --5l3rwiguuszwblyx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, Thanks for working on this! On Sat, May 25, 2019 at 02:13:28PM -0400, Yangtao Li wrote: > This patch adds binding document for allwinner h6 thermal controller. > > Signed-off-by: Yangtao Li > --- > .../bindings/thermal/sun8i-thermal.yaml | 71 +++++++++++++++++++ > > 1 file changed, 71 insertions(+) > create mode 100644 Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml > > diff --git a/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml b/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml > new file mode 100644 > index 000000000000..54cf1277870e > --- /dev/null > +++ b/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml > @@ -0,0 +1,71 @@ > +# SPDX-License-Identifier: GPL-2.0 > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/thermal/sun8i-thermal.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Allwinner SUN8I Thermal Controller Device Tree Bindings > + > +maintainers: > + - Yangtao Li > + > +description: |- > + This describes the device tree binding for the Allwinner thermal > + controller which measures the on-SoC temperatures. > + > +properties: > + compatible: > + enum: > + - allwinner,sun50i-h6-ths > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > + clocks: > + items: > + - description: ths bus clock > + > + clock-names: > + items: > + - const: bus You don't need the items here, you can just do: clocks: maxItems: 1 description: Bus clock clock-names: const: bus > + "#thermal-sensor-cells": > + enum: [ 0, 1 ] You should document when you would need one or the other. My guess is that you did it that way to deal with the A33? If so, we can just request the cell size to be 1 for now, and then expand it to an enum later on when we'll support the A33. > + nvmem-cells: > + items: > + - description: ths calibrate data > + > + nvmem-cell-names: > + items: > + - const: calib Same remark than for the clocks > + > +required: > + - compatible > + - reg > + - interrupts > + - reset > + - clocks > + - clock-names I guess you'd need #thermal-sensor-cells too? Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --5l3rwiguuszwblyx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXOvVGAAKCRDj7w1vZxhR xYJvAQDS6LCy+f//B51XcJuEuSglOnKVFXxiNHV/4yLfVTR9lQD+Ory2sL/zzJ11 NK/Cfa5T1w6p+sdl9MDDkpaVkRt9GQ8= =mlQq -----END PGP SIGNATURE----- --5l3rwiguuszwblyx--