Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2729381ybt; Mon, 22 Jun 2020 05:43:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpQF7W2J54L00LMzB8U/tWIysb7+GNCyofhHM7j0TdXf8BIPQ075rcs3wXtKhHPGVCyyaZ X-Received: by 2002:a17:906:4b54:: with SMTP id j20mr11210510ejv.259.1592829829787; Mon, 22 Jun 2020 05:43:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592829829; cv=none; d=google.com; s=arc-20160816; b=kJuP84ilyOwZJkwp296FeSGDZdDQ1aaPVkUmpX9fcFOiEGPslPHU8J5+eYB6U/mTdA Pey/MhQuaI6pnRV2PQc5G5MNcCpE3s7PFBMISjyP4ySbegBvzfA3i1/2B1f8zlEg1X/k RYDphlbL+WG+szbHrbsZH/z4KsqVcQPXGL44IikBAqZqdXQisDzdgnLKDDFbpAH+wiM2 MoDPWElnNDzKRKovs31c8k6LLEdpvoTyr3q4AaBq1b7mhpQk0R3cvJM8XCMzpkPa5rA9 nMiGgWuCRRUZSrF8zyPvlE74rBZ6mvtZbQVlu18dMeZ2f797GT6ngRfTMlhtg46rG+KP rQJQ== 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=d3+t5f1xOfjQEpUWjOfj/Y3hsZ43K2q+eqNrB/2mW1H1FPBUVjdr8PJca1B6J2PPDW QWyGMeWR2TDlrKVYcTElF7QGk0v+9ad3Mh03EHRngP54h55OKKAYp1vYEa2XVc9thilW oOflLK6qcraGkv9XYURsEUHwpTEIpF9IZl/7ehUk8lGzD6VvEQpolFTn/VRK2a+qiBy2 3p5Vy0KF2S1jyWTFlSKNlEJ7GrHJfEQNm3Ec0WBmb2dKekhd5BVqwJPFusM6r1Q0K32t K7SWGQf4da51W7o9+To3uRWoznh4YsMuad51wIEhtiHCrmZwEP3wVvrCwmjVslClavty qJVA== 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-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 v7si4546646edd.252.2020.06.22.05.43.24; Mon, 22 Jun 2020 05:43:49 -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=R4lWAbAy; 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 S1728232AbgFVMld (ORCPT + 99 others); Mon, 22 Jun 2020 08:41:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728211AbgFVMl3 (ORCPT ); Mon, 22 Jun 2020 08:41:29 -0400 Received: from mail-pl1-x642.google.com (mail-pl1-x642.google.com [IPv6:2607:f8b0:4864:20::642]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BE956C061795 for ; Mon, 22 Jun 2020 05:41:28 -0700 (PDT) Received: by mail-pl1-x642.google.com with SMTP id k6so7516537pll.9 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=Qevrahx+h5rL5l8W9KbD8Jd3hNAN2hQTBA7LBrZOEDpYRhQ6qbqrp6gfnOYmK+wAbH BeuBmpWHVmRox4k6HVKBpTRdDvDI1xyYgXLEwwyMV/zke4UyKce1md36+Y1N9/Jj82SC O41EtW2PFG8nAZFs9PZ6QpT9LWRTe2QOmxfy9/CZjQco0NNAJUeuAppF0eUWGfYHT+t/ HEEVk+IQRYcmw9bC1ppK/IOHbNBFjxztoznnqR09w9z+pMCHubHsRAazlBpfu9rS4qZ5 HoNpXyw69OKjT8rYW4jghI2S8TnFYTl7lTilBsFurS5k4zWMb60Px7U46muPIa2Ej6Pv Bb4Q== X-Gm-Message-State: AOAM530unwSCHzmR8hy3gg4koWzMpxBczRnSNJlSUDQsZPOl9LKL+ISs oR1poqsjTfobkrjn9VzovFBYzA== 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 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