From patchwork Wed May 24 08:27:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maksim Kiselev X-Patchwork-Id: 13253450 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1012EC77B7A for ; Wed, 24 May 2023 08:28:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233725AbjEXI2w (ORCPT ); Wed, 24 May 2023 04:28:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40620 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240067AbjEXI2u (ORCPT ); Wed, 24 May 2023 04:28:50 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D97C135; Wed, 24 May 2023 01:28:37 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f3b5881734so591112e87.0; Wed, 24 May 2023 01:28:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684916915; x=1687508915; 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=j3ShG8niWENBdEZ1rwxaaLlhweWqDlNMQKSkikRPmcw=; b=YSChDKRWS6Imw1L0SeB0IN6ZuM+a/H/oZ9Dr2NBh8Z3CYULLmn3sKhuyvZ4Tq1uXiB zeCRhi/rmvG0Cy3xXJru0pCR9BDM1JpS7dakQIrY+ocdIHdWwLJMTRbKdo+cXDdcA0vA 8Y160G8RlYOxsUBYwoSDVLppHrG8SJ+BQFb1Lk5amAtVRzIFEhNcyR8EIApjB5qnwx92 2zqb2AZeLegtoXywRVYy4nZnklQ7BXaotneUPeAHSJGjeJyOnsP0JvyI15xaXkOKSF1J 4T76Cj6EKqyHICQzEJJNwU7Il+vyNyd/7lZWvWQ+ig7xb9TFEzjRhmw3KpU7uqAvxLA+ dgHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684916915; x=1687508915; 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=j3ShG8niWENBdEZ1rwxaaLlhweWqDlNMQKSkikRPmcw=; b=AFBkzX2pZWvmL/FRc9e3XcaS3aUrA/Fr11Ay3Yjqg0XZVWG6fx3xYvXg0sbHhcZB0q kEss7FzBehEpwFj8r9NHuCvNVEb9X6M+hBWIQgA8EHmLgW9Yn3GV55y7rurem5AfnfSK ww9vyeJ509+ZPjHeMA3AmiR2RLJU3e2PEEIP5H5jpTr7H2YP53B8caJiRAxQmi4crbz6 C1cL6T1FMuGtp8IjiGLcf8R8Vkg30LH2OXJ+qdHqu4nd+Cs/4SjJ7er/7nUk+Xl7yNQh JnFb1EzulAfFWsH/hV41BLinX40QWN4DV1owBWq0QGBZq18KSJ7Qlgbh1hEy7pTdP/bd 8Xcg== X-Gm-Message-State: AC+VfDzzCYwfWQhITgtbAzSraiE+vS2C0cpeb+pVTGeGVs961boABDJs tVIku4vqY63on8gPuR7M5XSgThOYWGJa3Iei X-Google-Smtp-Source: ACHHUZ7ERw8MQIwxgY0PwdFaFK9FxBnMmNFE63p+EPeuqhKlwikM0km3o8U8SsH82QTzyVLrEzpGCw== X-Received: by 2002:ac2:4a68:0:b0:4f4:b378:469d with SMTP id q8-20020ac24a68000000b004f4b378469dmr2500468lfp.41.1684916915157; Wed, 24 May 2023 01:28:35 -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.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 01:28:34 -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 , Andre Przywara , Andy Shevchenko , Cosmin Tanislav , ChiaEn Wu , Ramona Bolboaca , ChiYuan Huang , Ibrahim Tilki , Caleb Connolly , William Breathitt Gray , Arnd Bergmann , Mike Looijmans , =?utf-8?q?Leonard_G=C3=B6hrs?= , Haibo Chen , 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 3/4] ARM: dts: sun8i: t113s: Add GPADC node Date: Wed, 24 May 2023 11:27:32 +0300 Message-Id: <20230524082744.3215427-4-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 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org This patch adds declaration of the general purpose ADC with one channel for T113s SoC. Signed-off-by: Maxim Kiselev --- arch/arm/boot/dts/sun8i-t113s.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/arm/boot/dts/sun8i-t113s.dtsi b/arch/arm/boot/dts/sun8i-t113s.dtsi index 804aa197a24f..d269fdde330d 100644 --- a/arch/arm/boot/dts/sun8i-t113s.dtsi +++ b/arch/arm/boot/dts/sun8i-t113s.dtsi @@ -42,6 +42,18 @@ gic: interrupt-controller@1c81000 { #interrupt-cells = <3>; }; + soc { + gpadc: adc@2009000 { + compatible = "allwinner,sun8i-t113-gpadc"; + reg = <0x2009000 0x1000>; + clocks = <&ccu CLK_BUS_GPADC>; + resets = <&ccu RST_BUS_GPADC>; + interrupts = ; + status = "disabled"; + #io-channel-cells = <0>; + }; + }; + timer { compatible = "arm,armv7-timer"; interrupts = ,