Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp712614ybl; Fri, 16 Aug 2019 02:49:16 -0700 (PDT) X-Google-Smtp-Source: APXvYqzT6RHvstRBaDR4LTUUE0h1pUGZtxj3FuX0qpjFy6xUdcs0dwef/szfsPUP5hg3WoGcBo6g X-Received: by 2002:a17:902:e70c:: with SMTP id co12mr8693713plb.7.1565948956169; Fri, 16 Aug 2019 02:49:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565948956; cv=none; d=google.com; s=arc-20160816; b=xqCZo2OAvpuNINcjavOCjfA08Si2WJQatGNxtJDjNMrBO1M6k3xPMuqT7M7Pc/EEFj W8UNlyXuWbVataVzRB8TbvVFPTMCiDPmjJJmCoq54Eu920c4vtBx2kgVmYixzpCzhRML teQbBkoaKlBbpLQjte80DyBn9xnKGVy90v7/0pXXKbHLVPN/ysudLiGEtGXFU1M63q7v PLxBZou8ZIhL9oa36O8vewif+jQMLNQLW4Zv3Ho5GGPeqljYPkV6GSYIS+F5qYGHHNOB aqz8d2/2+T1ufzTqgoKmPNyPOJ3/2Rl/YqNJ8FAKCbvOfQ/E4WHy0uz22u3GNGZq+gSa W/Ig== 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=mD9ClRBue1XFA4KcgMq3vDk+RqrW0ppD8k04D80FnEM=; b=yL8A598t59LCt05yQ1i3+rde+q/WsO9+wnHPa5hT/kcpr/Sexu3uSz768t/6GCM8+N koz62bzxvq58PIiJe7PMwJG+kGWAyu+ejNTZxbWsV19sPlp/nkBbrrkuLGbf3SHaHnoa 9/DKeINHWFuqnEmT2fBEdNOsVoL2wdgAwo9vrN1t5HFtxXH70u/NnYRMYUsaQ5gQBRYC Th9SCw+XdVl55NX6+IF+EAtRYycHfiMsXR7//ILnyZw9Q8ADQRZyNXGRBKQhEpj8/m3h Sp7bU6k/x2bBluYcy/MPb3hWJvz85Ua8BtXzoNJtUAaSvbWteNB+sjGEweLANv86uh8O ug6g== 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 v184si3539051pgb.2.2019.08.16.02.48.59; Fri, 16 Aug 2019 02:49:16 -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 S1727194AbfHPJro (ORCPT + 99 others); Fri, 16 Aug 2019 05:47:44 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:56769 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726993AbfHPJrm (ORCPT ); Fri, 16 Aug 2019 05:47:42 -0400 X-Originating-IP: 86.250.200.211 Received: from localhost (lfbn-1-17395-211.w86-250.abo.wanadoo.fr [86.250.200.211]) (Authenticated sender: maxime.ripard@bootlin.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 1026C60005; Fri, 16 Aug 2019 09:47:36 +0000 (UTC) Date: Fri, 16 Aug 2019 11:47:36 +0200 From: Maxime Ripard To: Frank Lee Cc: rui.zhang@intel.com, Eduardo Valentin , Daniel Lezcano , Rob Herring , Mark Rutland , Chen-Yu Tsai , Mauro Carvalho Chehab , David Miller , Greg Kroah-Hartman , Jonathan.Cameron@huawei.com, Nicolas Ferre , Linux PM , devicetree , Linux ARM , Linux Kernel Mailing List Subject: Re: [PATCH v5 02/18] dt-bindings: thermal: add binding document for h6 thermal controller Message-ID: <20190816094736.cbxkqk7q2jvvp7c7@flea> References: <20190810052829.6032-1-tiny.windzz@gmail.com> <20190810052829.6032-3-tiny.windzz@gmail.com> <20190812085604.ozhl35wwm3ehlvqn@flea> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="e3oyg4ksww5uov3y" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --e3oyg4ksww5uov3y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Aug 13, 2019 at 07:40:44AM +0800, Frank Lee wrote: > On Mon, Aug 12, 2019 at 4:56 PM Maxime Ripard wrote: > > > > On Sat, Aug 10, 2019 at 05:28:13AM +0000, Yangtao Li wrote: > > > This patch adds binding document for allwinner h6 thermal controller. > > > > > > Signed-off-by: Yangtao Li > > > --- > > > .../bindings/thermal/sun8i-thermal.yaml | 79 +++++++++++++++++++ > > > 1 file changed, 79 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..e0973199ba3c > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml > > > > We've used so far for the schemas the first compatible to introduce > > that controller as the filename, we should be consistent here. In that > > case that would be allwinner,sun8i-a23-ths.yaml > > > > > @@ -0,0 +1,79 @@ > > > +# 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: > > > + maxItems: 1 > > > + > > > + clock-names: > > > + const: bus > > > + > > > + "#thermal-sensor-cells": > > > + const: 1 > > > + > > > + nvmem-cells: > > > > You need a maxItems here too > > > > > + description: ths calibrate data > > > > What about something like this: > > > > Calibration data for the thermal sensor > > > > > + > > > + nvmem-cell-names: > > > + const: calib > > > > I'm not sure we need a abbreviation here, calibration would be more > > explicit > > > > > + > > > +required: > > > + - compatible > > > + - reg > > > + - reset > > > + - clocks > > > + - clock-names > > > + - interrupts > > > + - "#thermal-sensor-cells" > > > + > > > +additionalProperties: false > > > + > > > +examples: > > > + - | > > > + ths: ths@5070400 { > > > + compatible = "allwinner,sun50i-h6-ths"; > > > + reg = <0x05070400 0x100>; > > > + clocks = <&ccu CLK_BUS_THS>; > > > + clock-names = "bus"; > > > + resets = <&ccu RST_BUS_THS>; > > > + interrupts = ; > > > > Those examples won't compile. > > Emmm, I have some questions about this. > I added this information and it can be compiled. With your patch applied, $ ARCH=arm DT_SCHEMA_FILES=Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml make -j4 dt_binding_check CHKDT Documentation/devicetree/bindings/thermal/sun8i-thermal.yaml DTC Documentation/devicetree/bindings/thermal/sun8i-thermal.example.dt.yaml Error: Documentation/devicetree/bindings/thermal/sun8i-thermal.example.dts:20.28-29 syntax error FATAL ERROR: Unable to parse input tree make[2]: *** [scripts/Makefile.lib:299: Documentation/devicetree/bindings/thermal/sun8i-thermal.example.dt.yaml] Error 1 make[1]: *** [/home/max/Work/src/linux/Makefile:1286: dt_binding_check] Error 2 make: *** [/home/max/Work/src/linux/Makefile:179: sub-make] Error 2 Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --e3oyg4ksww5uov3y Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXVZ7uAAKCRDj7w1vZxhR xWTKAQDfLyzi2ALbODyX2kPcPMmaLcp2tRh8IqLRMr6zqYgqDgD/dgWM62HXzihe 5V5fiOFI853nEXxoNxr4cglIprifmAw= =nc3f -----END PGP SIGNATURE----- --e3oyg4ksww5uov3y--