Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1862281ybv; Thu, 6 Feb 2020 11:09:20 -0800 (PST) X-Google-Smtp-Source: APXvYqzHtdjcN3JNwd/tEl9KfBO8ZAhwbJyS8G8C52pMANVGPiRrX1S8XnR+FJc8mhogGSVTfR1p X-Received: by 2002:a05:6830:15c2:: with SMTP id j2mr29806894otr.351.1581016160202; Thu, 06 Feb 2020 11:09:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581016160; cv=none; d=google.com; s=arc-20160816; b=Mn9zw+6gYOOFgXpjMW4OLVjFqqFGqo1tEo/URv17JlBFRiNYtw4kjth4Jd9NMe15Ht ORW9wVxm61x9737r5F8Mq6ErOPtPhlncNWCtl2Z/jumz911nF6YFrl7cKAXM1410gu79 zjeYIvq7L+fZeECXjjeWXHoSR967mOY5WZ2V0/Xk6QHY8kC/WfSFfwN0Lq/fr2z/BrK+ woVg0Vf1AX7ZcMeINwjqsf0Oh+m7y/rLE912a7Iq+DvaAifUZ3S/pu/m0HcEwzzeAfqL k+SVS+Hcp7RyQ83woPIAjLpSMIPgtjXHa7YiXt7SNKbH6SBpxoDB1lvQ1otJ+LsfOOmW aq1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:user-agent:from:to:cc:subject :references:in-reply-to:content-transfer-encoding:mime-version :message-id:dkim-signature; bh=JH73fAwhfkMNbW4kUyEFGAKqreY4Y4GoPK5G9xNxjhs=; b=XTM8kfhvLLkI81GZ6ZRSUhKhQQpRhJLbpwvEaA5MyNbwmuHOnPWC052qbOya+Fzd8+ 474BEok2CA0ZmGZLbNsIhN4Gie2dsoq2E/jtsrCFAS010eDC2hzSOssspe6cQBqfPhl+ OYJY/6FvxcLsOxKr4Ke1vc5YfzX+qYkZcNlIRlwfqyjIYS+RX3VvY8lfpADYYTV9iyiv FRrj97aURyZHppthV530irs5Kg6sdqc93y2Q6Nwhln7RERN/twd1nRU5ww7h06r4s2S3 ukSyGblA32S9blGA/tJ/gLohkF35gOypaG1fdKesHTT0c0qz3Fo6UThIFV2gJZz/8xMw No/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=GCt8JJ62; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si270874otn.122.2020.02.06.11.09.07; Thu, 06 Feb 2020 11:09:20 -0800 (PST) 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=pass header.i=@chromium.org header.s=google header.b=GCt8JJ62; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727922AbgBFTHA (ORCPT + 99 others); Thu, 6 Feb 2020 14:07:00 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:40266 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727891AbgBFTG7 (ORCPT ); Thu, 6 Feb 2020 14:06:59 -0500 Received: by mail-pg1-f196.google.com with SMTP id z7so3198697pgk.7 for ; Thu, 06 Feb 2020 11:06:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=message-id:mime-version:content-transfer-encoding:in-reply-to :references:subject:cc:to:from:user-agent:date; bh=JH73fAwhfkMNbW4kUyEFGAKqreY4Y4GoPK5G9xNxjhs=; b=GCt8JJ62GzWZuf0t6fb8CNqtqnybSN/RQrt9/vyiGSVnlmRxprreQ6vYGYBLZdfolo sHhU6AXhdZIFrqMi/FUvbt1k5jTH38l1icqf3JcbmWzVv1kjuyWfRfKQXCd+BcXjPh4P jiIqx1nFMHebC14BN9dvDGQySMksuDH7bNu80= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:mime-version :content-transfer-encoding:in-reply-to:references:subject:cc:to:from :user-agent:date; bh=JH73fAwhfkMNbW4kUyEFGAKqreY4Y4GoPK5G9xNxjhs=; b=cMezW4E0ghCUfK2itW7oCqXgT1SjKVEROfqJDsd6/AGq1w1LYJ0830qWcrjB+NlKrB FsumJhqYWcTand0NS49GPS3Qye5jzZR+zfozo0wU81eKiy9xa22aVmV9WLcn6ZfdlTWd MzEPz/OP2sdqchSso/PcIh7Zqv1DhFGUFXdwrWzt0RX/H9eX8NSzFHFIQernDzNy/YbW fIrCUrQ3D2vPUYKAozYO/y8TRrhUzsWTwmNjxdqBUoFWzUpMaMVEGkG99J7G36GSAXUX jmxatr/GLWTYhiemmKOvpSZgEJ4b2my0WPN/2N9NiGI6k+fKmvG7unJCJLnd7SipJYDR VyvQ== X-Gm-Message-State: APjAAAXh+R4oSXbsWlp35EW7DdEDGBv6ovg70E1wHttTKZFBPEjrti77 AvzImvT3bC0sSJRD2t9Q4IFyCw== X-Received: by 2002:a63:7c2:: with SMTP id 185mr5133841pgh.446.1581016017057; Thu, 06 Feb 2020 11:06:57 -0800 (PST) Received: from chromium.org ([2620:15c:202:1:fa53:7765:582b:82b9]) by smtp.gmail.com with ESMTPSA id 199sm156429pfv.81.2020.02.06.11.06.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 11:06:56 -0800 (PST) Message-ID: <5e3c63d0.1c69fb81.c2bba.0957@mx.google.com> Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable In-Reply-To: <1580997328-16365-1-git-send-email-kgunda@codeaurora.org> References: <1580997328-16365-1-git-send-email-kgunda@codeaurora.org> Subject: Re: [PATCH V3 1/2] mfd: qcom-spmi-pmic: Convert bindings to .yaml format Cc: rnayak@codeaurora.org, Kiran Gunda To: Andy Gross , Bjorn Andersson , Kiran Gunda , Lee Jones , Mark Rutland , Rob Herring , devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org From: Stephen Boyd User-Agent: alot/0.8.1 Date: Thu, 06 Feb 2020 11:06:55 -0800 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Kiran Gunda (2020-02-06 05:55:26) > Convert the bindings from .txt to .yaml format. >=20 > Signed-off-by: Kiran Gunda > --- Did something change? Is there a cover letter? > diff --git a/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml b/= Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml > new file mode 100644 > index 0000000..affc169 > --- /dev/null > +++ b/Documentation/devicetree/bindings/mfd/qcom,spmi-pmic.yaml > @@ -0,0 +1,115 @@ > +# SPDX-License-Identifier: GPL-2.0-only > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/bindings/mfd/qcom,spmi-pmic.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm SPMI PMICs multi-function device bindings > + > +maintainers: > + - Lee Jones > + - Stephen Boyd Please change this to sboyd@kernel.org > + > +description: | > + The Qualcomm SPMI series presently includes PM8941, PM8841 and PMA8084 > + PMICs. These PMICs use a QPNP scheme through SPMI interface. This first sentence will need continual updating. Please drop it. > + QPNP is effectively a partitioning scheme for dividing the SPMI extend= ed > + register space up into logical pieces, and set of fixed register > + locations/definitions within these regions, with some of these regions > + specifically used for interrupt handling. > + > + The QPNP PMICs are used with the Qualcomm Snapdragon series SoCs, and = are > + interfaced to the chip via the SPMI (System Power Management Interface= ) bus. > + Support for multiple independent functions are implemented by splittin= g the > + 16-bit SPMI slave address space into 256 smaller fixed-size regions, 2= 56 bytes > + each. A function can consume one or more of these fixed-size register = regions. > + > +properties: > + compatible: > + enum: > + - qcom,pm8941 > + - qcom,pm8841 > + - qcom,pma8084 > + - qcom,pm8019 > + - qcom,pm8226 > + - qcom,pm8110 > + - qcom,pma8084 > + - qcom,pmi8962 > + - qcom,pmd9635 > + - qcom,pm8994 > + - qcom,pmi8994 > + - qcom,pm8916 > + - qcom,pm8004 > + - qcom,pm8909 > + - qcom,pm8950 > + - qcom,pmi8950 > + - qcom,pm8998 > + - qcom,pmi8998 > + - qcom,pm8005 > + - qcom,spmi-pmic I think we want qcom,spmi-pmic to be there always. To do that we need it to look like: compatible: items: enum: - qcom,pm8941 ... enum: - qcom,spmi-pmic > + > + reg: > + maxItems: 1 > + description: > + Specifies the SPMI USID slave address for this device. > + For more information see Documentation/devicetree/bindings/spmi/sp= mi.txt > + > +patternProperties: > + "^.*@[0-9a-f]+$": > + type: object > + description: > + Each child node of SPMI slave id represents a function of the PMIC= . In the > + example below the rtc device node represents a peripheral of pm8941 > + SID =3D 0. The regulator device node represents a peripheral of pm= 8941 SID =3D 1. > + > + properties: > + compatible: > + description: > + Compatible of the PMIC device. > + > + interrupts: > + maxItems: 2 > + description: > + Interrupts are specified as a 4-tuple. For more information > + see Documentation/devicetree/bindings/spmi/qcom,spmi-pmic-arb.= txt Just make this bindings/spmi/qcom,spmi-pmic-arb.txt so that we don't have to worry about it. Why is max items 2? Isn't it 4? Is this property supposed to be specified at all? > + > + interrupt-names: > + description: > + Corresponding interrupt name to the interrupts property Does this need to be specified either? > + > + required: > + - compatible > + > +required: > + - compatible > + - reg > + > +examples: > + - | > + spmi { > + compatible =3D "qcom,spmi-pmic-arb"; > + #address-cells =3D <2>; > + #size-cells =3D <0>; > + > + pm8941@0 { pmic@0 > + compatible =3D "qcom,pm8941"; > + reg =3D <0x0 0x0>; Why not include the header file to get the SPMI_USID macro? > + > + rtc { > + compatible =3D "qcom,rtc"; > + interrupts =3D <0x0 0x61 0x1 0x1>; > + interrupt-names =3D "alarm"; > + }; > + }; > + > + pm8941@1 { pmic@1 > + compatible =3D "qcom,pm8941"; > + reg =3D <0x1 0x0>; > + > + regulator { > + compatible =3D "qcom,regulator"; > + regulator-name =3D "8941_boost"; > + }; > + }; > + }; > +... > --=20 > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project