From patchwork Sun Jun 4 18:53:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maksim Kiselev X-Patchwork-Id: 13266727 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 B78A4C77B73 for ; Sun, 4 Jun 2023 18:55:47 +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:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=9ONLZR+Nyrvmw2/qgVyrGDUZcQCXLGVi2WbieVwAmnY=; b=IwK/LsozYxatBM XYP3rhbYkSWFGo0hZySGOz5pHxT4a+rp+OxP0dhfgDDsc7FZQ3uGUgiJuIaF7t7IM5+m8pVIBqLi6 CIjTu7Aiu/iiOOAH1/1ACaiM6bC7Z4COyA7kIsnu5v9gC/+O1meHQZSuejGrogL0oC67EIxxqV/r6 NbNDvJokGt/n9YARUU1nHo6fUi0TjO1VKzJW4K42jCySHY55omejxSMHr7lq0W+CxE9Xu0OuuWW9z 3pLI19+FRd2F7f2GR3RetxNwWjxahVXEY0XTMRztnl+DN6TJAOLHUhjtvpSp9I375ynGDxY/OXFlB InetrnLDxGzhBgLO3bjA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1q5sso-00Co2A-2x; Sun, 04 Jun 2023 18:55:18 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1q5ssm-00Co0O-21; Sun, 04 Jun 2023 18:55:18 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3f6e13940daso41504455e9.0; Sun, 04 Jun 2023 11:55:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685904915; x=1688496915; 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=9/TmEA+PoC7xu6/KU/ll32pvJQ2ck1CrGNuRyF6FIV0=; b=h5sKFEV8TA0OBcHdACbXty9PxKz8jgUpGUFbiy/GvEKjYur0hVmD+06SUCGLY2yHn3 wHrmRZK1WNIdgSk5SS6PxT6kyriDte832Ogpjw6YI/1Su2MZrTtdLePKdfidrymZBSIC 0RxemvtGNmqSZC4pe6IFvElKtRIapasNwQJqi6FS4I93LoK3wdw/uMn/AGaUAq2Kkmb0 LMSDKc8O1QhhA8l+6CJf6kXCkrblhF5GuqRf0ednu15Ipzaju3PIIg0Mc4Xti0Bz5SRH v6r/EYkQGmGJaArsU5mnlErTUArViEoFOXVyEoX+YBqurbPADpdfhHiIqnHr5t9go+PI R9eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685904915; x=1688496915; 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=9/TmEA+PoC7xu6/KU/ll32pvJQ2ck1CrGNuRyF6FIV0=; b=GX6iZVb7hhwLvS9fziSfUIegxfwQAtJBCn/aW4zd2c3Zzamz8kxXVmOFdoNcG7WDa4 BcuHt3C6gvVTTrXkGiwtjjVpwM1YI0rigL9NvTXazNC89BDGvZ9D/sVfEK9vu19uBaih uhq1Wd0Xt63wlwmgznEdpvYvrIwONW4oYNfWxb+yvpLbVle+a5OEF9lQFP4OvPsdnJ0G aAoCxtnryNsaMLwOIYEdENap4FsFGBzjRQ/ZedAPtlDElgOh2duxpdItGgoKiMQCIOb7 u1B0MWLk7JbZy8Kvo7A4o5FUltQxEEsOsb45Gw+HgWM+RZsSEUI34y5x8TKSOt2SDkWp 6b6g== X-Gm-Message-State: AC+VfDwT99vgC3u3Tk0FCPBgyhNcIcnWK0R9i1jLOndDEXa43Z8yJaQN 6fZ1nmiYpRhJwRNUVc03gzE= X-Google-Smtp-Source: ACHHUZ6QHdcEGqIc3K5pPlZKWdJlxj3Jk7ECCuHaBZpxT2c/x9Cv/yIBXAYPcu1w8wPaqG+imTMVYQ== X-Received: by 2002:adf:fb42:0:b0:306:2ef0:d223 with SMTP id c2-20020adffb42000000b003062ef0d223mr4541453wrs.62.1685904914549; Sun, 04 Jun 2023 11:55:14 -0700 (PDT) Received: from user-PC.. ([178.134.198.138]) by smtp.gmail.com with ESMTPSA id l8-20020a5d4108000000b00304adbeeabbsm7636433wrp.99.2023.06.04.11.55.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Jun 2023 11:55:14 -0700 (PDT) From: Maksim Kiselev To: linux-iio@vger.kernel.org Cc: Maxim Kiselev , 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 , Arnd Bergmann , =?utf-8?q?Leonard_G=C3=B6hrs?= , ChiYuan Huang , Ramona Bolboaca , Ibrahim Tilki , ChiaEn Wu , William Breathitt Gray , Haibo Chen , Hugo Villeneuve , 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 v3 3/3] riscv: dts: allwinner: d1: Add GPADC node Date: Sun, 4 Jun 2023 21:53:16 +0300 Message-Id: <20230604185336.1943889-4-bigunclemax@gmail.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230604185336.1943889-1-bigunclemax@gmail.com> References: <20230604185336.1943889-1-bigunclemax@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230604_115516_668670_18CA8CDF X-CRM114-Status: UNSURE ( 9.98 ) X-CRM114-Notice: Please train this message. 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org From: Maxim Kiselev This patch adds declaration of the general purpose ADC for D1 and T113s SoCs. Signed-off-by: Maxim Kiselev --- arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi index 922e8e0e2c09..90c79041cfba 100644 --- a/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi +++ b/arch/riscv/boot/dts/allwinner/sunxi-d1s-t113.dtsi @@ -138,6 +138,16 @@ ccu: clock-controller@2001000 { #reset-cells = <1>; }; + 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 = <1>; + }; + dmic: dmic@2031000 { compatible = "allwinner,sun20i-d1-dmic", "allwinner,sun50i-h6-dmic";