From patchwork Mon Mar 4 11:12:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10837671 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DB6F51390 for ; Mon, 4 Mar 2019 11:12:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C558A2A04F for ; Mon, 4 Mar 2019 11:12:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B98832A056; Mon, 4 Mar 2019 11:12:48 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6118D2A04F for ; Mon, 4 Mar 2019 11:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=Ux4cl/ZT8N8OlKofrQCuN/igieAHCGT+7Ee9eUkysXI=; b=JViUbGoFYhakLe QKIQ5A+9QpwTXAIROBAzFqtAErngJw9tT/Xk/ucWkVk+S0sFEU5iImWLR3U3bVksybk1gM7E+SOmI APQhiP9I+xMQdw3z+Hfcz36jfp4amGB2EcGfnsv+RoY1Es3JCNbPmIdXlhruNBIEODPJwjxoY0It9 jUpr16BtHwDfRru9ZgixK86tO0rnh7UpAIGw0wiHjTrVMfr9mQw8iz4Cr9XZHu9LPVMy+ugU89d4y 9f9FvqQMhCtMYVp3hr24WKQ1YaHwh6F0EHg+QYsiPcMoIymEMG4pZCoymC35ue4yJm281pBFoWkQ7 r5d8l4yVHObwfpbB/22w==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0lWY-0004KG-SE; Mon, 04 Mar 2019 11:12:46 +0000 Received: from mail-wr1-x443.google.com ([2a00:1450:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0lWA-0003la-Ig for linux-amlogic@lists.infradead.org; Mon, 04 Mar 2019 11:12:24 +0000 Received: by mail-wr1-x443.google.com with SMTP id n2so5062116wrw.8 for ; Mon, 04 Mar 2019 03:12:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=huYYvdEpFxCFjP75DhKts6t3iRU+/ADtXiPr1UtrObc=; b=x3NyybdzJeZNmlrkI6b1h6t5/pU0Qvi5aheMzAZWqllJETTK6ngS23tCUgH9osrPxe w/o/zUgNwIs6x9JQlRsa2UoXcpN8mK1nzw4vYDxN9Ue2oS3+8F8DBXHZeCYhPgZEGkRz rDNgHobNe0eycGrwuHDyzfhFI90R4MuZ2sR9cqCYhV2C82nicP1JOsAh4ZNa1wPVPhId 8LPH6BqydtaF8uSs35hWwGW7D5rci0FS4dTxgIB0cHaMybLB4IWxnkjN3mdPRumXjcTS XmrF5R3DVEg+d1xMCci5o1vqeoTTUdBuMGj7bZpQxZOXmCrDdkv+3uMrQ1IWxxCVEfTg WkDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=huYYvdEpFxCFjP75DhKts6t3iRU+/ADtXiPr1UtrObc=; b=BTQCSEk9nvZEad4j7ifOBVqfYiGZL1kZyFliKzoSeaum7no1X8CTRsKFRAEoDaUIbk n0BrCEZH+pWZSe+rszYufQZU16A6ZFYPBlJgJoipb1pEFRk5OPgSU1KsvLfsHBZMGTqw evtFVxIK1BlPy72Tg7L/+jDbUlcvv8D3d9Nf/wz6mMMoytSPsfnkDmjXYhUl0ClwO0Ib pOfqNJWNtHKBqTrqEmFyXQWswzv4yMI/XPvsLqIxxntncrrHXxKeDIVY+xLGyLIzzsPq yRFY0LVNa1i2pZdFc92FpQ4dZYdemKcgCJzZiTWaT2EC/hM37LCY3LsblUVE4rJQr20k kt7A== X-Gm-Message-State: APjAAAXBaZ3UF1hGjwci3AhSeLI5NZYk868Ki9jSGhpcMwkVV6Jls3rc EqLg5ZKUwmW/ObE2rep9xtsNSQ== X-Google-Smtp-Source: APXvYqzzRcU1AKZO5QNzCT9OrAGawWovvqVZkdbXE6YzUzywV3OWLgRwpwFEt6fmVR1TUnXthT3qVQ== X-Received: by 2002:a05:6000:92:: with SMTP id m18mr12067852wrx.258.1551697940971; Mon, 04 Mar 2019 03:12:20 -0800 (PST) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id x22sm37727402wmc.19.2019.03.04.03.12.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Mar 2019 03:12:20 -0800 (PST) From: Neil Armstrong To: linux-iio@vger.kernel.org, martin.blumenstingl@googlemail.com, devicetree@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: iio: adc: document the Meson G12A support Date: Mon, 4 Mar 2019 12:12:16 +0100 Message-Id: <20190304111217.882-2-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190304111217.882-1-narmstrong@baylibre.com> References: <20190304111217.882-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190304_031222_641211_CC228928 X-CRM114-Status: GOOD ( 10.82 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Update the documentation to expicitly support the Meson-G12A SoC. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- .../devicetree/bindings/iio/adc/amlogic,meson-saradc.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt index 325090e43ce6..0d134e0ac600 100644 --- a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt +++ b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt @@ -9,6 +9,7 @@ Required properties: - "amlogic,meson-gxl-saradc" for GXL - "amlogic,meson-gxm-saradc" for GXM - "amlogic,meson-axg-saradc" for AXG + - "amlogic,meson-g12a-saradc" for AXG along with the generic "amlogic,meson-saradc" - reg: the physical base address and length of the registers - interrupts: the interrupt indicating end of sampling From patchwork Mon Mar 4 11:12:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Neil Armstrong X-Patchwork-Id: 10837673 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id ADB51180E for ; Mon, 4 Mar 2019 11:12:50 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 989E22A04F for ; Mon, 4 Mar 2019 11:12:50 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8D2962A056; Mon, 4 Mar 2019 11:12:50 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 45F612A04F for ; Mon, 4 Mar 2019 11:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=KRrz1Rc9KvdQQ5G6mmXjsKhGx61y9dbc8A/JBMAEwso=; b=Hdp3q5PTlv9pBQ Mcpixo+5LuO21Cr/9YvgYEQxTB+DTTJjHY/mzAyHEYQcwUT1s5HLyRqpkCuWmII5H90BAivQF10po xWAbf2IME+sbSDLk6jTuuqWlhhyubMBsCGwUg2Vc4p5Q6jQc58er+7SWXCsJd17s0lhIy8axQJOPr lrhx5v31Vn8N7UgIWEfARmyJx10mLZtkknE51SuX4jmQswIm6PhCO5aeEYxaKb7DFX915jfPh6sRU 3uLvX9mDyg0b77EC/HKKmQLdAEXCci71EByRHZI+u2oA9Vkf1SQUqZxKUe1LWgDDjHbDqh2gh2SNp GLCIk3wgOKemcyQc7dvw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0lWa-0004NF-Pv; Mon, 04 Mar 2019 11:12:48 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0lWB-0003lc-9m for linux-amlogic@lists.infradead.org; Mon, 04 Mar 2019 11:12:24 +0000 Received: by mail-wr1-x442.google.com with SMTP id i16so5050697wrs.13 for ; Mon, 04 Mar 2019 03:12:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=29+JarNtSND52EQLZlnqpXRyyJiGyLkKn9lDDFsMMB4=; b=YdiXJc8cRAqeCv8J+RHlZ6puNN9/J6lTpsJFiYBUnCudBL3psbPQB47MZ1f3iemln+ oOQ72RnRMswqih4jqdg1DVHC3EfDW5ZpDczTkNTrB0EWyKsiFSBKmm7lnWIPGU3MUzp+ VRKfjL+GYMj0Z4dsVd/0hH2Wq5zQhXRp2c16aD5B7N9wYbq77ZiJgiI49Yf/cw3M+IK2 N2Ey8Mig2YUC18D0MjMcJLV8dxE0ZsyyC/to5+QtgGQ9TMFIFeTwIZ+MqXKRdiN0JpfD los4P/84ecs0+PLG0YACpy2kss5Tu35DbReTYZKgq3kQAYjcQvIKjZKezhUuPZFy3m12 DOIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=29+JarNtSND52EQLZlnqpXRyyJiGyLkKn9lDDFsMMB4=; b=NWzRTYyDBptzRrkxCKYIl9Qs7HRV3Qhqc2Pd0r5uDpsvVVZsolM6kwEFB4ENK2DcuO zlmjRTHh38um4Gkl/TKkymsTadgcjupevRzjHjmvaGqYevBIUzXC/qGlZz6fLdka/o9H JHwzAsVFnueN4f4WHauZswklGyoqGWvQa93zXETCWz8biINjQEp+IIC6iQK/btEpCIDB 70xO6X3gEBDb+zfO7Yv/+YmUHFBkFFnRGDxt+Jf5D5WfdvlXsScUrpkhDBIg59ra8OvA XbOtiZNQLMC/mNqMBzAr+J2VRlXMaJFG5E7bxXZb/IbaKgS6lj8PLP38CfUHQeJLI5ur /oeA== X-Gm-Message-State: APjAAAXVZAtoMBDNkqsGc1QA/U/VhZ/LjgPWsPA1YR2A6m7im5ijU1fU V3SPDXiaXsJsevLyMbC7MGAddA== X-Google-Smtp-Source: APXvYqxbQX+BZojyycxMdhs/zf6GMatsLBsK9iSEUafPSHRpXwxVT1/2xUb3YQ6SlOTG/TXUXlWLBg== X-Received: by 2002:adf:ba84:: with SMTP id p4mr12416754wrg.156.1551697941865; Mon, 04 Mar 2019 03:12:21 -0800 (PST) Received: from bender.baylibre.local (lmontsouris-657-1-212-31.w90-63.abo.wanadoo.fr. [90.63.244.31]) by smtp.gmail.com with ESMTPSA id x22sm37727402wmc.19.2019.03.04.03.12.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 04 Mar 2019 03:12:21 -0800 (PST) From: Neil Armstrong To: linux-iio@vger.kernel.org, martin.blumenstingl@googlemail.com Subject: [PATCH 2/2] iio: adc: meson-saradc: add support for Meson G12A Date: Mon, 4 Mar 2019 12:12:17 +0100 Message-Id: <20190304111217.882-3-narmstrong@baylibre.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190304111217.882-1-narmstrong@baylibre.com> References: <20190304111217.882-1-narmstrong@baylibre.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190304_031223_335360_9DFAF131 X-CRM114-Status: GOOD ( 10.76 ) X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Neil Armstrong Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add the SAR ADC driver for the Amlogic Meson-G12A SoC. Signed-off-by: Neil Armstrong Reviewed-by: Martin Blumenstingl --- drivers/iio/adc/meson_saradc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index 729becb2d3d9..69aeb5c58a9f 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -1117,6 +1117,11 @@ static const struct meson_sar_adc_data meson_sar_adc_axg_data = { .name = "meson-axg-saradc", }; +static const struct meson_sar_adc_data meson_sar_adc_g12a_data = { + .param = &meson_sar_adc_gxl_param, + .name = "meson-g12a-saradc", +}; + static const struct of_device_id meson_sar_adc_of_match[] = { { .compatible = "amlogic,meson8-saradc", @@ -1142,6 +1147,9 @@ static const struct of_device_id meson_sar_adc_of_match[] = { }, { .compatible = "amlogic,meson-axg-saradc", .data = &meson_sar_adc_axg_data, + }, { + .compatible = "amlogic,meson-g12a-saradc", + .data = &meson_sar_adc_g12a_data, }, {}, };