Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6634462rwd; Mon, 19 Jun 2023 09:56:25 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5odvz71en+085EB2dvrgJB9mfd9Kig5kGVHYS53Cp0moECKUyLVC92gKs8s9VTnk5qiZZG X-Received: by 2002:a05:6a00:1891:b0:666:b0fb:fa8c with SMTP id x17-20020a056a00189100b00666b0fbfa8cmr15756207pfh.3.1687193784322; Mon, 19 Jun 2023 09:56:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687193784; cv=none; d=google.com; s=arc-20160816; b=Ff0Jqj6/hyTgG4zRQjEp6Bbp9cPU7fLbBaVqoiCFIcrKWfMv8/3ERfgxbjVwJqOXj1 2DBvBz+1grgJaPMy6rWgik0RRaecq/Zfcl+fjXB2CdSphukA/n3NsDFJYOuwM625MWhl 82ONpxHul/dw5LH/Fqc6ZlFlR4vvP/b7OL0SwPaDm7DcM0VAOT79GA6JPQmZCVQ4HBEx pQDlEFvFjQemqQCGdnOrkUWdm4XXiAW7O8HjX3E1FKHdf9y+p+yYbhjZrBM2eZsrHNMm XtyQQyXBtTs4EAe0OvbFG7lKbn8V3+E9dG0ec9DcpPAPqJAiZBe/RTR+j9byuo3TGCj/ hXhw== 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:date:subject:cc:to:from :dkim-signature; bh=aL5sq5Lugahi7hv9X9W+s9NTZzWQgnxxieVUqmZWN4k=; b=sG9FqTwapgTiZZUzLGZmIX0SqT1T+MFxGASfzCLuaMhT04jegNDx7erqn6II6FbWXd BVrCQVgjYJuT1BTrPYHOAayMW1WqHzJHwgGFhgO5pEDI3ZLyfjqBAMoHfyxHSvHo0vaU J93/x7hMDYA/ak8Q6X/m+A8aA8yixTvG7CHbOUo4te2dFFOC1/TluGdJWL9aL3SVDjMh UPZLNY/cKcSAGwgwBEkKcY/nEWyKZ/h7e3HH2gD3FTp9kBUNvn0zNjDgOC8Cgn3jneVc 6crTY7IhJWx2S8OFj7WU7guehxOlSLSHENBEKXnFFKw0BozjI8oPAUXxpup/z+w5a2WV RQgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=VlMXwrYD; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k5-20020aa79985000000b00666e788d8fcsi1403312pfh.57.2023.06.19.09.56.01; Mon, 19 Jun 2023 09:56:24 -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=@gmail.com header.s=20221208 header.b=VlMXwrYD; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231976AbjFSPoX (ORCPT + 99 others); Mon, 19 Jun 2023 11:44:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231944AbjFSPoV (ORCPT ); Mon, 19 Jun 2023 11:44:21 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0739D139; Mon, 19 Jun 2023 08:44:18 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-4f865f0e16cso2696190e87.3; Mon, 19 Jun 2023 08:44:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687189456; x=1689781456; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=aL5sq5Lugahi7hv9X9W+s9NTZzWQgnxxieVUqmZWN4k=; b=VlMXwrYDrcRTxXvQ1Ol2PWCQ2fyrtvbAqE/t+vlPR8747qVBGnU5d9Tv/hKHVIuXJA 7SaDhGQx5zaACLBAc2UyuvIFoyMZJSERYb4Nu+OOUxbKKViBqRmJ5lb8tibqiWq//7xV ajhMtYeXWaV0YPrvL0SWxYanEs8/7JT5gxpCbIqjZtrQ1oBBm/VycFQRjMcMZsK/U5+F jJT0lpx4HrEPZJDYZH9PZzRtZPb25jnF1WjgL/V08hsoN08ppO/WBak4mHw6Mo+OkPtU C7CXB394fmNmkMvPB6p2PS96XcTYrmlpCtwoqpTk8N1VxqD5fBrZQ7GbyULFHIA/4wTz O0rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687189456; x=1689781456; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aL5sq5Lugahi7hv9X9W+s9NTZzWQgnxxieVUqmZWN4k=; b=cyuZ82ObLn0QwTuvimWYfaWx/ZQkGIP9asVuntMKH/mRa3t1yzVlt7wva2cPAq0R1h 0guxRZ2NiNo+m4tbnY4LmmLY+dTE8kdp8bSKyShPJithf2ErH9Xun33N59fzz2oKv+ys RxrZKq7yr7TscOtiXw9Ht4cBTuMvNVujnpqHVN5x7eWV/a7IANb7C/z8ANtTU35Qx0Qx Hrk4ciW3LuOMegnd60EUbvOgX6sGmpzdze44n0asls+V6psRurJQQW7VRMOrVwoH/qiB No67+2lzrIKdH/cqALdi5LQ1A/lnpukSrsw5hcF5G9vHrs4QsUp9U8Nyg0J22Kgo0wAv VECQ== X-Gm-Message-State: AC+VfDzRbCuXu+llbLqgU7yUK4692ViUhggIBKhwooao3WzRISKXTsj3 VFh9hCflmm822B1eNO5cZiFfuan0JcYhXoiS X-Received: by 2002:a19:790a:0:b0:4f8:417b:c752 with SMTP id u10-20020a19790a000000b004f8417bc752mr5353354lfc.44.1687189455711; Mon, 19 Jun 2023 08:44:15 -0700 (PDT) Received: from user-PC.. ([178.134.198.138]) by smtp.gmail.com with ESMTPSA id f11-20020a19ae0b000000b004f85e53250bsm1207144lfc.191.2023.06.19.08.44.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 08:44:15 -0700 (PDT) From: Maksim Kiselev To: linux-iio@vger.kernel.org Cc: Maksim Kiselev , Conor Dooley , 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 , Andy Shevchenko , Cosmin Tanislav , =?UTF-8?q?Leonard=20G=C3=B6hrs?= , ChiaEn Wu , ChiYuan Huang , Ramona Bolboaca , Ibrahim Tilki , William Breathitt Gray , Arnd Bergmann , Haibo Chen , Quentin Schulz , Maxime Ripard , 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: [PATCH v8 3/4] dt-bindings: iio: adc: Add Allwinner D1/T113s/R329/T507 SoCs GPADC Date: Mon, 19 Jun 2023 18:42:26 +0300 Message-Id: <20230619154252.3951913-4-bigunclemax@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230619154252.3951913-1-bigunclemax@gmail.com> References: <20230619154252.3951913-1-bigunclemax@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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. Reviewed-by: Conor Dooley Signed-off-by: Maksim 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..7ef46c90ebc8 --- /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-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 0x400>; + 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