Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3343463pxj; Mon, 14 Jun 2021 21:45:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJySL6immZ8WVqz5rdjj1DEUVrTctmYTHtICsevFp3XZbMLYf5O9uxtSjwUzUWIxQRIHuaoY X-Received: by 2002:a17:906:cc14:: with SMTP id ml20mr19105092ejb.515.1623732333017; Mon, 14 Jun 2021 21:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623732333; cv=none; d=google.com; s=arc-20160816; b=wOl8sV0u14ZrA6N5/QAZ7LycGZs0X7k40L3+H5yzBzKlVhqFv1ECDY8c76xGgWhauv Fnoy1KWtPHfANjNoX+brZ1xwXWrPMVwNl80euTDccGHLOavO6Uz3gza1qIQFLtH/PNHY 01DUDhLi0PgwlviTPfBjyKaLlr5QeGgT4zxOgUmxsQfxLYHYGvjq7mKyBJfjG5yknfXi PVRUP586sfuAvlylLm8Cp03xvVLl8R42Bp4OGjS/VpToiVo957VEQAgY5attC8HjSxGk Vlj3Q4t28nu11ExQQT7+mK1+hOBYCXUp+ARWZT8/SledH4D39pCCsC3xaUDfzmA8YQ/A utgQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=JyaUkQuIyJoeFM+aEDlAzk2ObFHbusZSFKanutxk4Kk=; b=qgnQqbhbqmjK12kEMRWF3SsDFM2SgApDSrIQEz5A7tLkmIe7u6SlXh1d0ZVN9hFmRx 3jJ4grpJrBcCnjfMC6n/K/1py8W2px7QkidNe6dg5iqUnuEgUHYo0BtoK2XY+jPwTma8 K4rJeR4Jc3/kOyHGli8apWCi40BnhVFEK6SeJ657hv5BP5B2H0xC3T4ccJxGSwEoJ8YL odTPBPhDZpFUs5IVdV+YpB/FvmVsi/lDWDEfc3SVZI4LdRRRVdupIJcCownvH+dDReiE gxcbHoLVPaEgcIg+b0vtjzkLfiqNCUOqtq7BszGxSAyIWy2UGaunUUZUWzzJ/S2MfYVG l4nA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=FY6KP3tP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g12si14091432edp.364.2021.06.14.21.45.10; Mon, 14 Jun 2021 21:45:33 -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=pass header.i=@linaro.org header.s=google header.b=FY6KP3tP; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229493AbhFOEp5 (ORCPT + 99 others); Tue, 15 Jun 2021 00:45:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbhFOEp4 (ORCPT ); Tue, 15 Jun 2021 00:45:56 -0400 Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D8090C0617AF for ; Mon, 14 Jun 2021 21:43:52 -0700 (PDT) Received: by mail-ot1-x332.google.com with SMTP id 5-20020a9d01050000b02903c700c45721so13078389otu.6 for ; Mon, 14 Jun 2021 21:43:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JyaUkQuIyJoeFM+aEDlAzk2ObFHbusZSFKanutxk4Kk=; b=FY6KP3tPfSi18hxKQz/dPNKtBWBY9us3tn3qr64LmdnwNoD9Qygd1BfC9C5JhRkCuJ KuxFdsqfmhktKgnwigHusnqRy4qmHb91U95rwe5Hjvo7eLzDeNMt2/KXQdyYipEty1Lp +RASGmRooIjliky3xwViIhxwoItf2gNgzxh/NP1BBpMG4QXBD11UJ86eWU+PvCAjEtEw FICAKGgenEpLUf5VRdwUP6r7+i6/DgXrv2jbKi/NfiBqXWB+6OgTgCieb+HZqUai8nOt A2Iv/Ow79hksfJ5HtOM1JbFzqtm37Xr3gsBVxoQSae9kmJUvR2gCg6Gu3fjnNgEvWNsr iXBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JyaUkQuIyJoeFM+aEDlAzk2ObFHbusZSFKanutxk4Kk=; b=D0XQULnA+TwBtUqGb8ExdjDvARwZEkA0mY8/VbJioH8KEEI+hqiOTw8lZOA6VvkuiZ TUakLActQnSFf0OthmFqlMKEWwbBH1/RSD8P0gyKgb9BE+g7NK/OZe1cMoYyd9r32f+1 KS9o5Owf5eg6A6XVVWL5aPSHvRNhcaig301k+ujmY3FgE+H7+0qR2sGVWRy6QnkBYm5D xcFfyyVUwuO4rZDmfsdgK5U1JM4HCNat4Xtu+afa3OVPBjjQq+fiWp48Kr8z7KF6zjpa x1GfiOQzPq2WbRIY4irUVtYBk+GYG6oLll6QVZOwz8dwb4hOEELO6+5WYG+OTs/ZQ9Tg wuJA== X-Gm-Message-State: AOAM531x+11EC8Dl9mhlBiPV2/lYxmKSx90ogpXBsQbXXXacD9qyrEz8 hxF3yGHHW1RcJDJon/dwGWML5UcaC21qNi14X/H40Q== X-Received: by 2002:a9d:74d4:: with SMTP id a20mr15883836otl.28.1623732231944; Mon, 14 Jun 2021 21:43:51 -0700 (PDT) MIME-Version: 1.0 References: <20210607113840.15435-1-bhupesh.sharma@linaro.org> <20210607113840.15435-2-bhupesh.sharma@linaro.org> In-Reply-To: From: Bhupesh Sharma Date: Tue, 15 Jun 2021 10:13:41 +0530 Message-ID: Subject: Re: [PATCH 1/8] dt-bindings: qcom: rpmh-regulator: Add compatible for SA8155p-adp board pmics To: Bjorn Andersson Cc: linux-arm-msm@vger.kernel.org, Linus Walleij , Liam Girdwood , Mark Brown , Vinod Koul , Rob Herring , Andy Gross , devicetree , Linux Kernel Mailing List , "open list:GPIO SUBSYSTEM" , bhupesh.linux@gmail.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 14 Jun 2021 at 21:58, Bjorn Andersson wrote: > > On Mon 14 Jun 03:05 CDT 2021, Bhupesh Sharma wrote: > > > Hello Bjorn, > > > > Thanks for the review comments. > > > > On Fri, 11 Jun 2021 at 08:18, Bjorn Andersson > > wrote: > > > > > > On Mon 07 Jun 06:38 CDT 2021, Bhupesh Sharma wrote: > > > > > > > Add compatible strings for pmm8155au_1 and pmm8155au_2 pmics > > > > found on SA8155p-adp board. > > > > > > > > Cc: Linus Walleij > > > > Cc: Liam Girdwood > > > > Cc: Mark Brown > > > > Cc: Bjorn Andersson > > > > Cc: Vinod Koul > > > > Cc: Rob Herring > > > > Cc: Andy Gross > > > > Cc: devicetree@vger.kernel.org > > > > Cc: linux-kernel@vger.kernel.org > > > > Cc: linux-gpio@vger.kernel.org > > > > Cc: bhupesh.linux@gmail.com > > > > Signed-off-by: Bhupesh Sharma > > > > --- > > > > .../devicetree/bindings/regulator/qcom,rpmh-regulator.yaml | 2 ++ > > > > 1 file changed, 2 insertions(+) > > > > > > > > diff --git a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml > > > > index e561a5b941e4..ea5cd71aa0c7 100644 > > > > --- a/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml > > > > +++ b/Documentation/devicetree/bindings/regulator/qcom,rpmh-regulator.yaml > > > > @@ -55,6 +55,8 @@ properties: > > > > - qcom,pm8009-1-rpmh-regulators > > > > - qcom,pm8150-rpmh-regulators > > > > - qcom,pm8150l-rpmh-regulators > > > > + - qcom,pmm8155au-1-rpmh-regulators > > > > + - qcom,pmm8155au-2-rpmh-regulators > > > > > > Looking at the component documentation and the schematics I think the > > > component is "PMM8155AU" and we have two of them. > > > > > > Unless I'm mistaken we should have the compatible describe the single > > > component and we should have DT describe the fact that we have 2 of > > > them. > > > > If we refer to the PM8155AU device specifications, there are two > > regulators mentioned there PMM8155AU_1 and PMM8155AU_2. Although most > > parameters of the regulators seem similar the smps regulator summary > > for both appear different (Transient Load, mA ratings etc). > > > > Although most of these differences don't probably matter to the Linux > > world, others like the gpios on the pmic are different. > > > > So, IMO, it makes sense to mention the different pmic types on the board. > > > > Please let me know your views on the same. > > > > Afaict, they are both physically the same component, but there is some > configuration differences between them. I don't see any differences that > will show up in Linux, but afaict we would capture those in the DT > anyways. > > Let me know if you see anything I'm missing, but I think we should have > a single compatible. As discussed on IRC, let's go with the approach you suggested (I can propose followup patches if I find something amiss). I will send a v2 shortly. Thanks, Bhupesh