Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1266121ybk; Thu, 14 May 2020 04:52:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzYnjQzFB6WvKvQ3/hW+DVzKMm9D95dFxXakZ8SOVoxlNsFdY1G86oNYoveE3pbIPE7V3qg X-Received: by 2002:a17:906:ece4:: with SMTP id qt4mr3565549ejb.162.1589457137574; Thu, 14 May 2020 04:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589457137; cv=none; d=google.com; s=arc-20160816; b=FHB34N6Zi3Ba2gd4//cHAiyEI3Er2LWovBmhEUFbYqAbTJdDHGbSvJCu5y+h0IbV7b ODe+deAz+z7GkrYoynqAbrBQlYhgGqC8GL+bDbj55AQuFWq2disz3S1MZqteAkWm5Q8X prpMspap04S7jHLCB5L3vsrGE8Qd48QjPHvUyS0Al3EapUol2bChkK3UiZwD9wdXZM1M myo5PICfMbUbQFnOXvSQNjmEgZ0DiJihMWX1lMBE4Yp8ULewKLBpebMDUEpS1uy9aQ5F rzoV4zzfqh6EsXMzSajr1xtOn4s9b0ddoUMpwtY1pCZ1PDhZv/KhbbaSXftsmQTCYen4 HUyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2rW2p6WUMtKGhozEHKEEts3+I7kg5DxNuGw6wF1CLEM=; b=pul1njoVlct9izxIaasC+lwunMDdcQhsFFiQsLt7ykL0F9wuZO+y9rnnvdGaxSJRnH QRdq8RSGf9URdQ1vEeU261hQ3A77hD7PWZPtUvT/fAkBfAnKVgIxJEovLscYN4Tz0Qbz lJqYtR/vZrEj8noXPB36+9mxFroTlJy2bvZA2+KWqbdQ6Dsx6ogT4lmF3hd5/mWurf42 IwBnx8YHqXqKZ1tI7S7fPdfyzIEoKT7g2lOCjPINuKXW14PU0XcixoPiekYZUE/uV0rU uneq2dTLg3avGNeLlM1gPfG9XqjooBK88qxsR4KnLFlz04hZS/xOB5xOJ0CmOqK5+jHh mmgA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PgX9XmdR; 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 g24si1377803edv.388.2020.05.14.04.51.53; Thu, 14 May 2020 04:52:17 -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=PgX9XmdR; 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 S1726203AbgENLuU (ORCPT + 99 others); Thu, 14 May 2020 07:50:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726161AbgENLuU (ORCPT ); Thu, 14 May 2020 07:50:20 -0400 Received: from mail-oi1-x243.google.com (mail-oi1-x243.google.com [IPv6:2607:f8b0:4864:20::243]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AAEF1C061A0C for ; Thu, 14 May 2020 04:50:18 -0700 (PDT) Received: by mail-oi1-x243.google.com with SMTP id p127so4779830oia.13 for ; Thu, 14 May 2020 04:50:18 -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=2rW2p6WUMtKGhozEHKEEts3+I7kg5DxNuGw6wF1CLEM=; b=PgX9XmdRqisszbkjsPpa0Gwr80htE0F274IforjKb38R1tfcW11dwHs2ltBT8O+9fs I8N0ECtStEWmdyk46K3lfbNha7034uGa8mbVnsf+RwbOV0RuiLuAy8e31/Gq2a9erGa2 SQOdksP93nrOk3G50CG0Mrdgs6pSta7q97WldtKfqCcvEvZFWcW4mQIbrkPM1S3KXzbe sqmXCiSe5ZBff4+yGsR3k+Y6mlRRjG50mUAN5ndp5ka4bWE4TtaSptw3oawBOqpPUwSX u1RCfDoPEUOVBYzAcjOG0GEJzxnJfxeaEiHxKjU7vMic9oKzxs8rSxrXDSQp0Uo+CU8G Q8Tg== 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=2rW2p6WUMtKGhozEHKEEts3+I7kg5DxNuGw6wF1CLEM=; b=G/+brfoPrP+LFr2sMcBn1WPXPBE4pON+jVj+5SYBhpU8hEEq9zDjMftvSuZzzFbVlw 1SP7t7EHfUhp1XSEIraZbMYzb4crJZlj4M3jhb8fRoQhmiHHhI9iuH0eRiSKpU1Hc9Ya cXyHJwgpybF4CFC5xtrRP7/Ri2s55G5W8aLw13Yv/bzhmg3wtazRTFcyw5bf+UC5HbJG rl7N1ShFJX3GqJ2Lf3KsVSwKF1MkyxVcnM14NMJ3ldce8k0W/hHcR/FhpKC+QTKb0J30 DM0LvKNTlUDtIxguuF35hzm3Dm9a14UCx27jsA4p5RQ5AUGLxqk7wmL+n9RGLbo0UAxL qItQ== X-Gm-Message-State: AOAM533GFqJ6fTDdyM898d1KJWw1YK4IPdg43zEkOJlYldJng72zS96e qeOctOp3l8hJL56Lndcvt5dB+Gn7pLvXrS5URFMLBQ== X-Received: by 2002:a05:6808:9ab:: with SMTP id e11mr4680289oig.119.1589457017820; Thu, 14 May 2020 04:50:17 -0700 (PDT) MIME-Version: 1.0 References: <20200508204200.13481-1-sumit.semwal@linaro.org> <20200508204200.13481-2-sumit.semwal@linaro.org> <20200512014339.GE57962@builder.lan> In-Reply-To: <20200512014339.GE57962@builder.lan> From: Sumit Semwal Date: Thu, 14 May 2020 17:20:06 +0530 Message-ID: Subject: Re: [v2 1/4] dt-bindings: regulator: Add labibb regulator To: Bjorn Andersson Cc: agross@kernel.org, lgirdwood@gmail.com, Mark Brown , robh+dt@kernel.org, Nisha Kumari , linux-arm-msm@vger.kernel.org, LKML , devicetree@vger.kernel.org, kgunda@codeaurora.org, Rajendra Nayak Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Bjorn, Thanks for the comments! On Tue, 12 May 2020 at 07:15, Bjorn Andersson wrote: > > On Fri 08 May 13:41 PDT 2020, Sumit Semwal wrote: > > > From: Nisha Kumari > > > > Adding the devicetree binding for labibb regulator. > > > > Signed-off-by: Nisha Kumari > > Signed-off-by: Sumit Semwal > > Sorry, I missed this when we talked about it. But please rewrite this in > yaml. Sure, I will. > > > > > -- > > v2: updated for better compatible string and names. > > --- > > .../regulator/qcom-labibb-regulator.txt | 47 +++++++++++++++++++ > > 1 file changed, 47 insertions(+) > > create mode 100644 Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.txt > > > > diff --git a/Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.txt b/Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.txt > > new file mode 100644 > > index 000000000000..6e639d69f780 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.txt > > @@ -0,0 +1,47 @@ > > +Qualcomm's LAB(LCD AMOLED Boost)/IBB(Inverting Buck Boost) Regulator > > + > > +LAB can be used as a positive boost power supply and IBB can be used as a negative > > +boost power supply for display panels. Currently implemented for pmi8998. > > + > > +Main node required properties: > > + > > +- compatible: Must be: > > + "qcom,pmi8998-lab-ibb" > > +- #address-cells: Must be 1 > > +- #size-cells: Must be 0 > > But the children doesn't have reg properties... Oh, right. Let me correct that. > > > + > > +LAB subnode required properties: > > + > > +- interrupts: Specify the interrupts as per the interrupt > > + encoding. > > +- interrupt-names: Interrupt names to match up 1-to-1 with > > + the interrupts specified in 'interrupts' > > + property. > > Do specify the expected string (and given that you already have the > lab & ibb subnodes, you don't need to include this in the string). Yes, agreed. Keeping it as 'sc-err' makes the code easier too. > > Regards, > Bjorn Best, Sumit. > > > + > > +IBB subnode required properties: > > + > > +- interrupts: Specify the interrupts as per the interrupt > > + encoding. > > +- interrupt-names: Interrupt names to match up 1-to-1 with > > + the interrupts specified in 'interrupts' > > + property. > > + > > +Example: > > + pmi8998_lsid1: pmic@3 { > > + labibb { > > + compatible = "qcom,pmi8998-lab-ibb"; > > + #address-cells = <1>; > > + #size-cells = <0>; > > + > > + lab: lab { > > + interrupts = <0x3 0xde 0x0 IRQ_TYPE_EDGE_RISING>; > > + interrupt-names = "lab-sc-err"; > > + }; > > + > > + ibb: ibb { > > + interrupts = <0x3 0xdc 0x2 IRQ_TYPE_EDGE_RISING>; > > + interrupt-names = "ibb-sc-err"; > > + }; > > + > > + }; > > + }; > > -- > > 2.26.2 > >