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: 10837669 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 7059C1390 for ; Mon, 4 Mar 2019 11:12:38 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5A1F42A052 for ; Mon, 4 Mar 2019 11:12:38 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4E7162A057; Mon, 4 Mar 2019 11:12:38 +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 07EC02A052 for ; Mon, 4 Mar 2019 11:12:38 +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=/wi0wwIpbA9XdEuWvL6fTp6orA2zjGeWbrjEs4Vi4pY=; b=UsLxqv1GWo5CEI HI6M8ZQ6hvSl9dpKFjnzANnhWb44dWcQgK1DQyMZdAGYceKVdrMYZ88uL+TkJfYyBt5VrufX7vko9 /QEGRjO28g1o0vU7bU3vpT6n43hkwZOPUFt/Nm/9w8ZhW8a4IOF3cdgplZjBbF4ZFvGZiIOlxodMF Q4YCyrGYyu/DopYWB3C+LGMklyyAucnimTlDGx+2Wmze3VHYrBhFh9ecMSKfqRbq2J7nSJ6UWBAQS 9sXKV3atiF3ntpY2QiQsCVifL4mzGRYe46jQYOtQnBCt/LRdKaN0HtyvdQKuk+gQhV1nJHdU2g0sl ePnsevewpGzViHNUp/AA==; 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 1h0lWO-00042n-JG; Mon, 04 Mar 2019 11:12:36 +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 1h0lWA-0003lZ-Eq for linux-arm-kernel@lists.infradead.org; Mon, 04 Mar 2019 11:12:23 +0000 Received: by mail-wr1-x442.google.com with SMTP id i12so5076355wrw.0 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=F16n153MrHQk6wgCakZQH90rI3hu2sBMc02Svlhy7zKG/KKsWcFt7zOmdyHRulXjA1 3yQxqfugeuqiyBxgXWuJDhtLBA4CceUi1s1MzyMWalqqPJOam9LrUPPD8rpiND9IkZlZ Smhktdr1Oslo2iSdMvN9h77kkzypv/Gft8FM6zHdK5BLg+geJ8EqiREAPacBNsZqr8TV aF8Vr86CFWyHrVq88+bXnHuho4jyteqIZvNLO3nRMeEgZUdos1WZJGoc9pZLVcBYhH4A rr8NKenlTGihZ4MoMhGm0956FGkuI1kTfKuhqcOLG90y+DOw49oPsmXbBZdBQM6EfTsx aCMA== X-Gm-Message-State: APjAAAWZDYay2DOT9tOBqM0WsA3TFocGRcSHBYapSOzV/s5hcz2pSDOt wW6G3fLrvljYnv+Oi+JT/c3JKQ== 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_498967_0DF00EDC X-CRM114-Status: GOOD ( 12.28 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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: 10837675 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 8BF4913B5 for ; Mon, 4 Mar 2019 11:12:57 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 772F12A04F for ; Mon, 4 Mar 2019 11:12:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BA622A056; Mon, 4 Mar 2019 11:12:57 +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 226F52A04F for ; Mon, 4 Mar 2019 11:12:57 +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=MB+wLnzW3+fdVz+c1sCgF2I7O+YCCcYBF+LNpbdEKgs=; b=LCtCuTzGX090UJ r/3/uE437Zjf3Rso1B/Pf+bjAoBYhN5DdcWYDdV76wEEMr6UlG/X0miQ0Qi2o1j3E5379yQ0k4xE5 icLgK31+nxGxlhkarZnnh4smPDiHuqUCJQ4KRPIinG6OxNqF8xCD6bpWnrIDgwu2SPXaVbJ9dzLD2 jiI2cmefneXfa91BJX+Ad6Kk4nL0sRYGbi3Qp6WFOIBA+DuL6QobfDwJxgM+2DcnMI7TsKs39blZH skYtypKHvPw4v9a+26EepFIVv8TtuaDGRZWDNLOnxRJqfCJL4T7WfO8NSiUuY2jgHYZdpm3emCCBB eFMO6xoHKQxr3IWW1RAQ==; 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 1h0lWe-0004Qe-A2; Mon, 04 Mar 2019 11:12:52 +0000 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0lWB-0003ld-FI for linux-arm-kernel@lists.infradead.org; Mon, 04 Mar 2019 11:12:24 +0000 Received: by mail-wr1-x441.google.com with SMTP id r5so5061770wrg.9 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=nO0rcOJ3AR5tprkairR6cjx8UwiTJhYSVqsq2SI0HAlozlzrv8ZR3h3w1XwLL3GGVP 0S4A86UTStROEcshjBDSzg+79NeM+vy1Mzsc3Ws+WNVOyetB2Aht73zmGDEtLs3GsSnh P/+ScoSrKs54sJmRF6ddEwrzRbUDIV1F3OAMYpfsQi07I/j4efnEsPnbgSF+R8awYWd3 5lfqD2a3tkNVgkmjfaKjmioqzugynPKYTdDP2tC5CaD1ikvNy3pnoFhPUxndRSU4EIYP l64bJv8VuVMbqzqJjORecL7/E7h3+K2aoaSINMU7fs5WVqT1I62uw5pCjz5xRz+ZRV/E a6Sg== X-Gm-Message-State: APjAAAUDB2N7Jwpljn+qu1SdlUlAaUb8g1TIGRLI8zElIFPzsqfpAnk8 QqUccFCnJRP0tDtGOTPuQyAuFA== 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_514338_1678D06B X-CRM114-Status: GOOD ( 12.22 ) X-BeenThere: linux-arm-kernel@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-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=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, }, {}, };