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: 10837663 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 37A35180E for ; Mon, 4 Mar 2019 11:12:26 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 270A02A04F for ; Mon, 4 Mar 2019 11:12:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1BAEA2A056; Mon, 4 Mar 2019 11:12:26 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ECD792A059 for ; Mon, 4 Mar 2019 11:12:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726178AbfCDLMY (ORCPT ); Mon, 4 Mar 2019 06:12:24 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:43530 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726382AbfCDLMX (ORCPT ); Mon, 4 Mar 2019 06:12:23 -0500 Received: by mail-wr1-f66.google.com with SMTP id d17so5062633wre.10 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=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=XDG/vvAU7h6Ap0BOkICe5T9oDUh0u4djwR0uMRr4p7VqdTAGJlswcSmePbGuhZp5LC vj7OaNnzpgIMLRVeqDzyVaUTbvtk6t0Azp3407C5xApIR5CT+F/KrXG+h8FvLlxHfAZ4 XOVsvpoEeb2L3XnnWO6OirrEZvQyU1nyko4XBEDhi4H1aQh+HdhbfJqHKAiqh8ZrkJTL REzPJAUxVQw/XDs3CWRTmsmlliXLmpnFd1TMaBYp4cG5ASo+FRqigvou/TYqQB98YJaR LHUk2ED2b83FuZJghqh7EsQniAN4cMsiGHXzRhuS1kyXhyyAn7ycsEfzJ8yYETyFw8D9 5/uQ== X-Gm-Message-State: APjAAAW7SpU6FOwm/P2v3e6DQa7tH9ye2PJDecmFzpznuDEipjZrocSs BXcZJRH3Ds0c2g/ccg0ngV6bG0+NVGpq2Q== 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 Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@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 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.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: 10837667 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 C64821390 for ; Mon, 4 Mar 2019 11:12:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B30762A04F for ; Mon, 4 Mar 2019 11:12:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A706D2A056; Mon, 4 Mar 2019 11:12:34 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5977D2A04F for ; Mon, 4 Mar 2019 11:12:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726410AbfCDLMZ (ORCPT ); Mon, 4 Mar 2019 06:12:25 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:44228 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726381AbfCDLMX (ORCPT ); Mon, 4 Mar 2019 06:12:23 -0500 Received: by mail-wr1-f67.google.com with SMTP id w2so5056702wrt.11 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=afPTuDY4K0Jp2IL3UaatLKTbMcGyfFBiRa7am5ZI/63kytaEb3TMbGIURU6rjHfl4i Qv2sB/gdMX4W9um+tG82m2Ul/HWkHOAKgLZZ9ti5F7TZI3xH98Ky89JimwYS/HQ7pHfX CNCVNmgk+PV2gXKJ6AFqv/zj8tafWq8qlgrdJp1oalpT1zdmoTai/kBuEkDBskcxvaDB C7pZ1Wih1ydi/jqteIlH8BKaL1SlhLgOKIDFnAJNPRhfOtzPM6NN6vVDffZgzSRAs01q I+5LHUBySg9X1gQlG8bBC6U+zeo/YHZlaKWUTiiWjIxAUA6FvHNEI6jsr9vdm/YnLoGH oshg== X-Gm-Message-State: APjAAAW8aEZ5una1goaIGZwbmbdiBVqqljU1lS8swxfbK0lni1isTR3X k6/+9eAUinxGJ0ggHJDgcLkxMVetPSLO5A== 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 Cc: Neil Armstrong , linux-amlogic@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org 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 Sender: linux-iio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.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, }, {}, };