Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3222919ybb; Mon, 6 Apr 2020 04:48:33 -0700 (PDT) X-Google-Smtp-Source: APiQypKymxssHgh7MGs0Jnzf+XOTo0zGIy+UytCnxVEv3FeoDRYMlead2ZO07uWbvYE5zibsqN/d X-Received: by 2002:a05:6830:2246:: with SMTP id t6mr16850777otd.163.1586173712826; Mon, 06 Apr 2020 04:48:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586173712; cv=none; d=google.com; s=arc-20160816; b=PHHvHb5c0pzGwz3gi0hMEMsB6Jtu56elibFr4Ci0CTII1IA7IweQeB/TK1Y3YcmUHH N99f7moI1bVu0b2dwFCGPdPO1mjkLweXs7fOP1R37wnpTFar5rgsHZDBbup7A7ojCqX1 S+zitT60725z1ojNxbHElbeHqcbYFtxGZP19I3eswoBUfzxj+QsY4aDaIN0wbcofYyMl lnBMxJgG10I03QsRSVzd2Fcsp4Sa3kG9VvnCvlzmfwU3fh/bgnXga6AH4aVmSEeKsJgR fKHYf6JeqaVvW0rqRbA4UWN7umgEdO9xJwR1kBW7belsXorNojlmrwuA+UvuNur1/bDP 7iTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature; bh=FgPDoydCs+DhGKztcRPMXkbqhx2Dj1OriztFjPgeMag=; b=wIyEUerxyaqPf3ZV4YoZXzXe+1fqEtvXOlFcuCdkL39YZOxgbokeMjebg8/547dUlj wjMNTuUk9MNSg1KROads/azxAxVbsJd5fPWFxr2JZtdalq9tTZHfaf/HOvAttu029UVW pXjMGwobYR+mI0wRUzhA+6EJpBVMloI6NKC4WikO6QnR/ScvXA9LMFp7POTAu9afxgGU Q1AT+9O58rPyq2F1usJGlHtYNXpkJPr7L8214ieAhTm6+hmopfP13sm26torTtrDuf4v dPOjn5tAKmqDPmL2lqfJBXzwSLgw2y6AU8GxPhcam6IE1gxLcFpFchFox8aS35Ymm4y5 Pyqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=RNw6vDbQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w16si7252350otq.235.2020.04.06.04.48.20; Mon, 06 Apr 2020 04:48:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=RNw6vDbQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727666AbgDFLru (ORCPT + 99 others); Mon, 6 Apr 2020 07:47:50 -0400 Received: from mail26.static.mailgun.info ([104.130.122.26]:43924 "EHLO mail26.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727376AbgDFLru (ORCPT ); Mon, 6 Apr 2020 07:47:50 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1586173670; h=Content-Transfer-Encoding: Content-Type: In-Reply-To: MIME-Version: Date: Message-ID: From: References: Cc: To: Subject: Sender; bh=FgPDoydCs+DhGKztcRPMXkbqhx2Dj1OriztFjPgeMag=; b=RNw6vDbQqcQWRLfLwBIgdUZfpxKzS5XCzxDponZ1SC60zjlPr6Im7k15hYn7I7eiwYIcIMui xWlJwAgIjtMZ9KI5eondsSHnn79bxHtWYAvNyNJpEeHfFQGGmd6cQYXpm7mYBVpzkFdyn6Ok aNMfTZEgyskLIKUO3Uxr73DHrIE= X-Mailgun-Sending-Ip: 104.130.122.26 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 5e8b16c6.7f69c7495ab0-smtp-out-n04; Mon, 06 Apr 2020 11:47:18 -0000 (UTC) Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 6BC51C433D2; Mon, 6 Apr 2020 11:47:16 +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 [192.168.1.100] (unknown [157.44.182.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: jprakash) by smtp.codeaurora.org (Postfix) with ESMTPSA id E2F5BC433BA; Mon, 6 Apr 2020 11:47:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org E2F5BC433BA 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 Subject: Re: [PATCH 3/3] iio: adc: Add support for PMIC7 ADC To: Rob Herring Cc: agross@kernel.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, mka@chromium.org, linus.walleij@linaro.org, sboyd@codeaurora.org, Jonathan.Cameron@huawei.com, smohanad@codeaurora.org, kgunda@codeaurora.org, aghayal@codeaurora.org, Jonathan Cameron , Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-iio@vger.kernel.org, linux-arm-msm-owner@vger.kernel.org References: <1585064650-16235-1-git-send-email-jprakash@codeaurora.org> <1585064650-16235-4-git-send-email-jprakash@codeaurora.org> <20200331200611.GA10950@bogus> From: Jishnu Prakash Message-ID: <46f4f206-ab75-31ad-66cc-71d1e458b76e@codeaurora.org> Date: Mon, 6 Apr 2020 17:17:04 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200331200611.GA10950@bogus> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob On 4/1/2020 1:36 AM, Rob Herring wrote: > On Tue, Mar 24, 2020 at 09:14:10PM +0530, Jishnu Prakash wrote: >> The ADC architecture on PMIC7 is changed as compared to PMIC5. The >> major change from PMIC5 is that all SW communication to ADC goes through >> PMK8350, which communicates with other PMICs through PBS when the ADC >> on PMK8350 works in master mode. The SID register is used to identify the >> PMICs with which the PBS needs to communicate. Add support for the same. >> >> In addition, add definitions for ADC channels and virtual channel >> definitions per PMIC, to be used by ADC clients for PMIC7. >> >> Signed-off-by: Jishnu Prakash >> --- >> drivers/iio/adc/qcom-spmi-adc5.c | 239 ++++++++++++++++++++- >> drivers/iio/adc/qcom-vadc-common.c | 260 +++++++++++++++++++++++ >> drivers/iio/adc/qcom-vadc-common.h | 14 ++ >> 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 ++++++- > DT headers go in the binding patch(es). I'll move these to the bindings patch in the next post. > >> 9 files changed, 843 insertions(+), 5 deletions(-) >> 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