Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3529312ybl; Mon, 12 Aug 2019 01:57:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqwZLpGg89pKBDmTn+L2ey/ZS5/tZSuERIl8BVXo7NJD8AEJCrrEoWNTiZDmeF5iWP79miLw X-Received: by 2002:a17:90a:8403:: with SMTP id j3mr14484741pjn.3.1565600232610; Mon, 12 Aug 2019 01:57:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565600232; cv=none; d=google.com; s=arc-20160816; b=RCUzWzN0KukfwiWkZOn01lmOvev2cNpcmojwccLR4G31/JcXsHVATJS69MEtdV1PRM s8mD/YKVLIfj8jgrShINMK/OOD7NRKUM66GBOdgqf9YAbSEd6XziJKQP9o5AxsKrlvlP QfIE2Op67wRA3T7DKQz/EKl7fS8u2cmWZAwibD6HZkRYUXWgpji0dpFY9OSUn2cL9XYU LHcEgw0fGEWrgMMNxeLpqpGDthipoo3UnYIJghE2pZRy5VxdPhaocZIVv3tamW44fV6q HBEeVqWW/JDJbcu3+SHKebCjg2oYs+JJFb1Y5l4SQfmR+foyFY7tcGHp3ey+cK+kj6Lr mIlA== 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=uMJ8XVt4/RQ8rNSLK0FPay6vKWhEKNjhMioO1yCcqas=; b=mEeadzcaZn9BEdwJzONRaklY33rmp04P8Vtx1qcKfexlxgmOLSV4B0WJgnYFHBHoQg yWuYwhWNSbS0ArprQX0gb0bg+6VJjc0n7G7dcXW0M1/uD6Dvo3kBNTO+kp91mxDan6XS QMyvzBNfddJGV/dE55QcFkMQkoe4dLL1aUtrty+l54eC69hgZ4KSHeuFCLkWBqNFRZj2 tLnIFMaNfDWj/bAjX9WfqKicoZ/GDjFZ4wCwUxLXERdkecjg06vRouRzivlQ4miUDK6p 3m4v4c5+QcijuLEqRKMOdfqCRxnrPvgQeUmhlWSW0pC83oXMYAc1vq2P05221s9iRCQM 2dmw== 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 q11si11224093pjb.84.2019.08.12.01.56.56; Mon, 12 Aug 2019 01:57:12 -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 S1727199AbfHLI4M (ORCPT + 99 others); Mon, 12 Aug 2019 04:56:12 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:40435 "EHLO relay3-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbfHLI4M (ORCPT ); Mon, 12 Aug 2019 04:56:12 -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 E3E8460006; Mon, 12 Aug 2019 08:56:04 +0000 (UTC) Date: Mon, 12 Aug 2019 10:56:04 +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, mchehab+samsung@kernel.org, davem@davemloft.net, gregkh@linuxfoundation.org, Jonathan.Cameron@huawei.com, nicolas.ferre@microchip.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v5 02/18] dt-bindings: thermal: add binding document for h6 thermal controller Message-ID: <20190812085604.ozhl35wwm3ehlvqn@flea> References: <20190810052829.6032-1-tiny.windzz@gmail.com> <20190810052829.6032-3-tiny.windzz@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="4zhzclyt6oncb76d" Content-Disposition: inline In-Reply-To: <20190810052829.6032-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 --4zhzclyt6oncb76d Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. Maxime -- Maxime Ripard, Bootlin Embedded Linux and Kernel engineering https://bootlin.com --4zhzclyt6oncb76d Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRcEzekXsqa64kGDp7j7w1vZxhRxQUCXVEppAAKCRDj7w1vZxhR xbePAQD4oGzekU98J4bCgNXtImN3X9EeDQ3DpYjvOJSUQtIlZgEAnRIw2ceIxFC7 AomJrBOwFCYE3Ly30TnJfIXLEPZvYAU= =Si6e -----END PGP SIGNATURE----- --4zhzclyt6oncb76d--