Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp373012ybk; Wed, 13 May 2020 02:26:50 -0700 (PDT) X-Google-Smtp-Source: APiQypKTkksPRRlfjJWI/DGqxPC1Nf/QBO27u4ew2eqfEPApUqgzkNOvhVyXXiTcFLZizw3vYvjV X-Received: by 2002:a17:906:e090:: with SMTP id gh16mr14823232ejb.41.1589362010005; Wed, 13 May 2020 02:26:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589362009; cv=none; d=google.com; s=arc-20160816; b=VNJwQpfuzqN0v58hWJ/5ZI8fTtO1dhX7bexNK+tYhZM8AeQGJqpCLcQa6AZ0US2HUy 4P8R6J+t8cGmnU3hF/4Arbsfys241zZ1GG/F9d4JNPpJvCFmsv0wWX1HxiYCBBnGft79 z0Ny3iryQCKFnj6iRGb2Sls5XXYqTOjgKQ2UP9N3myJWW201wT7OjyKucKF1wxR7QDgc 0mWF9x7gSAHMYEhfPnSP/jzCUFOZ746Up78gUAEJcknsVxit+6D4Bw/7nn4tI/nJCC5w FBcJarzRR/q3KzdfYKqPlOYXeJepi+vaLsyM7rDOWj54TOqZ5oYP7xZog7HIThalWdxD CnZw== 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=KL8q0qHaN0LMU/5PVv/5GqlNmJerHkWI+Gi3mhaXNzk=; b=UbSC5nlEbPa/QbrGbKNKPxVvcIGqpN7gWnP1UPsuoxPsSjIcnvRjUFX5/Qqm67hpjs ptn6z15GV9HMtj+xQKcnvKTt69OMk95kZnmdXl9I5lvZWXFhjp4LhFPivLEwmQ+F5yOk 9PRzrL12XrRP+T1/AtvuF7S4fzGHT8rRtGRaRn2h2wloM+Crqvtaqimi50ZVob/MbGuL wJSHapTeD2lfXk8R7fJpXQh6UOcLm2bkCHFtjH/Sl+TpFt1PYcBSdi9OnDg1WHPg9iHK V6PAxixW9u7pz1PHPy7H3APnsXAtVrSqiSHNoFnTRMUnvhgPAr7ruuxMaNj02sGCETo7 c1NQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b="lDDl/xBc"; 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 e8si9452985ejd.76.2020.05.13.02.26.27; Wed, 13 May 2020 02:26:49 -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="lDDl/xBc"; 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 S1728311AbgEMJWh (ORCPT + 99 others); Wed, 13 May 2020 05:22:37 -0400 Received: from mail27.static.mailgun.info ([104.130.122.27]:24364 "EHLO mail27.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727840AbgEMJWg (ORCPT ); Wed, 13 May 2020 05:22:36 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1589361756; h=Message-Id: Date: Subject: Cc: To: From: Sender; bh=KL8q0qHaN0LMU/5PVv/5GqlNmJerHkWI+Gi3mhaXNzk=; b=lDDl/xBcjpC91vLNzI/Yy17ZCbXBaXTjlAcnlG9pjv0jI5aJVtvwFbinrv1h3hNUcnKA78dL apalRxbWt72A/rsDT/KTAKgfau7n7c5wwvTW4Yj7u4l5lwu8TQXbBiUf6Bzvn9h4oeWPZFu+ crr80KfO1OhBzLsTmU8uFVeTUu8= X-Mailgun-Sending-Ip: 104.130.122.27 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 mxa.mailgun.org with ESMTP id 5ebbbc5b.7efc2372afb8-smtp-out-n04; Wed, 13 May 2020 09:22:35 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 4CB84C432C2; Wed, 13 May 2020 09:22:34 +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 33B32C433D2; Wed, 13 May 2020 09:22:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 33B32C433D2 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 V4 0/5] iio: adc: Add support for QCOM SPMI PMIC7 ADC Date: Wed, 13 May 2020 14:52:11 +0530 Message-Id: <1589361736-816-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 V4: Made some recommended minor changes in the third patch. Removed the info member from adc5_data, and adc exit function, to be added back in fifth patch. Added a fifth patch to clean up code common to PMIC5 and PMIC7 ADC. Jishnu Prakash (5): iio: adc: Convert the QCOM SPMI ADC bindings to .yaml format iio: adc: Add PMIC7 ADC bindings iio: adc: Add support for PMIC7 ADC iio: adc: Update error checks and debug prints iio: adc: Clean up ADC code common to 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 | 266 ++++++++++++++++++-- drivers/iio/adc/qcom-vadc-common.c | 260 +++++++++++++++++++ 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, 1134 insertions(+), 193 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