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=-9.0 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,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 A3934C43381 for ; Mon, 4 Mar 2019 11:12:54 +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 74A0320663 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="LCtCuTzG"; 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 74A0320663 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-arm-kernel-bounces+infradead-linux-arm-kernel=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=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-Km; 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 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=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-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel