Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5436934rwd; Wed, 24 May 2023 01:32:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4Ywes2PcSQo+U1HgEA8HIM0fq+youJJONxTmVSSzq0F7siZoCnmvXIY5xOtk6euPI5nyUf X-Received: by 2002:a17:902:e746:b0:1af:bbfd:1c07 with SMTP id p6-20020a170902e74600b001afbbfd1c07mr8341573plf.57.1684917174779; Wed, 24 May 2023 01:32:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684917174; cv=none; d=google.com; s=arc-20160816; b=uN+YME0GsBg0LuQ9bH4PbEVZbAgkASAE6qvX2h+h23ypMquvykh9gBfQoUx4sSGsIT XetDTh3HYeXLNquv3QbJBYdXwYMpGlhWFzqI9wJD/cuLcUPUJDZaDFHvzvNj2E92PG+t f36KaBXGa0mrfOIFDu2jpf+3KjXfOBVTLos8zGq4RapQtxWNiTeP1iM5Q9yThX5BJHY4 TvtJaMMBvZSlsPNqnHEgVmRnsGzh3W0HIoLYobx4yT1vIZlsAQed77EFxNvpj0+6bHp9 D2+ztD1dxAYeL7/CoB1RaqFyvOZvYLF3NiSwrUwIZ4IylgKmORK+KGOVQB+29DrvNL7Z GaqA== 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=odFoqtaACFFyMrXmxlrRHYMZnaIGXqlcjA/Yeo/eMSM=; b=oDPrm1TaL8tzDWgMJUCbni/mb1yTxOlzVnsIPm1oBtvSHnHduSAr544GBYCiJdfraq Ptv5BOnPfjBawdE17UE80bRYROfX7wmf7dZDtKqMAaGtBjq/1FRWsmcb9b2uPDbvQNjM t+pqdeyFPndyAXVBjPe7bwPNZC1uFCG2yqis06RAgMfxv30U5LDFsz+5/qQZtkxun19b 8yadEc1CyHp+oh7cciZe8x7MO37zkJOghu+jRmJJIxdEokfLnF/DkIOvx+yMpyYBkDxe v8nQFZ9HdVJOTMCvwTtwLBhI081RzMOexMQYW5b2zGbW/2CioK528UUP9woqKglenRb2 phHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b="Mvd/veDy"; 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 a10-20020a170902ee8a00b001ac75cbde64si3113408pld.622.2023.05.24.01.32.40; Wed, 24 May 2023 01:32:54 -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="Mvd/veDy"; 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 S240116AbjEXI3H (ORCPT + 99 others); Wed, 24 May 2023 04:29:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239027AbjEXI3E (ORCPT ); Wed, 24 May 2023 04:29:04 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7ECF132; Wed, 24 May 2023 01:28:50 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4f3b9755961so582113e87.0; Wed, 24 May 2023 01:28:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684916928; x=1687508928; 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=odFoqtaACFFyMrXmxlrRHYMZnaIGXqlcjA/Yeo/eMSM=; b=Mvd/veDyjuxX8uDcTR8PI4Xqf4ovhcjx5jyKNU3IYsLv4K4TWPiwQuH7PXLRUsd1lc FyfsPiUqwOq7sGQfZ10bL3H78meCp0oJsj12w7ytR5d0mG3wDlkzIA9amxl0LHWmdIa0 nXTGfbb9SYE29Q/mKKsF9fX2N4Xee3qGLqoiTf3mpGpaRyyJf2VzepfVXB0Fj6tjE84u Wre8p0Iu75GJoNJ32N0Rhj8avsw8FRrCTbcV0NFk4oNtz1jQj3MslC3Ps8lUxtC0cQd/ 6c9GVZxKAzA3NmOekitk+/TRT6AuwtmWI3YkDMpKlpGigNvSnPkbhU9lCm7b0LEp42gX ThBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684916928; x=1687508928; 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=odFoqtaACFFyMrXmxlrRHYMZnaIGXqlcjA/Yeo/eMSM=; b=EC5jYU7NWyXxMSRi3jOSknkrmtqpEzRJGFF8nYPx6OOXKZ609kEhSeCWzGDgmJHAlJ LYD4XkPZL5BJGc3H705KVioQwymuP312VAEM08ogOZ2gKifxWzHqiPsPFU6Vli6iSecd fe2/Ux+6BTBjk6U8vUR5hQSt4xehG2mYwdxNzrxSPS7OkbhmF4iWGiN69VH6tzPglg8r 5r2ZOGC5L+qlwKL/8SRdStp0qTaOAVmAIxRdHhvoy1lxOX8n1qVXGp15TmbAPxy+lOfy KJa41/OGFDiN4Dj+Gwgu0DiHYUgMru1hihjFPavW7AH78AIehA1tPkF9X5hc+PyaFNQ+ 8rRQ== X-Gm-Message-State: AC+VfDzas8pptdGBS0JOkFHIXkudCHxX4hU47giKwPu6Ghhb7+aTiqB2 0bHcueyd7jMqkLKbdFap5vfVlJEAOkSvpMUw X-Received: by 2002:ac2:596a:0:b0:4f1:3ae6:20bf with SMTP id h10-20020ac2596a000000b004f13ae620bfmr5776396lfp.1.1684916928480; Wed, 24 May 2023 01:28:48 -0700 (PDT) Received: from pc.. (mail.pulsar-telecom.ru. [94.181.180.60]) by smtp.googlemail.com with ESMTPSA id c18-20020a197612000000b004f378fbb358sm1614049lff.112.2023.05.24.01.28.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 01:28:48 -0700 (PDT) From: Maxim Kiselev To: linux-iio@vger.kernel.org Cc: Maxim Kiselev , Jonathan Cameron , Lars-Peter Clausen , Rob Herring , Krzysztof Kozlowski , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Conor Dooley , Paul Walmsley , Palmer Dabbelt , Albert Ou , Philipp Zabel , Heiko Stuebner , Andre Przywara , Andy Shevchenko , Cosmin Tanislav , Marcus Folkesson , Alexander Sverdlin , Arnd Bergmann , Hugo Villeneuve , Mike Looijmans , ChiYuan Huang , Ramona Bolboaca , Ibrahim Tilki , ChiaEn Wu , William Breathitt Gray , Caleb Connolly , Haibo Chen , =?UTF-8?q?Leonard=20G=C3=B6hrs?= , 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: [RFC PATCH v1 4/4] riscv: dts: allwinner: d1: Add GPADC node Date: Wed, 24 May 2023 11:27:33 +0300 Message-Id: <20230524082744.3215427-5-bigunclemax@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230524082744.3215427-1-bigunclemax@gmail.com> References: <20230524082744.3215427-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 This patch adds declaration of the general purpose ADC with two channel for D1 SoC. Signed-off-by: Maxim Kiselev --- arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi b/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi index 97e7cbb32597..b21825429cca 100644 --- a/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi +++ b/arch/riscv/boot/dts/allwinner/sun20i-d1.dtsi @@ -6,6 +6,16 @@ / { soc { + gpadc: adc@2009000 { + compatible = "allwinner,sun20i-d1-gpadc"; + reg = <0x2009000 0x1000>; + clocks = <&ccu CLK_BUS_GPADC>; + resets = <&ccu RST_BUS_GPADC>; + interrupts = ; + status = "disabled"; + #io-channel-cells = <0>; + }; + lradc: keys@2009800 { compatible = "allwinner,sun20i-d1-lradc", "allwinner,sun50i-r329-lradc"; -- 2.39.2