From patchwork Mon Jun 22 12:41:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sumit Semwal X-Patchwork-Id: 191324 Delivered-To: patch@linaro.org Received: by 2002:a92:1f07:0:0:0:0:0 with SMTP id i7csp1003474ile; Mon, 22 Jun 2020 05:41:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpPSyz6xR+3HNwmL+yiyMyl0P9g9/9iYGfgr7DJ3GT6XUSCeAh0sqtZ7lVtf0QRMdU0pqM X-Received: by 2002:a17:906:74dc:: with SMTP id z28mr11550237ejl.402.1592829693542; Mon, 22 Jun 2020 05:41:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592829693; cv=none; d=google.com; s=arc-20160816; b=XRJAJWGT5TkI1rOlqYrvUxD6mfqvavaSs960GjUASxX+NPJdFDx9EZj7WMsbgRbZgq aeKtEYmgXzy+5pEpYfhRRTF9BvBmvOr+knp8+SSDiu85Me/k4eGFa5+fB2iX1lpJT5NJ O4Cn7QBepZmDMa8ZiFqg5kPpMpjh6wq+GBR1RddcCouC0Br6AZevk5sCt84qgf1+obkG cMCHjDjenuDsjmDI6Pmp1UCCIXLjGppvi4cYj3OpDCYJgwpydMh0jYgNY/l6zIRX+SnR LRW+cQeUJQDGdFNENIlMsUKcf2KRTjWRxzsmKpUe5Tjcb8WnH9CKNKCOX/gv0tY1f7cL XC6w== 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=zzD9UsFrs4S41bdjbFBDrhP5Ew6END1GGr9h9un+kiKraNaE0S/3SBkhPOqT1fVQOW vJAhpHt2H0THmYELIJGduFuRXwnBxSx9wSFxL4ejK7Zg+KpsU0zza9o1PPzLiD1AGl4T lq5XCA+vTa+BFfqkyh8IJ+EB2RlIj9MS2oR4y1acpATj4JbUxXEgVXOC+NhthAIiHgkO PHD7dZ/nZK4/eVg7HUfNHvuRtP/c+BH4/ijMNNHkiPGKveBhnXS92Qs3fHHoKao3LxrR CN3bsniPClaCRhXmP4JZbVXj9v6ZDPg5xQnvxuqUwKVKVEnb9Tc1dTn3yJ3YZZJ2grVf MrSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=R4lWAbAy; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 g3si8920884ejm.90.2020.06.22.05.41.33; Mon, 22 Jun 2020 05:41:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-msm-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=R4lWAbAy; spf=pass (google.com: domain of linux-arm-msm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1728225AbgFVMlc (ORCPT + 16 others); Mon, 22 Jun 2020 08:41:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40354 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726652AbgFVMl3 (ORCPT ); Mon, 22 Jun 2020 08:41:29 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE8E4C061794 for ; Mon, 22 Jun 2020 05:41:28 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id d6so8554807pjs.3 for ; Mon, 22 Jun 2020 05:41:28 -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=R4lWAbAyHu9KxYc2D26QmPW0EzdSxRA14BMpucKfCZKXmWSS5xQPtp1KPUl/5gc1yM 45xbjqEWZNUzicGnVd0h97NXUOHwfNtutRUkkFvyF42E2HdGKQI8vyhmq0jqolso5Ubt iJy6t2lCfL/MyS3nhniaBsv/+FzEQ6FMnZ8X4NskCUTjOE9HKuMS2BPzyPKIpmBuWCNc ThozBEdrLUBljKvhN6Y4wYTaj5oBIFz/6KAGf0p364/QbGZOaG3pnWP7yXbx9Q/a8brj f/Neu1dgNDj41iC93Sv6Arqx07vjhGAUslNeIH/y0ynZwv+wE07bJEGJIOIDI3IzNGTl qRig== 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=FdMNhutEq8wMrAw1NnTrqLB6grOevfmM3YLKBan0jZ7NDEkj/0Xq/L8Jy+++1u/XzY MWSAoV86F8Evr6w7MC5ETAzIxkMm+83shFOvaYxZ5HcRnqLQTw4QcOxhIEejaabgYBYd xna/jU1+Dkn3XfV7cXGdrOOYEFxYSLEcHphWfCn8DBu302X2Ub3WPpe9Y/lzYdwWeMlK Dgb5MUIM29oVkWy4rOO2Yhxzoskrz/+0kval2GPquOmIlaJqDA6hOJCsdxxL8JCogBUk bY3i4/JVZFslqaNb6tTXy+1up44NIzB8jO00XSmDG9P6iC2dGckjD8TkzuQPYpFiDL6I 5PzA== X-Gm-Message-State: AOAM533tp9EccRnyWTSTWzojUmsZiXvZPAXevMctuNRyUOwjsesAKX5i Nb8LLz8gGuN48C8oRgCKunQvqw== X-Received: by 2002:a17:90a:5c82:: with SMTP id r2mr7768404pji.161.1592829688267; Mon, 22 Jun 2020 05:41:28 -0700 (PDT) Received: from nagraj.local ([49.206.21.239]) by smtp.gmail.com with ESMTPSA id i62sm14590581pfg.90.2020.06.22.05.41.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Jun 2020 05:41:27 -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: [PATCH v5 2/4] dt-bindings: regulator: Add labibb regulator Date: Mon, 22 Jun 2020 18:11:08 +0530 Message-Id: <20200622124110.20971-3-sumit.semwal@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200622124110.20971-1-sumit.semwal@linaro.org> References: <20200622124110.20971-1-sumit.semwal@linaro.org> MIME-Version: 1.0 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@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 -- 2.27.0 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"; + }; + }; + +...