Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3448411ybb; Mon, 6 Apr 2020 09:06:54 -0700 (PDT) X-Google-Smtp-Source: APiQypIxmJ1Drg8We5icPALGbIzaFJyzzHbMUDtOIdIjQ7OKk+8nnnbiqIv/Luun+zVNDdLFF9KU X-Received: by 2002:a4a:d44c:: with SMTP id p12mr18339534oos.91.1586189214153; Mon, 06 Apr 2020 09:06:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586189214; cv=none; d=google.com; s=arc-20160816; b=GEJ7lDxKfIDLWQ8hy/6iwuP0xzLMyVYuxod5SvfQ9xckTG4xf/3G5lvFZs8MsQUJWy 6ANDrKidEpKX5b4JXcKoLfvDCxiVlSFSbFnyAa1Hq1ujw7DCgCwnzGcCoL9cl4CS5VAl IUrDTj+NVZtVDNySrEyjypdXl4EJWiXMfBO24EZ/3rnFSNrOfa+bKV1iDa3yJOTHyTEh Dzhxzc3kG65HMGU5AwIF++o8NS1PsQs3/jV/fF1dTmkz5xfCh4Ab7TABEfN2VNYeyBrp 9RK12KD3cTXNq6xs2bQYm458eX0oBHSeatr4CqhdngPcK1BVAulkGpW2d0vPrfdQ2z0s oSOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=tkVFN10d4RN7w50QmYcGpYbD3TgJG0BGwiDUYOkK5nI=; b=vfU41TrK/zu569mLzI/hwpS28payZ9XdCRwWmFIaDp2HjW38AP+qrSgPvgiwanyB2T xjYRo5GohfyoC8QLSfiKJ5BVZq+zx5qO+NldwJ/RwdN5ZX32Yc+hG4ErBYz04ZAxkNuq k2pHySa1IrFeVEU86G42wV1lqWCdk7xmIkeFAEVgkXevkd+GgTlhUc2u34lMEoiUlNo6 X8Zqp6JU25rE2G6OSRVgc0DKZRWp6gjced2zYbmvScms8DI0kkQo4kuQRHa0Uw8ZK4dD jVPdIuGWlrygXO3dtTptQxG0D07wuO11a9PFgpWMU+CF67+KspQm4dRyFwzNdJPMDZsR VxKA== ARC-Authentication-Results: i=1; mx.google.com; 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 l5si7316762oic.3.2020.04.06.09.06.41; Mon, 06 Apr 2020 09:06:54 -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; 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 S1729311AbgDFQGJ (ORCPT + 99 others); Mon, 6 Apr 2020 12:06:09 -0400 Received: from lhrrgout.huawei.com ([185.176.76.210]:2634 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728878AbgDFQGJ (ORCPT ); Mon, 6 Apr 2020 12:06:09 -0400 Received: from lhreml710-chm.china.huawei.com (unknown [172.18.7.107]) by Forcepoint Email with ESMTP id 9AEACEE0DA8BD16DC166; Mon, 6 Apr 2020 17:06:06 +0100 (IST) Received: from localhost (10.47.92.64) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.1913.5; Mon, 6 Apr 2020 17:06:05 +0100 Date: Mon, 6 Apr 2020 17:05:54 +0100 From: Jonathan Cameron To: Jishnu Prakash CC: Jonathan Cameron , , , , , , , , , , , Hartmut Knaack , "Lars-Peter Clausen" , Peter Meerwald-Stadler , Rob Herring , Mark Rutland , , , Subject: Re: [PATCH 2/3] iio: adc: Add PMIC7 ADC bindings Message-ID: <20200406170554.00003887@Huawei.com> In-Reply-To: References: <1585064650-16235-1-git-send-email-jprakash@codeaurora.org> <1585064650-16235-3-git-send-email-jprakash@codeaurora.org> <20200328165410.7db48818@archlinux> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.92.64] X-ClientProxiedBy: lhreml706-chm.china.huawei.com (10.201.108.55) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 6 Apr 2020 17:15:21 +0530 Jishnu Prakash wrote: > Hi Jonathan, > > On 3/28/2020 10:24 PM, Jonathan Cameron wrote: > > On Tue, 24 Mar 2020 21:14:09 +0530 > > Jishnu Prakash wrote: > > > >> Add documentation for PMIC7 ADC peripheral. For PMIC7 ADC, all SW > >> communication to ADC goes through PMK8350, which communicates with > >> other PMICs through PBS. > >> > >> Signed-off-by: Jishnu Prakash > >> --- > >> .../bindings/iio/adc/qcom,spmi-vadc.yaml | 28 ++++++++++++++++------ > >> 1 file changed, 21 insertions(+), 7 deletions(-) > >> > >> diff --git a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml > >> index 72db14c..20f010c 100644 > >> --- a/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml > >> +++ b/Documentation/devicetree/bindings/iio/adc/qcom,spmi-vadc.yaml > >> @@ -13,7 +13,7 @@ maintainers: > >> description: | > >> SPMI PMIC voltage ADC (VADC) provides interface to clients to read > >> voltage. The VADC is a 15-bit sigma-delta ADC. > >> - SPMI PMIC5 voltage ADC (ADC) provides interface to clients to read > >> + SPMI PMIC5/PMIC7 voltage ADC (ADC) provides interface to clients to read > >> voltage. The VADC is a 16-bit sigma-delta ADC. > >> > >> properties: > >> @@ -23,6 +23,7 @@ properties: > >> - qcom,spmi-adc5 > >> - qcom,spmi-adc-rev2 > >> - qcom,pms405-adc > >> + - qcom,spmi-adc7 > >> > >> reg: > >> description: VADC base address in the SPMI PMIC register map > >> @@ -65,6 +66,8 @@ patternProperties: > >> description: | > >> ADC channel number. > >> See include/dt-bindings/iio/qcom,spmi-vadc.h > >> + For PMIC7 ADC, the channel numbers are specified separately per PMIC > >> + in the PMIC-specific files in include/dt-bindings/iio/. > > That makes me thing we really should have separate compatibles. The > > parts clearly have differences, even if we haven't needed to use them > > explicitly as yet. > I'm not sure what you mean by this. We have added a new compatible > property "qcom,spmi-adc7" for PMIC7 ADC. I've no idea what I meant either :) Jonathan > > > >> > >> label: > >> description: | > >> @@ -72,7 +75,7 @@ patternProperties: > >> For thermistor inputs connected to generic AMUX or GPIO inputs > >> these can vary across platform for the same pins. Hence select > >> the platform schematics name for this channel. It is required > >> - for "qcom,spmi-adc5" and "qcom,spmi-adc-rev2". > >> + for "qcom,spmi-adc5", "qcom,spmi-adc7" and "qcom,spmi-adc-rev2". > >> allOf: > >> - $ref: /schemas/types.yaml#/definitions/string > >> > >>