Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3383935ybt; Tue, 23 Jun 2020 00:33:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzMxah8J6SIvuFdiCQ127dgM3uQ/4jK+5Ygdk/9U3ZT/JHqB1JxKSJ7fa1YwT3qUDNygnho X-Received: by 2002:a17:906:9387:: with SMTP id l7mr9179449ejx.274.1592897582805; Tue, 23 Jun 2020 00:33:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592897582; cv=none; d=google.com; s=arc-20160816; b=P8DO5e8tveYuqVFW28BIG7g5EAeQnijsqHlrQsHOn0CHvdL25rqexQPsEIHidNsTnz FeXlaiH9zXgTJLrczS4e2GZ7NfBtXGlq+P/DxqPa4uvcPzuUvGg1TFOeZ/SeUx4Ycggg +8xQCX4+6VR4aZR2lD6szy71DVNPe1XOqMMGZ1AjLzbxi6ENCa3/WMtKqrlKnplh23Ma cYcEAggO78gNWnMHIIR8US/0aezKHPGA7b0n4nRh8p32/J8sbuRCrvQ2boM0I/HdQhoG GMQox51T+z+jsjALd/bUHLfCgA8csyna6hdPfpejTR9g4Bv08havT+/i+e5agz5W/ayJ EHLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature; bh=2Yi/lYn/6WQNSFr0HSiO3C0rw+Cv8ZwJDqYtP0XLOP8=; b=kjl202okNGQJqUpjwOg54qR9hTrZV/a7UJkGoz0xdVvr1jXMTaNpolF7jYoqaAhf10 JjWIwbOGNyq1rSPQXDy7av50uNUlm7gPXiZPmxFkr/zyLFLiMKQx9kXrNO0u6GAnh48X pmBu51PeYv6JMXnFaGm0CJZuYafZBUdbptqD4CxN6J8oXiFUT/VZi8LBrDjhGWUhittH iiYHiyf8Y3QccnijaolcAslU2e89bdL7zahBHtCEIltbZVEUC7eNEHJportnybVjq+T9 P6ZWxJZDmlu9KkiHip1+vOe7FYUkrDv2GA5M+XLi0poAzYQhNeYHsgM3Mwv13e7oi9Lc /TSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="LvUP/Kjs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l13si274815ejk.170.2020.06.23.00.32.40; Tue, 23 Jun 2020 00:33:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="LvUP/Kjs"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731619AbgFWHaj (ORCPT + 99 others); Tue, 23 Jun 2020 03:30:39 -0400 Received: from m43-7.mailgun.net ([69.72.43.7]:37712 "EHLO m43-7.mailgun.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731145AbgFWHai (ORCPT ); Tue, 23 Jun 2020 03:30:38 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592897437; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=2Yi/lYn/6WQNSFr0HSiO3C0rw+Cv8ZwJDqYtP0XLOP8=; b=LvUP/KjshKdrEK0/P37/UhvsbuyqEYAW1o0k4y7NUFZ4lXUZDFRaykJEQr8lUbtS1+QDtIUE jyOFQa2bLMsVi9L2f+QLA/e4NueXNFO1cPp8P2hPf3P7vvWCmeK1Ic7TAwt4/p2ooFCzq+wa si0sJ7J2d2YJFEq7vay5YPrTjjw= X-Mailgun-Sending-Ip: 69.72.43.7 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n14.prod.us-west-2.postgun.com with SMTP id 5ef1af87fe1db4db89b9bf82 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Tue, 23 Jun 2020 07:30:15 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id C3651C43395; Tue, 23 Jun 2020 07:30:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE autolearn=unavailable autolearn_force=no version=3.4.0 Received: from jprakash-linux.qualcomm.com (blr-c-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jprakash) by smtp.codeaurora.org (Postfix) with ESMTPSA id 48A96C433C8; Tue, 23 Jun 2020 07:30:10 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 48A96C433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=jprakash@codeaurora.org From: Jishnu Prakash To: agross@kernel.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mka@chromium.org, linus.walleij@linaro.org, Jonathan.Cameron@huawei.com, andy.shevchenko@gmail.com, amit.kucheria@verdurent.com, smohanad@codeaurora.org, kgunda@codeaurora.org, aghayal@codeaurora.org Cc: linux-arm-msm@vger.kernel.org, linux-arm-msm-owner@vger.kernel.org, Jishnu Prakash Subject: [PATCH V7 0/7] iio: adc: Add support for QCOM SPMI PMIC7 ADC Date: Tue, 23 Jun 2020 12:59:52 +0530 Message-Id: <1592897399-24089-1-git-send-email-jprakash@codeaurora.org> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following changes are made in V7: In the seventh patch, the function pointer is defined using typedef instead of struct, to address a review comment. There are no changes in any other patches, from V6. Jishnu Prakash (7): iio: adc: Convert the QCOM SPMI ADC bindings to .yaml format iio: adc: Add PMIC7 ADC bindings iio: adc: Add info property under adc_data iio: adc: Add support for PMIC7 ADC iio: adc: Update return value checks iio: adc: Update debug prints iio: adc: Combine read functions for PMIC5 and PMIC7 .../devicetree/bindings/iio/adc/qcom,spmi-vadc.txt | 173 ------------- .../bindings/iio/adc/qcom,spmi-vadc.yaml | 278 +++++++++++++++++++++ drivers/iio/adc/qcom-spmi-adc5.c | 242 ++++++++++++++++-- drivers/iio/adc/qcom-vadc-common.c | 262 +++++++++++++++++++ drivers/iio/adc/qcom-vadc-common.h | 15 ++ include/dt-bindings/iio/qcom,spmi-adc7-pm8350.h | 67 +++++ include/dt-bindings/iio/qcom,spmi-adc7-pm8350b.h | 88 +++++++ include/dt-bindings/iio/qcom,spmi-adc7-pmk8350.h | 46 ++++ include/dt-bindings/iio/qcom,spmi-adc7-pmr735a.h | 28 +++ include/dt-bindings/iio/qcom,spmi-adc7-pmr735b.h | 28 +++ include/dt-bindings/iio/qcom,spmi-vadc.h | 78 +++++- 11 files changed, 1109 insertions(+), 196 deletions(-) delete mode 100644 Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.txt create mode 100644 Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pm8350.h create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pm8350b.h create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pmk8350.h create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pmr735a.h create mode 100644 include/dt-bindings/iio/qcom,spmi-adc7-pmr735b.h -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project