Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp3933453pxb; Tue, 7 Sep 2021 10:38:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzs/tqlhhzb6eqaXq11JIFTroFROi43SovroM8BsUb8eoa07/8c/Kc0kumfNp2UF6uBdsru X-Received: by 2002:aa7:d68b:: with SMTP id d11mr653087edr.243.1631036330286; Tue, 07 Sep 2021 10:38:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631036330; cv=none; d=google.com; s=arc-20160816; b=TkRdRzMhW9puG754e3DD23vspuBVs/tuXZmIDS3hlGL95PaI+O501lSHTn/z1HUUkt of0QZxvjF/nRQlVjLtlUC4pk/5Ri6Iz/2VPSiQ6JmLE9r4U1MNlM8ac2GFyGVlmrqFx9 ecfO4pnFGl7Dqewca1dW7jVJKYj7vSCkQGfotmXIt43pEdBiKd1PnqZ7usyKHRNCyOE1 PM3OdadQ4EJq4L1nNbU0KtZpMwktvtYq0rymkDRJL4pvK0amnVhiIqiRxYNS4YTHXrI6 jn+yVlwdim1QDEUhr8oY63fBNlIfZamvpmRVj/m5RbpEEkgHVFtGfDxA+TXP2LBqHT9w Q5xg== 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; bh=DCZNN4p5E8kdrXSmi6bXMnp7xKFnaiWBCB0tHa5A5OA=; b=A3n+1xhV8lBOA0MhINgFos5zpDgdsR7UgWrXKtprxtdswr0h+ONHGcXEqrQ7ydnRt2 w56jqGQ8+8rYwykwxgF5bGyCwANDodpDpT2jCPBuE0gri9SsVNtMfP4CCn49zLHE3ZqW OvPvHkEnpF2fRZle4rH+EQIUoF1o/FFaWiVJ6e5WQoYCx4hxJ9y4jW8hR+SxtDMrFAcT NMvoZJHRIoI1pcDzB0p9m/o9PHwpf1gesu0Pb8TwJ7j8u5HEvndEaxu/xGvlVpo8A7hb C84TqagWiy2vHKpAKJkRH4t0fFrzE2k9ZaMUbhcx+op4g9pE0e1KTIyZqT1HagV5a9zz QDkA== ARC-Authentication-Results: i=1; mx.google.com; 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 k1si11259198ejx.491.2021.09.07.10.38.26; Tue, 07 Sep 2021 10:38:50 -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; 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 S1344755AbhIGQrP (ORCPT + 99 others); Tue, 7 Sep 2021 12:47:15 -0400 Received: from mail-oi1-f175.google.com ([209.85.167.175]:40888 "EHLO mail-oi1-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343837AbhIGQrN (ORCPT ); Tue, 7 Sep 2021 12:47:13 -0400 Received: by mail-oi1-f175.google.com with SMTP id h133so13539848oib.7; Tue, 07 Sep 2021 09:46:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=DCZNN4p5E8kdrXSmi6bXMnp7xKFnaiWBCB0tHa5A5OA=; b=Bw64cYmMn9sgJZ61c+4aG+oIce/PCjfOlP1xG0sMycZ8w1S6J7nrkLrJh0shO9bKV9 GEr2nuWhIRm+hXAGgsaLvna0O1IXnI4jSzCoxSPyjeKAWAiAHt+5lz9gOUWCU/c8JgBp oewVTeXdPIw3bJCcg0ol8+f5qNNyMp3awS5Jjn+9vezZNZVABx/Ti1WrSBMpv0M20et4 Ji49zKjNPRpelTvNgB4hI1DMouZfxWKIH7gtkTrJCp616yW1E4wbKNqrnkMbQZS+vWTT gZT6/3RcGCpC51gLlouPRIpvrJe+IDIcg84nZraCi3mICvKQMlPFZi/+SVSh2Dsu2+Kl Wt/g== X-Gm-Message-State: AOAM5317kU9r9LPZnrNfJJL5107Gm5MwBghd33+XKeAXIo5hgUXP1D40 wMiDTNYPQCYdff+iW2tW+A== X-Received: by 2002:a05:6808:13d3:: with SMTP id d19mr3506601oiw.178.1631033166614; Tue, 07 Sep 2021 09:46:06 -0700 (PDT) Received: from robh.at.kernel.org (66-90-148-213.dyn.grandenetworks.net. [66.90.148.213]) by smtp.gmail.com with ESMTPSA id x4sm2327260ood.2.2021.09.07.09.46.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Sep 2021 09:46:05 -0700 (PDT) Received: (nullmailer pid 4134391 invoked by uid 1000); Tue, 07 Sep 2021 16:46:04 -0000 Date: Tue, 7 Sep 2021 11:46:04 -0500 From: Rob Herring To: Cai Huoqing Cc: Jonathan Cameron , Lars-Peter Clausen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , linux-iio@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: iio: adc: Add the binding documentation for NXP IMX8QXP ADC Message-ID: References: <20210907015724.1377-1-caihuoqing@baidu.com> <20210907015724.1377-3-caihuoqing@baidu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210907015724.1377-3-caihuoqing@baidu.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 07, 2021 at 09:57:22AM +0800, Cai Huoqing wrote: > The NXP i.MX 8QuadXPlus SOC has a new ADC IP, so add the binding > documentation for NXP IMX8QXP ADC. > > Signed-off-by: Cai Huoqing > --- > v1->v2: *Fix some indentation issues. > *Mark status as okay. > *Change clock2 source. > v1 link: > https://patchwork.kernel.org/project/linux-arm-kernel/patch/20210830172140.414-5-caihuoqing@baidu.com/ > > .../bindings/iio/adc/nxp,imx8qxp-adc.yaml | 85 +++++++++++++++++++ > 1 file changed, 85 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml b/Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml > new file mode 100644 > index 000000000000..77501898a563 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/nxp,imx8qxp-adc.yaml > @@ -0,0 +1,85 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/nxp,imx8qxp-adc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NXP IMX8QXP ADC bindings > + > +maintainers: > + - Cai Huoqing > + > +description: > + Supports the ADC found on the IMX8QXP SoC. > + > +properties: > + compatible: > + const: nxp,imx8qxp-adc > + > + reg: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + clocks: > + maxItems: 2 > + > + clock-names: > + items: > + - const: per > + - const: ipg > + > + assigned-clocks: > + maxItems: 1 > + > + assigned-clocks-rate: > + maxItems: 1 > + > + power-domains: > + maxItems: 1 > + > + status: > + const: disable ??? You don't need 'status' in bindings. Plus this would cause 'status = "okay"' to cause an error in your dts files. > + > + "#io-channel-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - interrupts-parent It is valid for interrupt-parent to be in a parent node, so it is never required. > + - clocks > + - clock-names > + - assigned-clocks > + - assigned-clock-rates > + - power-domains > + - state Not documented. > + - "#address-cells" > + - "#size-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + soc { > + #address-cells = <1>; > + #size-cells = <1>; > + adc@5a880000 { > + compatible = "nxp,imx8qxp-adc"; > + reg = <0x0 0x5a880000 0x0 0x10000>; > + interrupts = ; > + clocks = <&clk IMX_SC_R_ADC_0>, > + <&clk IMX_SC_R_ADC_0>; > + clock-names = "per", "ipg"; > + assigned-clocks = <&clk IMX_SC_R_ADC_0>; > + assigned-clock-rates = <24000000>; > + power-domains = <&pd IMX_SC_R_ADC_0>; > + status = "okay"; Remove status from examples. > + #io-channel-cells = <1>; > + }; > + }; > +... > -- > 2.25.1 > >