From patchwork Fri Nov 19 19:14:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeny Boger X-Patchwork-Id: 12693145 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C204C433EF for ; Fri, 19 Nov 2021 19:18:20 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 1B01861AE2 for ; Fri, 19 Nov 2021 19:18:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1B01861AE2 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=wirenboard.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org 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: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:In-Reply-To:References: List-Owner; bh=LD9xIiZNWwXzY4sc5jnjQt5KRjDPJ7DKTi55vGxR7iw=; b=Np54OjAzGpHx/7 UzZ0y6Evt86gIHypCesSL7s3PzQbJFBrH1mVSh0Bzufnwox2uuHhGOt/Do77ohSR5l+HFJpPcEDds FlQFtxykfYKNnnT/gzYRztMnzQPU2aWW5yiyvOSsw+zykSeltBad6c0S12fODFVb5G35vjw+YluKe k7TppBwH3wf3wVi24ng9QtrrmFnwuh0/cczQD3qsPPMXEQKGsHLjUtGXB4iB9/ixD0Usl/BFMLYz7 69u66KUsB6V9NHZL7HmBMIMzdbtBFbvCqGBrxtBNCJiIysXge+BkU4AtAQn4fSCWWHPFE2hL3DBdr AEaOynwPuxPuyGyd2iLw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mo9MZ-00BQIR-S4; Fri, 19 Nov 2021 19:15:57 +0000 Received: from mail-lf1-x12b.google.com ([2a00:1450:4864:20::12b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mo9Ls-00BQ94-Ji for linux-arm-kernel@lists.infradead.org; Fri, 19 Nov 2021 19:15:14 +0000 Received: by mail-lf1-x12b.google.com with SMTP id b1so47395921lfs.13 for ; Fri, 19 Nov 2021 11:15:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wirenboard-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Fqxb394vIKMSYz+aT45wHm3mEL5MPXqOdma49Y8VwaY=; b=iJwB34nqy9HG3nya5j2s0nxBhaPCZreKD+ipuWoSvcocEoMrzp7J3medTjaLSIUKy1 EM6aG7L3/0L0zF3nDSdkJBN2FZYJVjblPE6YIRA2BBM0tPT1XNRK2Xg/wGqClE+F69Dr FmzGu0ZjgiIVEdFs0Bcbo1YZk2D2HzYuhB1JcLqpDdEMMSgq/ZdN11MU58vrg6rlAJR9 CkPLg6rVLTwBUwgAIeZg9HrByDmz63E5gg/ZFYbb7FwfY8ARQk7HJdVbAoxaupYQjeXK 5nTHsMq9NGVxNtXyWaMSgPQkcSnT7FGriSPJ0EY8fYNDtQxCNghqESSIOinJPBZ255/a W1KQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Fqxb394vIKMSYz+aT45wHm3mEL5MPXqOdma49Y8VwaY=; b=gRuUkviEgJ6QsXTAL/MONYxsnTxQdznMpTH5gC9tARrxNDZ9Wod7Zu35WjtNWazLjD WqO91cGiKiaLbiKhh163ta99JOKNWhN/C3XPuPjBwKlVRTYECNvPaK4Eq8xQg7rnh2Ap U1HYAlMW225FvfwmJCkJYU+AC77yPErOxodjApg29jrVri3LUGaWLAWUMqrQW4MHJfYr k0Td8b3YqRWZ4DTXoYvkorwddbRYAhfFbpIGAGMkYzUC9zfzv9Qc4AezUIMHixK+uY84 wGIboOBvNDdZxRzyanTsoD6NOnBAYu4fY62micl9QotB2hl1w5+sECjYbQ+p7atPmRcD IOqQ== X-Gm-Message-State: AOAM530FjMp3HUCaPcHK3p0N1+wjPxVQJco5F3kuHuVGBhgCEM4qx5cs t7aozevjlT3LiEfLNAdHg18ldA== X-Google-Smtp-Source: ABdhPJxnPfmlGPFS7PZT7SrKD0sk9fMrMtpuLsj88vaOYKm8D4yhTPMhA8hmZgGgsI5hfat0icJE0Q== X-Received: by 2002:ac2:55a5:: with SMTP id y5mr34563844lfg.468.1637349310045; Fri, 19 Nov 2021 11:15:10 -0800 (PST) Received: from boger-laptop.lan (81.5.99.121.dhcp.mipt-telecom.ru. [81.5.99.121]) by smtp.gmail.com with ESMTPSA id d4sm67676lfg.153.2021.11.19.11.15.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Nov 2021 11:15:09 -0800 (PST) From: Evgeny Boger To: Chen-Yu Tsai , linux-sunxi@lists.linux.dev, Maxime Ripard Cc: Evgeny Boger , Lee Jones , Rob Herring , devicetree@vger.kernel.org, Jernej Skrabec , linux-arm-kernel@lists.infradead.org Subject: [PATCH 0/3] Enable RTP (GPADC) controller on Allwinner R40 Date: Fri, 19 Nov 2021 22:14:53 +0300 Message-Id: <20211119191456.510435-1-boger@wirenboard.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211119_111512_762916_A6D686D1 X-CRM114-Status: UNSURE ( 9.77 ) 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 R40 SoC has touchscreen controller also serving as general-purpose ADC. The hardware is very similar to A31, except that R40 has separate calibrated thermal sensor IP, so temperature sensing channel in RTP is not documented and is not to be used. Evgeny Boger (3): iio: adc: sun4i-gpadc-iio: no temp sensor on R40 dt-bindings: iio: adc: new compatible for Allwinner R40 RTP controller ARM: dts: sun8i: r40: add rtp node .../bindings/mfd/allwinner,sun4i-a10-ts.yaml | 1 + arch/arm/boot/dts/sun8i-r40.dtsi | 8 +++++ drivers/iio/adc/sun4i-gpadc-iio.c | 32 ++++++++++++++----- drivers/mfd/sun4i-gpadc.c | 17 ++++++++++ 4 files changed, 50 insertions(+), 8 deletions(-)