Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3482611rwd; Sat, 10 Jun 2023 08:26:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Fa3rgYG69vCtmjXqAMI2/w+ILgmI6nEhJBL8au6sbxnF+UtxE203ZR7kNOoRHUuZNlVuE X-Received: by 2002:a05:6a20:12cd:b0:10b:1c14:688f with SMTP id v13-20020a056a2012cd00b0010b1c14688fmr5234375pzg.13.1686410774909; Sat, 10 Jun 2023 08:26:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686410774; cv=none; d=google.com; s=arc-20160816; b=P+3XOmGQ7yy3WDfYhdmTbYI/X0sUImP1UDdXC09noNOAIw32T/cb6q7/WbVhcMzv65 tkP09yRO0lOud8JNqycsBWqA0G097/N/qUARjEPa0fRpw23m2QQvigOciCW87nezjp4/ F9JKvNAGxTPzmnBKn1hfWy12EbjtdnyhsPLezcioiZVtL5Pv9/L353Vgw41OLM8fgsMo K+bMnXolUxwDDBDObsh4vbqVZ8tpTpJteeIwreVu2utNqqFGeWROqnNHwLWSXqTRZfGD dIudG5S3z7xcoKm1wnxWvQPXCkJWnhSPSHVGM0eOQLcZmvPz5dTi7lIX+XM2rxbtlF51 lEyg== 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:dkim-signature; bh=nBDtCSED3/eGnbc0TXhdTsKsOqO3+ndHrVQc8ZXl0fQ=; b=SSWQvnzpq2hR7koImy+lV5CEumsAdOyBgqM6jqsU2ZPbAua8swrOCdZAWjNaVqInE1 ij2HDR9OxWLfKe4UV18cahlxwiMsXNmJGWi95BzC0mk7Xe4/34SK5XlPB+rR6jw69yLU F9b21dg31JQVD8mq1+klY6h4X/cazP4lnSUiqgdw/lnBknqLqIRiW0k6ySle41CYYOwZ 2uO4xK+TxBB+N/hYrdg8y+CrfyRqPCFtiwsea3TlBNsYhd3E0nVqk0L43TkAUyvQrSR1 JN6NYUqHFs16WPTgXAK9STvP2r5B7OKIrMhRHsZWLkUieye3dvRjjNrJjRft2ABi6A// 9Yzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mFMmIFLq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w2-20020a637b02000000b005440e979e59si4247856pgc.828.2023.06.10.08.25.58; Sat, 10 Jun 2023 08:26:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=mFMmIFLq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232753AbjFJPGs (ORCPT + 99 others); Sat, 10 Jun 2023 11:06:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231961AbjFJPGr (ORCPT ); Sat, 10 Jun 2023 11:06:47 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DBCC23588; Sat, 10 Jun 2023 08:06:45 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6DC1761044; Sat, 10 Jun 2023 15:06:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77077C433D2; Sat, 10 Jun 2023 15:06:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1686409604; bh=U1kzKQLjBw3U2CaamkV1OihnciwYdzX6lEiWfiY9w9g=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=mFMmIFLq9D+Je2P4zOq9Qj7TXnerOZE+WOuFadpjtM9DJ4TYvr6yTHF029wKeDHYJ +VBXfC49Fg/P9rLKNCAqwr0Rl5ZbfP4RCJiSdX8KdtbpigM56PcwtXfas50SkoWObJ qVT5XVDA9aut86TydiQr3HUPR7RKLYwENN5DSMI96yEi8iHEfkh9qtnKI3Ebv+ip/R Q0CppC9gNDs0YQGA3YmW3qIGu1UZuKFwqFtytAlnbeie5oatbqDGGl++nk5AHT/PRw SW4qw/cqIo1qxOgm82LFoxTTGk+zwIRvN4HNJA/Tqgh1aq6Y/rrHyrnB+S04S6wXeM j5rBdXyTfBalQ== Date: Sat, 10 Jun 2023 16:06:35 +0100 From: Conor Dooley To: Maksim Kiselev Cc: linux-iio@vger.kernel.org, Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Cristian Ciocaltea , Greg Kroah-Hartman , Andy Shevchenko , Cosmin Tanislav , Ulf Hansson , Arnd Bergmann , Hugo Villeneuve , William Breathitt Gray , ChiYuan Huang , Ramona Bolboaca , Ibrahim Tilki , Caleb Connolly , ChiaEn Wu , Haibo Chen , Leonard =?iso-8859-1?Q?G=F6hrs?= , 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 v4 2/3] dt-bindings: iio: adc: Add Allwinner D1/T113s/R329/T507 SoCs GPADC Message-ID: <20230610-ranged-outboard-2aaa0cc36cbd@spud> References: <20230610122934.953106-1-bigunclemax@gmail.com> <20230610122934.953106-3-bigunclemax@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="wh79gADhzXBzQ9SW" Content-Disposition: inline In-Reply-To: <20230610122934.953106-3-bigunclemax@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --wh79gADhzXBzQ9SW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hey, On Sat, Jun 10, 2023 at 03:29:08PM +0300, Maksim Kiselev wrote: > From: Maxim Kiselev >=20 > 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. >=20 > 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,s= un20i-d1-gpadc.yaml >=20 > diff --git a/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d= 1-gpadc.yaml b/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d= 1-gpadc.yaml > new file mode 100644 > index 000000000000..2b59844b7c07 > --- /dev/null > +++ b/Documentation/devicetree/bindings/iio/adc/allwinner,sun20i-d1-gpadc= =2Eyaml > @@ -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.yam= l# > +$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])$": > + $ref: adc.yaml > + type: object > + description: > + Represents the internal channels of the ADC. > + > + properties: > + reg: > + items: > + minimum: 0 > + maximum: 15 > + > + required: > + - reg > + > + additionalProperties: false > + > +required: > + - "#io-channel-cells" > + - clocks > + - compatible > + - interrupts > + - reg > + - resets > + > +unevaluatedProperties: false How come this one changed to unevaluatedProperties: false? Wasn't it for the ADC that we previously discussed whether additionalProperties: false was correct or not? Cheers, Conor. > + > +examples: > + - | > + #include > + #include > + #include > + > + gpadc: adc@2009000 { > + compatible =3D "allwinner,sun20i-d1-gpadc"; > + reg =3D <0x2009000 0x1000>; > + clocks =3D <&ccu CLK_BUS_GPADC>; > + resets =3D <&ccu RST_BUS_GPADC>; > + interrupts =3D <73 IRQ_TYPE_LEVEL_HIGH>; > + #io-channel-cells =3D <1>; > + > + #address-cells =3D <1>; > + #size-cells =3D <0>; > + > + channel@0 { > + reg =3D <0>; > + }; > + > + channel@1 { > + reg =3D <1>; > + }; > + }; > +... > --=20 > 2.39.2 >=20 --wh79gADhzXBzQ9SW Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCZISRewAKCRB4tDGHoIJi 0t7lAQC3g8izalvV17+LOkuzC99K8K7gGKPcCDEWGDZSOQmmcgD+PmIbXH+W/Zd3 WmLf5srpovGreGR+T+Diold6TDIk4ws= =rCnq -----END PGP SIGNATURE----- --wh79gADhzXBzQ9SW--