From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8551CC4332F for ; Wed, 14 Dec 2022 15:02:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=UZmiOyZuSaGVLhh9N6JcLkqFIASllwlnc4pyHU7I7sM=; b=NLybb3hVuLIMM3 Yejr2G8cIa8VOpUx6tE5ppHwHe6ruWMOU/oZmFV4cYDosCBQUqQpIGfEgdtdd04dLWmLDxG6zyuId jzmiKuoUxqEY2uqS2yzbCX4A7xiHqQuEW8uQBoiCvTmRIgwlYP0+kKmL0cDUwmj8x2TpWap/iUL81 Yj7cvLGT5my8nHG+WLEZbGycBKUf4Wls0UkkPjoga4HVBK0Oht2BAKkn+9XQU9Skyri7f0spdXNCZ 8fPG8uMf5wVNgilJLaBO3/cLPcPrW+xiZlu50U0e8kbXYa3Kg2cjzrfg2SIlqEsSR4xgMGV+CJi7R wz9fTFjWFHuekZpM7bZg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1p5TFw-00HZLv-CZ; Wed, 14 Dec 2022 15:01:12 +0000 Received: from mail-oi1-f176.google.com ([209.85.167.176]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1p5TFp-00HZIB-5s for linux-arm-kernel@lists.infradead.org; Wed, 14 Dec 2022 15:01:07 +0000 Received: by mail-oi1-f176.google.com with SMTP id s186so2806467oia.5 for ; Wed, 14 Dec 2022 07:01:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zoL6i5vxN2VIXQtBU1jlFS6aLxm/by40lLf1WEubCJM=; b=wUbY2nlsZlMRoZn8Q12RkBdnDSK20gZsT2gvMlIOcSxXy2ml/sj09pLoxqc7mwxkDj 8bEZ+ujB5s0u+rJJS+t1mVMXgNpcmIGfTZcTpHBeE5VHcXJMQs2iZMpELry6BFUN+x/a UMVBnghpcZQ780lh+FNVeAzT6UcV4aVieEth/Qa1u7C/Ktqeh0CU8dKPBsDpH4RcNdga t4VRaGkMF2pNZGMBFaBuDFQA6+VAIoT3guxztCoQsi+37YV7Ok9mgLU+w8tQM0Rrhkd9 N/8j/aV8EuptFaszKzVbiCoe8VQSRkXtE5z5vXRR2PdO2G/Mwq1v449myitM1Qs7PKAl cmow== X-Gm-Message-State: ANoB5pmDqtQZAeICeLVbP8wGHlvm8Xdh8JLHlZ2e6H2pADHFQL6q2ya1 IwNNGz5d/eZ6fIWXwWvHvw== X-Google-Smtp-Source: AA0mqf4Zq4Y3dyfuRV9T0xjJ2mBVMDxAkFSCmf2WHI3fZ9GiRxZuMNNXsgjrwZwDyjE+hBDymPLfoA== X-Received: by 2002:a54:4516:0:b0:355:1de9:392a with SMTP id l22-20020a544516000000b003551de9392amr11491624oil.48.1671030061718; Wed, 14 Dec 2022 07:01:01 -0800 (PST) Received: from robh_at_kernel.org (rrcs-98-6-157-194.sw.biz.rr.com. [98.6.157.194]) by smtp.gmail.com with ESMTPSA id r141-20020acaa893000000b003539686cb7bsm5681085oie.53.2022.12.14.07.01.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 07:01:00 -0800 (PST) Received: (nullmailer pid 1050655 invoked by uid 1000); Wed, 14 Dec 2022 15:00:59 -0000 Date: Wed, 14 Dec 2022 09:00:59 -0600 From: Rob Herring To: haibo.chen@nxp.com Cc: jic23@kernel.org, lars@metafoo.de, krzysztof.kozlowski+dt@linaro.org, shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, festevam@gmail.com, linux-imx@nxp.com, linux-iio@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 2/3] dt-bindings: iio: adc: Add binding documentation for NXP IMX93 ADC Message-ID: <20221214150059.GA1048042-robh@kernel.org> References: <1671024939-29322-1-git-send-email-haibo.chen@nxp.com> <1671024939-29322-2-git-send-email-haibo.chen@nxp.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1671024939-29322-2-git-send-email-haibo.chen@nxp.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221214_070105_432595_5AD5ECB1 X-CRM114-Status: GOOD ( 19.48 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Wed, Dec 14, 2022 at 09:35:38PM +0800, haibo.chen@nxp.com wrote: > From: Haibo Chen > > The IMX93 SoC has a new ADC IP, so add binding documentation > for NXP IMX93 ADC. > > Signed-off-by: Haibo Chen > --- > .../bindings/iio/adc/nxp,imx93-adc.yaml | 79 +++++++++++++++++++ > 1 file changed, 79 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/nxp,imx93-adc.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/nxp,imx93-adc.yaml b/Documentation/devicetree/bindings/iio/adc/nxp,imx93-adc.yaml > new file mode 100644 > index 000000000000..229bb79e255c > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/nxp,imx93-adc.yaml > @@ -0,0 +1,79 @@ > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/nxp,imx93-adc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: NXP iMX93 ADC bindings > + > +maintainers: > + - Haibo Chen > + > +description: > + The ADC on iMX93 is a 8-channel 12-bit 1MS/s ADC with 4 channels > + connected to pins. it support normal and inject mode, include > + One-Shot and Scan (continuous) conversions. Programmable DMA > + enables for each channel Also this ADC contain alternate analog > + watchdog thresholds, select threshold through input ports. And > + also has Self-test logic and Software-initiated calibration. > + > +properties: > + compatible: > + const: nxp,imx93-adc > + > + reg: > + maxItems: 1 > + > + interrupts: > + description: > + line 0 for WDGnL (watchdog threshold) interrupt requests. > + line 1 for WDGnH (watchdog threshold) interrupt requests. > + line 2 for normal conversion, include EOC (End of Conversion) > + interrupt request, ECH (End of Chain) interrupt request, > + JEOC (End of Injected Conversion mode) interrupt request > + and JECH (End of injected Chain) interrupt request. > + line 3 for Self-testing Interrupts. > + maxItems: 4 Split the descriptions: items: - description: WDGnL ... - description: ... And then drop maxItems > + > + clocks: > + maxItems: 1 > + > + vref-supply: > + description: > + The reference voltage which used to establish channel scaling. > + > + "#io-channel-cells": > + const: 1 > + > +required: > + - compatible > + - reg > + - interrupts > + - clocks > + - clock-names > + - vref-supply > + - "#io-channel-cells" > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + soc { > + #address-cells = <1>; > + #size-cells = <1>; > + adc@44530000 { > + compatible = "nxp,imx93-adc"; > + reg = <0x44530000 0x10000>; > + interrupts = , > + , > + , > + ; > + clocks = <&clk IMX93_CLK_ADC1_GATE>; > + clock-names = "ipg"; > + vref-supply = <®_vref_1v8>; > + }; > + }; > +... > -- > 2.34.1 > > _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel