From patchwork Sat Jul 21 19:40:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Blumenstingl X-Patchwork-Id: 10538961 Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1966728C9B for ; Sat, 21 Jul 2018 19:40:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0DB6828C9D; Sat, 21 Jul 2018 19:40:59 +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 B563A28C9B for ; Sat, 21 Jul 2018 19:40:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728084AbeGUUet (ORCPT ); Sat, 21 Jul 2018 16:34:49 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:38580 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728077AbeGUUet (ORCPT ); Sat, 21 Jul 2018 16:34:49 -0400 Received: by mail-wm0-f68.google.com with SMTP id t25-v6so3463539wmi.3 for ; Sat, 21 Jul 2018 12:40:57 -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=hfRuYVyKUatjxS9AwS3qs4mVPCsDLXeHNj54r6GJTxk=; b=MLY8BSMu9R4D29eYiGXy9anRul/c5WV0LBb/t/UxX5YbSMWs5bMDNCr7pYUT/6l4DK wD6X3YvDKTqQ7YovKGAcFrTMGaiL4cKSjuD1NrKcsAkXmxIgC2CbvQCYZ6V91rVhqFI0 l5yIvGCRf1avTjbt47zFWfecaRyIVo4T6DmdHeO8r4rGK8mCF5L3nmWkQz7nZY39N+Ar LhQIrJSQhBXrMPSF1zGIxQcEPEsBh5rlYo7IGU6QabASuz0IqzbtyAeDNYiN+ew4b6+3 rs3WGPZA9HrWjMWR6zhKRt+Kf3jMM0K6npGac/EiCyJXRshM41bw6gAKSy7+3qali1zW LFJA== 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=hfRuYVyKUatjxS9AwS3qs4mVPCsDLXeHNj54r6GJTxk=; b=nXiGoXuG+mQn+JmSIdg88qXjnry3Uj8jnd/tqKLHBSIn7s6m38s+eUbc9bfHC+woQW 1bTb/ExI64v71iOsKR9nbnPSogcDWcl5nvuevE1BtqW+et8mLmGa754LyjuiA5OkbDLM 4bsCS5IiyCBRg0lJo8Y2D2jvp2WC34R6zFvd4uItq+gGOFIOHFlw1MH1n+iG0rLwvKEq CmtHfRwfKvc4U4rFHl8PQ7p/F0ocht63/3EmS04QOTQLZhtSc4g0IYSglqG58RmRAUGq PMuc43SXHBlfCzjFXhrT3377xOkpoybUPq048Hw6ryI4fJVYJUgbnUNUHDGBTpYM6Pl1 g5JQ== X-Gm-Message-State: AOUpUlE9jwAblslLo/3B+7gC8T9XiaE9sGjBSjmrYspB2Fu13groD3F1 tj5EIu9mLLD2tXwMZVe0aWc= X-Google-Smtp-Source: AAOMgpfYvdpN+YBbe7FCYL/dq0VWoAubaej3ecRiLsgDuiYQfhh2pf47eWExYEyEPrA9gjPGNEU55g== X-Received: by 2002:a1c:d607:: with SMTP id n7-v6mr4094349wmg.150.1532202056796; Sat, 21 Jul 2018 12:40:56 -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.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 21 Jul 2018 12:40:56 -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 1/2] dt-bindings: iio: adc: add Meson8m2 support Date: Sat, 21 Jul 2018 21:40:48 +0200 Message-Id: <20180721194049.23265-2-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 Amlogic Meson SAR ADC implementation on the Meson8m2 SoC is identical to the Meson8b variant. Add a compatible string to indicate that we support the SAR ADC on the Meson8m2 SoC. Signed-off-by: Martin Blumenstingl --- .../devicetree/bindings/iio/adc/amlogic,meson-saradc.txt | 1 + 1 file changed, 1 insertion(+) -- 2.18.0 -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt index d1acd5ea2737..54b823f3a453 100644 --- a/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt +++ b/Documentation/devicetree/bindings/iio/adc/amlogic,meson-saradc.txt @@ -4,6 +4,7 @@ Required properties: - compatible: depending on the SoC this should be one of: - "amlogic,meson8-saradc" for Meson8 - "amlogic,meson8b-saradc" for Meson8b + - "amlogic,meson8m2-saradc" for Meson8m2 - "amlogic,meson-gxbb-saradc" for GXBB - "amlogic,meson-gxl-saradc" for GXL - "amlogic,meson-gxm-saradc" for GXM 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,