Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp585916pxk; Thu, 17 Sep 2020 10:35:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1o+ksnLNXPBdg3HsSZby4iScS9LoMMpB2afcC7V4Etg4DZVvv/0C3PoH7lQfX60MTPLuD X-Received: by 2002:a17:906:6d4c:: with SMTP id a12mr30637938ejt.64.1600364153065; Thu, 17 Sep 2020 10:35:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600364153; cv=none; d=google.com; s=arc-20160816; b=ipa42FVCqwPcrz7M4kW+vjFAz1tMayqPjcg/Z7rGLzTZxb8JJJUpnmfSFV+sTlcNsF kuOOZNjji/wGJASpMopkHO0SgXuX9Enz19n5R46VR0yETRbaQffvo5gwe1CWVBcY5q5x NUnRNBuNIXiTt5BIIyrFE3oHp/JhD93QJSTcw/BiZuZpIcwaIjvT6dR4bcFP4uGj4UjG ER0A3zr+oTncv+gPJQVEotHVkILchuSpxnHLak1o8P4tik5gOBcozBBl8rReqEisRYFs rUlwDnDO5iGblCyOy+P8a8Wh9iBx5QvHtdTUb9Bci6fZP9liee3Q6XxUuiZxXFxMbr4w iEsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=utV91WulCcfrBOGq8qU5n5WZO8F00718SuVvejeDFKQ=; b=xqTyYAsYdFEQYp7GhvMPBn4yYlZ/yXjb2yaZDAM/1Az3h2n8W2IrOtUzGxOkWoHSOP 5cD+z4RRxKKRlvpzvadOlQKugaBLoPtlTOfQZDlA+ujOfCTKVnlfq/4dFwGnOSx6ZKLU bcaCh5mYi5/1zu9LQYMx+YH9pKeDx8ZMMKKTfLLo+WblmT1QE9MmxNlF/9g2MnExjzVp zZVMYoiAa7iRLdvFzZUo//Afq/9KALlvz6EPRFNbgHZ7N4hh2ImEf+m9vGW5QlHtWw7i FCXJAE9T3v8Xj0iZIAGeXssLRDARD2dKJeJFP7Y079Z8cNEwA5ZGNGbnNVx2K3n9ifrN Vq2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iQwRuDux; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j7si376702ejn.639.2020.09.17.10.35.28; Thu, 17 Sep 2020 10:35:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iQwRuDux; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726590AbgIQRdy (ORCPT + 99 others); Thu, 17 Sep 2020 13:33:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:38868 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726531AbgIQRd2 (ORCPT ); Thu, 17 Sep 2020 13:33:28 -0400 Received: from archlinux (cpc149474-cmbg20-2-0-cust94.5-4.cable.virginm.net [82.4.196.95]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 52F6020725; Thu, 17 Sep 2020 17:33:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600364008; bh=wNoTCGcfcB/3veX9mEs1zGpPBnfxajFdOgvN0afMW7M=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=iQwRuDux4teckfNDKQ3XeTDN+ueiBL9tB+it3+a1Qg22UTK6i5b/CCinsmV4ZL/Bl TkpcMJnMm40OKktvu/LZSVx9xyxhyNdN1K4dNoS9qO7g19sG9BWch8y8DaJwxS8BFm QA/X58JzpxNkXVYNohgO3bAyf1vnxnH/P07dLSKI= Date: Thu, 17 Sep 2020 18:33:22 +0100 From: Jonathan Cameron To: Gene Chen Cc: matthias.bgg@gmail.com, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, gene_chen@richtek.com, Wilma.Wu@mediatek.com, shufan_lee@richtek.com, cy_huang@richtek.com, benjamin.chao@mediatek.com, Rob Herring , devicetree@vger.kernel.org Subject: Re: [PATCH v4 1/3] dt-bindings: iio: adc: add bindings doc for MT6360 ADC Message-ID: <20200917183322.25fa2aea@archlinux> In-Reply-To: <1600191369-28040-2-git-send-email-gene.chen.richtek@gmail.com> References: <1600191369-28040-1-git-send-email-gene.chen.richtek@gmail.com> <1600191369-28040-2-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 16 Sep 2020 01:36:07 +0800 Gene Chen wrote: > From: Gene Chen > > This change adds the binding doc for the MT6360 ADC. > > Signed-off-by: Gene Chen Hi Gene A few things inline I missed before. Ideally this wants a device-tree ack which it isn't likely to get without cc'ing the binding Maintainers. I've added Rob and the list. Thanks, Jonathan > --- > .../bindings/iio/adc/mediatek,mt6360.yaml | 32 ++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/mediatek,mt6360.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/mediatek,mt6360.yaml b/Documentation/devicetree/bindings/iio/adc/mediatek,mt6360.yaml > new file mode 100644 > index 0000000..2fa2fe7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/mediatek,mt6360.yaml > @@ -0,0 +1,32 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/mediatek,mt6360.yaml# I think this should probably match the compatible as should the file name. (sorry missed this on previous review!) > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Mediatek MT6360 and similar ADCs > + > +maintainers: > + - Gene Chen > + > +description: | > + Family of simple ADCs with i2c interface and internal references. > + > +properties: > + compatible: > + const: mediatek,mt6360-adc > + > + "#io-channel-cells": > + const: 1 > + > +required: > + - compatible > + - "#io-channel-cells" As it's fresh in my mind from forgetting it myself, can we add additionalProperties: false ? > + > +examples: > + - | > + adc { > + compatible = "mediatek,mt6360-adc"; > + #io-channel-cells = <1>; > + }; > +...