Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp680169ybt; Wed, 17 Jun 2020 11:05:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1ufztyUkAFlFVzFP/hN4VsR452F/XG8LJs8opG6kkaQg3irDCNqRUHvG+YRBkDiacXIuo X-Received: by 2002:a17:906:af76:: with SMTP id os22mr329534ejb.191.1592417111132; Wed, 17 Jun 2020 11:05:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592417111; cv=none; d=google.com; s=arc-20160816; b=CjlDdAz/0ogU24l2N3wiBEaKSP0/RGfqKiveG/wmUGG7H0pUterrogav/851+ZOZYY 2leICQfMG77poWYBi8iQjPPM7zzncsENz6R7SPHrY5vxybg5ZUDYP3dT7mghzKFiP9wm 3gCIkl3X6A2HSFCsJHJ7yaHBH3e9uWoCU0AEGh0w3+cqeZauf/svsaVdFjXaH2mQ0pun xCuJzAdgcRMrhqeZPFvTM2Cu2RUIdhkcV7uJtNqEshfPb0Q9QQ+yFKnoX+GGq/Vck3Aw cK/SFlkINIs3JgqdXLU+IeCmDRQWT9gKf8R5ztbGIEn1KkvYPqe6wHTD2H1WNr6Zfled JMSg== 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 :dmarc-filter:dkim-signature; bh=AeAXk33hC2QGvVdME9/+b4Gj7uF3RQv9KrEUH2pVRD8=; b=jKnZ4VuYgtimFLVU9xsuaDjM70RO9Zd1GvofaKgIdx2hagqPzXtks+5rZfS+38Z3O8 8EssZCqpDq8tQQ9VOUUe8eALQGWnGkfqM/MNjzEiMU3f7eSibk/lWQQx+V24x+wm8Wyv B/vMwVzeWYTKJlV5cD1/4/7QgR/OCl3QAJFKcaqSmi0Xw0JZX+sDJMC84oQFURUeiuMA 3RIfNtKs9pAJR2zqhvvUjgYKyT41tCdoG9vFAT3Zum+R2g0BLHBFPquu+KjRbff9TXj1 q9jR/mF3f0ODOPAsX/vjkapNkkGxjHvhEnpxxUiqcWjGWHULdZqf8SjbG+0WHW4l1tOM oPbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Gjk1bNRR; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h1si443126edq.86.2020.06.17.11.04.48; Wed, 17 Jun 2020 11:05:11 -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=fail header.i=@mg.codeaurora.org header.s=smtp header.b=Gjk1bNRR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727115AbgFQSCz (ORCPT + 99 others); Wed, 17 Jun 2020 14:02:55 -0400 Received: from mail29.static.mailgun.info ([104.130.122.29]:11729 "EHLO mail29.static.mailgun.info" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727101AbgFQSCx (ORCPT ); Wed, 17 Jun 2020 14:02:53 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.codeaurora.org; q=dns/txt; s=smtp; t=1592416972; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=AeAXk33hC2QGvVdME9/+b4Gj7uF3RQv9KrEUH2pVRD8=; b=Gjk1bNRRQQ8dRRk9MbQEZ/VB45pEWbcAtYHdL2fVYF0RSFTY1+AywiH6xTd9XJ1jEP0c30ru YwbVeB7Qz9LDQN5Mvtzi1ZIOBsaU8OC1orY6P3QckW/jFuoAc+6z6By5khmaR+7OfNQiBww0 8imxJijRmhycYD+2PRG8hiLqmGg= X-Mailgun-Sending-Ip: 104.130.122.29 X-Mailgun-Sid: WyI0MWYwYSIsICJsaW51eC1rZXJuZWxAdmdlci5rZXJuZWwub3JnIiwgImJlOWU0YSJd Received: from smtp.codeaurora.org (ec2-35-166-182-171.us-west-2.compute.amazonaws.com [35.166.182.171]) by smtp-out-n15.prod.us-east-1.postgun.com with SMTP id 5eea5ab1356bcc26ab0a1471 (version=TLS1.2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256); Wed, 17 Jun 2020 18:02:25 GMT Received: by smtp.codeaurora.org (Postfix, from userid 1001) id 42C09C433B1; Wed, 17 Jun 2020 18:02:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-caf-mail-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=2.0 tests=ALL_TRUSTED,SPF_NONE, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from wcheng-linux.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: wcheng) by smtp.codeaurora.org (Postfix) with ESMTPSA id B62E2C433C8; Wed, 17 Jun 2020 18:02:22 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org B62E2C433C8 Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: aws-us-west-2-caf-mail-1.web.codeaurora.org; spf=none smtp.mailfrom=wcheng@codeaurora.org From: Wesley Cheng To: heikki.krogerus@linux.intel.com, mark.rutland@arm.com, broonie@kernel.org, bjorn.andersson@linaro.org, gregkh@linuxfoundation.org, lgirdwood@gmail.com, agross@kernel.org, robh+dt@kernel.org Cc: linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, jackp@codeaurora.org, rdunlap@infradead.org, bryan.odonoghue@linaro.org, lijun.kernel@gmail.com, Wesley Cheng Subject: [PATCH v3 5/6] dt-bindings: regulator: Add dt-binding for QCOM PMIC VBUS output regulator Date: Wed, 17 Jun 2020 11:02:08 -0700 Message-Id: <20200617180209.5636-6-wcheng@codeaurora.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200617180209.5636-1-wcheng@codeaurora.org> References: <20200617180209.5636-1-wcheng@codeaurora.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 This describes how to enable the Qualcomm PMIC VBUS booster used for providing power to connected USB peripherals when the USB role is host mode. The driver itself will register the vbus_usb regulator, so that external drivers can utilize the enable/disable regulator APIs. Signed-off-by: Wesley Cheng --- .../regulator/qcom,usb-vbus-regulator.yaml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml b/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml new file mode 100644 index 000000000000..2fa76111cfb9 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/qcom,usb-vbus-regulator.yaml @@ -0,0 +1,41 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/qcom,usb-vbus-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: The Qualcomm PMIC VBUS output regulator driver + +maintainers: + - Wesley Cheng + +description: | + This regulator driver controls the VBUS output by the Qualcomm PMIC. This + regulator will be enabled in situations where the device is required to + provide power to the connected peripheral. + +properties: + compatible: + enum: + - qcom,pm8150b-vbus-reg + + reg: + maxItems: 1 + description: VBUS output base address + +required: + - compatible + +additionalProperties: false + +examples: + - | + pm8150b { + #address-cells = <1>; + #size-cells = <0>; + qcom,dcdc@1100 { + compatible = "qcom,pm8150b-vbus-reg"; + reg = <0x1100>; + }; + }; +... -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project