From patchwork Sat Jul 21 19:40:49 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10539039 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 C6B6FA6A1 for ; Sun, 22 Jul 2018 00:57:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4AF5F28C9C for ; Sat, 21 Jul 2018 19:41:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3EC2728C9F; Sat, 21 Jul 2018 19:41:01 +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.8 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 337FC28C9C for ; Sat, 21 Jul 2018 19:41:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728101AbeGUUev (ORCPT ); Sat, 21 Jul 2018 16:34:51 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:40405 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728077AbeGUUev (ORCPT ); Sat, 21 Jul 2018 16:34:51 -0400 Received: by mail-wm0-f67.google.com with SMTP id z13-v6so12753566wma.5 for ; Sat, 21 Jul 2018 12:40:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=2wuOhZ/uG72uXtyNlhGD0RidsHno3dlTFoka5nfgW1k=; b=QGh7ahuclWj/a+XNls4vDg+7HKf91EKwJrIEJxVefgd2CQiBMUPoum7PySVrJmMrNa vnUmAmBlHb6Ngtkxm825c0/GdUisWBbKyp2j17/rAjvinNU3eVcSRQfUdbPGwhuPuQ6x /V95loQXRiv1rksJiKLlYeaEocU/2z7hX2IzaXZW6y/q8Np25ZJINS1sJnFsWEtgdALD NNp6cUT/NSOC/S9qSKrwnodsyqeTqR5rkr0gzYwoER1j1xNT4UHpWshUkRhWFVQzyh+s Axi91HtCe1yP8puNZHi5+oIiQ4K/oKkY52DoF8BHgVrtUS5xFKStfeCfu3cTLz9dIyYW JVKQ== 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; bh=2wuOhZ/uG72uXtyNlhGD0RidsHno3dlTFoka5nfgW1k=; b=tel2tNb3uUQs5L46V6Njv/NAjl3GrWUz4XrmlhWkg4ZPsTzSqS5g7b53FQSuN/UP5f SDR3+QLQ8DOw2ZSaNZSw7PLC3WlkUcrrVJJdFQasUgCejdwSncxsKIyU+qaJvrVTLdGs BMmGRtKNYZ1iAsv+Lu6xVa/n3I8Y9UAvTeo8+yCW0OUPoBkU/WKVy4mBIBODcpqRbXnh oD0oazYpiF4j9XyQWIStElSA5bnQXBWgdxRjeHvUrQ0QVSponz75YWR7bVctGKNfxXpQ m0C2/MjELLs0extzMIhz4fE/aE5XvQElnFJyWFeE/XysB7rKXf+Y6sfEsFceDvr7Fvcq XncA== X-Gm-Message-State: AOUpUlHHKPjmr/0B8eVOf6og5ft6/Wn3aopouyMua7p17r/W59dONFlh wGN3Ldzq5o3PHOV398GYfY0= X-Google-Smtp-Source: AAOMgpfNRbOWWrkSZqla0kmJv9k/JmdoVGJ4DCXYfJH/7L0tkNxFJga7xtfkz4SwL58IUEcntLrnWg== X-Received: by 2002:a1c:4489:: with SMTP id r131-v6mr4014127wma.128.1532202057824; Sat, 21 Jul 2018 12:40:57 -0700 (PDT) Received: from blackbox.darklights.net (p200300DCD732620055BA2447D3F43559.dip0.t-ipconnect.de. [2003:dc:d732:6200:55ba:2447:d3f4:3559]) by smtp.googlemail.com with ESMTPSA id 5-v6sm7073714wmv.48.2018.07.21.12.40.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jul 2018 12:40:57 -0700 (PDT) From: Martin Blumenstingl To: jic23@kernel.org, knaack.h@gmx.de, lars@metafoo.de, pmeerw@pmeerw.net, linux-amlogic@lists.infradead.org, linux-iio@vger.kernel.org Cc: Martin Blumenstingl Subject: [PATCH 2/2] iio: adc: meson-saradc: add support for the Meson8m2 SoCs Date: Sat, 21 Jul 2018 21:40:49 +0200 Message-Id: <20180721194049.23265-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180721194049.23265-1-martin.blumenstingl@googlemail.com> References: <20180721194049.23265-1-martin.blumenstingl@googlemail.com> 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 The SAR ADC on Meson8m2 behaves identical to the one found in the Meson8b SoCs. Add a separate compatible string because the temperature sensor logic (not supported yet) differs between Meson8 and Meson8m2 (however, it's the same for Meson8b and Meson8m2). Signed-off-by: Martin Blumenstingl --- drivers/iio/adc/meson_saradc.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/iio/adc/meson_saradc.c b/drivers/iio/adc/meson_saradc.c index 2948909f3ee3..da2d16dfa63e 100644 --- a/drivers/iio/adc/meson_saradc.c +++ b/drivers/iio/adc/meson_saradc.c @@ -922,6 +922,11 @@ static const struct meson_sar_adc_data meson_sar_adc_meson8b_data = { .name = "meson-meson8b-saradc", }; +static const struct meson_sar_adc_data meson_sar_adc_meson8m2_data = { + .param = &meson_sar_adc_meson8_param, + .name = "meson-meson8m2-saradc", +}; + static const struct meson_sar_adc_data meson_sar_adc_gxbb_data = { .param = &meson_sar_adc_gxbb_param, .name = "meson-gxbb-saradc", @@ -951,6 +956,10 @@ static const struct of_device_id meson_sar_adc_of_match[] = { .compatible = "amlogic,meson8b-saradc", .data = &meson_sar_adc_meson8b_data, }, + { + .compatible = "amlogic,meson8m2-saradc", + .data = &meson_sar_adc_meson8m2_data, + }, { .compatible = "amlogic,meson-gxbb-saradc", .data = &meson_sar_adc_gxbb_data,