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 D8D27C7EE2F for ; Mon, 12 Jun 2023 15:00:04 +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=nREP9UfipaKgqtawT96uMlpLaohZLglizC14UukRDy8=; b=oatssWIaYml5rT b3368bGaiEeRkOXXMTrXddX9JxTqzAcEqNSwoQQJqOSd0pCpECAdIZdQsbmdEFZNChDw8GFplPh66 uAqoKqLPpESZcJyfuCABQTQJDAmjoKlq4TgjobofWeHP1a7xGFZbfjz7tFao8wxGaeodhahneW5ko 03OOte/2XIlieOkq8F/Zh2AnmoqViFaz2TPffjnjjCVmBq7if7GrhBz+fbX39AklBhhD3OSzNs9YH JMAwu3o+L9aLoRZbGY2kz0KcX1obp34zvLe9eBltuA90mgqL/gWdOpo9BYc/8X6+q+JMh4p8NH8xb bwwbxBcH5j9hiM/UVU9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q8j1R-004Njc-1X; Mon, 12 Jun 2023 14:59:57 +0000 Received: from mail-io1-f51.google.com ([209.85.166.51]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q8j1N-004NiT-2o; Mon, 12 Jun 2023 14:59:55 +0000 Received: by mail-io1-f51.google.com with SMTP id ca18e2360f4ac-77ae5865366so219598039f.0; Mon, 12 Jun 2023 07:59:52 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686581992; x=1689173992; 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=07dB69ZZGyTHxP/KSd9bxJ1LwTeCS3J4mCqoCOU8mcc=; b=NG9inoNGZFeMDqnjoaPgn8KCo4OjsRsBhzXrEGpQ9wksiPIxIP8VQPcBOMiZrYaCHj tUFRbU1qxKqEIws3mSeFaJtuc52kTXgWwcnapLaNY6AqK43Um+2E9eCIH1v953F8dK3P y2Nn8Wjt39nYql/l1VSu3QGYFG0n5uHp+gA8eux7PYNTIZ5jQ3tSxcrYQHAzGKkVuga+ Fd+klyyEqYNrQp6ILY7mwfvDPZ/daYAekA65iGZReh790Rmip6HQ9m48X7XtkgVQrHX/ nLu76Gm+z8rUy9it+b5oHIHhdQSLJGGqIw7+bEodkGZGAXLYYm69hlmpLUSkBOsCrLmd y3Vw== X-Gm-Message-State: AC+VfDyAGDcv2JDH7hlPRSCkBeWRRr9x+eoTfn1iqvxv8IUmaGcOrfnX 4WVr2lB3oyBvpVo5CYL0EQ== X-Google-Smtp-Source: ACHHUZ6KNQPN7jVXTXBkLnNdRrMFykMu72Ussv53FDlxV/WfKOF6aT/n3DU/YcGQQfoex66gY6aZAQ== X-Received: by 2002:a6b:a05:0:b0:777:b531:eb56 with SMTP id z5-20020a6b0a05000000b00777b531eb56mr8460626ioi.7.1686581992169; Mon, 12 Jun 2023 07:59:52 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id a24-20020a6b6618000000b00752f62cd3bdsm3260506ioc.12.2023.06.12.07.59.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Jun 2023 07:59:51 -0700 (PDT) Received: (nullmailer pid 39495 invoked by uid 1000); Mon, 12 Jun 2023 14:59:47 -0000 Date: Mon, 12 Jun 2023 08:59:47 -0600 From: Rob Herring To: Maksim Kiselev Cc: linux-iio@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Cristian Ciocaltea , Heiko Stuebner , Andy Shevchenko , Cosmin Tanislav , Hugo Villeneuve , Ulf Hansson , Arnd Bergmann , ChiaEn Wu , Ibrahim Tilki , ChiYuan Huang , Ramona Bolboaca , William Breathitt Gray , =?UTF-8?Q?Leonard_G=C3=B6hrs?= , Caleb Connolly , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org Subject: Re: [PATCH v5 2/3] dt-bindings: iio: adc: Add Allwinner D1/T113s/R329/T507 SoCs GPADC Message-ID: <20230612145947.GA37083-robh@kernel.org> References: <20230610202005.1118049-1-bigunclemax@gmail.com> <20230610202005.1118049-3-bigunclemax@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20230610202005.1118049-3-bigunclemax@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230612_075953_907417_78E2107C X-CRM114-Status: GOOD ( 18.00 ) X-BeenThere: linux-riscv@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-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org On Sat, Jun 10, 2023 at 11:19:49PM +0300, Maksim Kiselev wrote: > From: Maxim Kiselev > > Allwinner's D1/T113s/R329/T507 SoCs have a new general purpose ADC. > This ADC is the same for all of this SoCs. The only difference is > the number of available channels. > > Signed-off-by: Maxim Kiselev > --- > .../iio/adc/allwinner,sun20i-d1-gpadc.yaml | 91 +++++++++++++++++++ > 1 file changed, 91 insertions(+) > create mode 100644 Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml > > diff --git a/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml b/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml > new file mode 100644 > index 000000000000..43256ad2b7ed > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc.yaml > @@ -0,0 +1,91 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/iio/adc/allwinner,sun20i-d1-gpadc.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Allwinner D1 General Purpose ADC > + > +maintainers: > + - Maksim Kiselev > + > +properties: > + compatible: > + enum: > + - allwinner,sun20i-d1-gpadc > + > + "#io-channel-cells": > + const: 1 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 0 > + > + clocks: > + maxItems: 1 > + > + interrupts: > + maxItems: 1 > + > + reg: > + maxItems: 1 > + > + resets: > + maxItems: 1 > + > +patternProperties: > + "^channel@([0-15])$": 0-15? That's not how regex's work. Unit-addresses are in hex as well. "^channel@[0-9a-f]$" > + $ref: adc.yaml > + type: object > + description: > + Represents the internal channels of the ADC. > + > + properties: > + reg: > + items: > + minimum: 0 > + maximum: 15 > + > + required: > + - reg > + > + unevaluatedProperties: false > + > +required: > + - "#io-channel-cells" > + - clocks > + - compatible > + - interrupts > + - reg > + - resets > + > +additionalProperties: false > + > +examples: > + - | > + #include > + #include > + #include > + > + gpadc: adc@2009000 { > + compatible = "allwinner,sun20i-d1-gpadc"; > + reg = <0x2009000 0x1000>; > + clocks = <&ccu CLK_BUS_GPADC>; > + resets = <&ccu RST_BUS_GPADC>; > + interrupts = <73 IRQ_TYPE_LEVEL_HIGH>; > + #io-channel-cells = <1>; > + > + #address-cells = <1>; > + #size-cells = <0>; > + > + channel@0 { > + reg = <0>; > + }; > + > + channel@1 { > + reg = <1>; > + }; > + }; > +... > -- > 2.39.2 > _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv