Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp271207ybt; Thu, 9 Jul 2020 22:31:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyWbYWt/AiJWq887/4KvT1vLgMhTfujI2jW8OwRkAMbOobhC4iK5p923nkeId1JCIzoN3jf X-Received: by 2002:a17:906:6a4f:: with SMTP id n15mr58341437ejs.378.1594359063503; Thu, 09 Jul 2020 22:31:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594359063; cv=none; d=google.com; s=arc-20160816; b=j1kGGwdvdSs7lS4rFX46XXi75Hf9jGPzscKoczs/v0pFpWmy459kkO9jdKz+6M6iSf tAxKMbowCQWEjNT7sPcqdx80Tj+Tb6nBL8OunFanoPfDTVNQ1LFO7hQMzogayLc0+lMC FnTXYYdiQRg7z2+307R4lCdXv+jSR8v5M/VyUa1+HUa/h33rQ5ciY99Hrf0PbKYPCwVG NEI2bk1tFihwK7tg786Krwuq/O6Kub9G88q51DH4maiA/BD4HklI8rrP9trgNsIALag7 GM4/BX4K4POCux+jkHdP5+Emrow0GPdO5+t81KaTm75RnAvE64lin+fIC8h6wTNpdahi 9FqQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LrEMg7fVwuiooc5MLW1OYb4mtJllfG4D6r8RWT/b3sw=; b=Ho/iZoev0gJOcxluyctBZ8mQ3pX/gi2YUMDpih46ogHG+9n+tLKzoMArJhbQbzZ/6C G3u/FcJVixIGLTElcG6NMMHF03lp99P3VEdvOiAxLZgwV8PRB7mYDlB1Wog9fUYuOVX/ 0aJPh7B1uexHBjbLICnhmA6eaD8sTfxdUV0iuEqQVk3UE/70s0CorR/BwCFjNGJtTDV2 3vAHYZbhCKODgYYejG4myoiRTlktzDLPg2c5hbyNw+2Q8iFcVk7Usu94S5VJXgGRbCIP Tz7nzFs6bXSuJvpaPR2tuEhVitlTAtwZREOb7Glmmlevervm/X7vSWwnT4tXQii+ASIk l5iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CxKCCTLO; 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 i25si3246290ejy.603.2020.07.09.22.30.41; Thu, 09 Jul 2020 22:31:03 -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=CxKCCTLO; 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 S1727916AbgGJF3o (ORCPT + 99 others); Fri, 10 Jul 2020 01:29:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45142 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727907AbgGJF3i (ORCPT ); Fri, 10 Jul 2020 01:29:38 -0400 Received: from mail-pg1-x544.google.com (mail-pg1-x544.google.com [IPv6:2607:f8b0:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CDA4C08C5CE for ; Thu, 9 Jul 2020 22:29:38 -0700 (PDT) Received: by mail-pg1-x544.google.com with SMTP id z5so2012798pgb.6 for ; Thu, 09 Jul 2020 22:29:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=LrEMg7fVwuiooc5MLW1OYb4mtJllfG4D6r8RWT/b3sw=; b=CxKCCTLOKqqO7JWvU/G5EMfnstNxEKb1dka1ZqN2gIG0tl7r6OoXteASnNM0OuOmCn uY37q2IhPbR0YnDfVYWZMQ/jZB0/KhlzbFs9uwB0acc6hJFqwNOqdw6YOGtzC88zBQ4R j7Ogf3SCL+KGm3OMvpbOyQsiQSGToa3Iid991VeWl0voTzjusSj6CrR3OnfIHdw2P+Kf mA4BVnwGiWJDxOuYGb6R9DGHBOiBORWpDl8UtnguLLpJrgVL+dYL5c31cYfhyc8wD2Dq B8TGiOMoNF4quqpHNPd5BmsoWRl6DyTlMYDNR+wKYlmdQE1CFBJuC7T+LMd9kWZCCQoX btgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=LrEMg7fVwuiooc5MLW1OYb4mtJllfG4D6r8RWT/b3sw=; b=AelE9irVVc6CIySAdEIn7ZHC6JWG1IoOIdJXD7NWFey/kmDlZB4mxepqy+NwTEAFkG wD4ECL4WSllq4ZMyzvItGw+RRb5z7svjsqdQb1hq/+PD+dm/W/1iQ6JgFdpnH07QTxQm iyKHKRGqGeKz1GzGdgQ+LjcDkSFPL0WEwe6VacssgQ9aXTfjgrGlW/vJmw4rr+avIFAV 8e2AXbpRolMUE6vNxJsnLQZUEtqiUdm55M0P6R7C6qc3KN01us2xHKQj9QWnQjJCERXO vJ7Faxg5xZG/GH/K2eYifSJMt8uol3w1aeezduwYAXKTpO7Ia5TzOLIfhVtKnrDSKnkg 3lwg== X-Gm-Message-State: AOAM530O6JRJBdoaZchrTXcnoqsDTxPQlemhQOwYascu3y4Uh6sTNFDY gZGmnaJzrF6i9CpLuNTjBcs95A== X-Received: by 2002:a05:6a00:1510:: with SMTP id q16mr58657852pfu.164.1594358978017; Thu, 09 Jul 2020 22:29:38 -0700 (PDT) Received: from nagraj.local ([49.206.21.239]) by smtp.gmail.com with ESMTPSA id j17sm4168320pgn.87.2020.07.09.22.29.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 22:29:37 -0700 (PDT) From: Sumit Semwal To: agross@kernel.org, bjorn.andersson@linaro.org, lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org Cc: nishakumari@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kgunda@codeaurora.org, rnayak@codeaurora.org, Sumit Semwal Subject: [RESEND PATCH v5 2/4] dt-bindings: regulator: Add labibb regulator Date: Fri, 10 Jul 2020 10:59:17 +0530 Message-Id: <20200710052919.2611-3-sumit.semwal@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200710052919.2611-1-sumit.semwal@linaro.org> References: <20200710052919.2611-1-sumit.semwal@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nisha Kumari Adding the devicetree binding for labibb regulator. Signed-off-by: Nisha Kumari Signed-off-by: Sumit Semwal [sumits: cleanup as per review comments and update to yaml] --- v5: Addressed review comments - removed interrupt-names, changed to dual license, added unevaluatedProperties: false v4: fixed dt_binding_check issues v3: moved to yaml v2: updated for better compatible string and names. --- .../regulator/qcom-labibb-regulator.yaml | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml new file mode 100644 index 000000000000..085cbd1ad8d0 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/qcom-labibb-regulator.yaml @@ -0,0 +1,70 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/qcom-labibb-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm's LAB(LCD AMOLED Boost)/IBB(Inverting Buck Boost) Regulator + +maintainers: + - Sumit Semwal + +description: + 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. + +properties: + compatible: + const: qcom,pmi8998-lab-ibb + + lab: + type: object + + properties: + + interrupts: + maxItems: 1 + description: + Short-circuit interrupt for lab. + + required: + - interrupts + + ibb: + type: object + + properties: + + interrupts: + maxItems: 1 + description: + Short-circuit interrupt for lab. + + required: + - interrupts + +required: + - compatible + +unevaluatedProperties: false + +examples: + - | + #include + + labibb { + compatible = "qcom,pmi8998-lab-ibb"; + + lab { + interrupts = <0x3 0x0 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "sc-err"; + }; + + ibb { + interrupts = <0x3 0x2 IRQ_TYPE_EDGE_RISING>; + interrupt-names = "sc-err"; + }; + }; + +... -- 2.27.0