From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.2 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_PASS,UNWANTED_LANGUAGE_BODY,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 116DFC4360F for ; Mon, 4 Mar 2019 11:12:55 +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 C3BCB20663 for ; Mon, 4 Mar 2019 11:12:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Hdp3q5PT"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=baylibre-com.20150623.gappssmtp.com header.i=@baylibre-com.20150623.gappssmtp.com header.b="YdiXJc8c" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C3BCB20663 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=baylibre.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org 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-UP; 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+linux-amlogic=archiver.kernel.org@lists.infradead.org Add the SAR ADC driver for the Amlogic Meson-G12A SoC. Signed-off-by: Neil Armstrong --- 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, }, {}, }; -- 2.20.1 _______________________________________________ linux-amlogic mailing list linux-amlogic@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-amlogic