Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1055088pxa; Thu, 20 Aug 2020 00:56:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHMi76mo2v0XjznT0m3fu3MnYv7fLjmBg6nUcWXrguPQ2udqjdUkIQm5oSdQYH0Q3B3SuM X-Received: by 2002:a50:d942:: with SMTP id u2mr1838773edj.0.1597910208073; Thu, 20 Aug 2020 00:56:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597910208; cv=none; d=google.com; s=arc-20160816; b=mD9UsiaRuHkOWWfV37Xbi8EsnKrLkn1sK2NWxveV55yvt5SXJmx5to49VJ4toYuANA Eo4yasxx1ESGgFIkDV/jcofyNI3Oc3EAATH74N44k756kNnnTgDVgNGjYFSQS3XwARbv HZSMEa48f+2AwIVyI8+niIxUDvb8tmV/dIJAFtKPQcUwWATB6vPlBXpVYLS6xhx+iio/ 2c+9W0PZQKYdI7zsAq6YTKUfeECx84KvJ3g/E4cbNx9trBy6P8MegNLIU9DrPAHQ/c+s S03KJ1enDljQHX5Lg8cbbGUmXZHqsTQ/OPGiJWP8QDqiS3R9nxolhPm6AY+fQDIQgyRQ KnYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=L6XcNPt3VpQMDvZ0mNUdfcDjhf2wDDj8sz3vu9Nex4s=; b=ft5m+RI8zODPIwGYg+Yv3FCLHpH2WbxQXZxDau3FQ7rHewSDQyUb4/WnTFknag2q/F OU/CXmEg+M6ZSGchY28cKMAwXox9F4cPfk8ILKafHyWIDBKXCIKN9DWAeAAjXcwuHNJs vXsmoaodjpchB5S3oa5XLaEe4QkYd6js5m03jPR79aHPZYX1urILvjoAzit5LzLVopmG tCZ3nCRPl+C6iFk8jGSuXipbduie/yMuvuupQl4EdBbOQFJ8YhmD0YiGk/YqWCxQjTxH aMv6s8CCSabvQ2m3WJh/PCwLymaaxq15dnjMrzJJ/Fp76h4qeMXzAnSTAU2DZwgghmmy ZDaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Rmbca0gZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i10si963898edu.323.2020.08.20.00.56.24; Thu, 20 Aug 2020 00:56:48 -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=@gmail.com header.s=20161025 header.b=Rmbca0gZ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726896AbgHTHyF (ORCPT + 99 others); Thu, 20 Aug 2020 03:54:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726759AbgHTHx6 (ORCPT ); Thu, 20 Aug 2020 03:53:58 -0400 Received: from mail-pj1-x1042.google.com (mail-pj1-x1042.google.com [IPv6:2607:f8b0:4864:20::1042]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D92CAC061757; Thu, 20 Aug 2020 00:53:57 -0700 (PDT) Received: by mail-pj1-x1042.google.com with SMTP id t6so633310pjr.0; Thu, 20 Aug 2020 00:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=L6XcNPt3VpQMDvZ0mNUdfcDjhf2wDDj8sz3vu9Nex4s=; b=Rmbca0gZkTga9MvR06LWAq4amNuEK44vVuzhKpGlOK66VbqaaQBcLcyZDHaacflRoX yMT92l+XipUiWyeRzF6Nr4iAWutE2EVR94uf8AooJr5QbCeXkVaguK4JHZqmKAcMheQy wBL6u1Qpm/Jc0H/DuKGaTJd4LjXghUXF5yS+Ywg35yfpnLdurC04ysrmuR17HNAh4Vzs JauwEupUVRAvoJVcPEURUOt2PVtQVYn2q7oWPXx86UUsEwSOKYK00VTZ40sZGIFIVtuY 7zzxXIq/WOTfEtr7hRypMYrGO7nkgOGKy9Ckn2giVnMsiwfafrTUvxdcwCwGKAz7N0Xp iMQg== 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; bh=L6XcNPt3VpQMDvZ0mNUdfcDjhf2wDDj8sz3vu9Nex4s=; b=WDpJHL/FmqhzejRwWJQuxb3/RbAvwr2YQf9ZgEDBJcy+gBacaNWrtfAlj9DXXr/6Gi x8EDN2FVIx5O+fFrouMFQo+Kf7U3I+maAUE2BFnGYKGMaOG0BPUaEezeMUiK1f9ZNry9 Li0Wl05rlfL+guqCpuZZDtx/ZpaP4D3VQTJa2lY1mqmZ+Mm4spkKz602Qs4tdZdaox5/ 2E8djOMv7G4KRXQF5ruT4zfKeP2G3tE6p8Ahi8o4eDJ/rMaJQRgzDlTyYUuDLlrUYgv+ sw7xLkeAuBE8BZrPe8e3L0XuiNa2msAW04uYTEceZXQsrI/YWkgep4d2kD1ixAdY8QhE 3cVw== X-Gm-Message-State: AOAM530ss3WD2+PfukCMMMj7fSTOVB3Vkv822CppreH48ydRKj819JFe oyIuHW6M2eBC6j5HuaE2pxc= X-Received: by 2002:a17:902:59dd:: with SMTP id d29mr1689481plj.170.1597910037468; Thu, 20 Aug 2020 00:53:57 -0700 (PDT) Received: from localhost.localdomain ([2402:7500:577:c217:67e6:a40c:a3bf:1945]) by smtp.gmail.com with ESMTPSA id q71sm1273832pjq.7.2020.08.20.00.53.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Aug 2020 00:53:56 -0700 (PDT) From: Gene Chen To: matthias.bgg@gmail.com, robh+dt@kernel.org Cc: lgirdwood@gmail.com, broonie@kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, Gene Chen Subject: [PATCH v3 2/2] regulator: mt6360: Add DT binding documentation Date: Thu, 20 Aug 2020 15:53:42 +0800 Message-Id: <1597910022-22617-3-git-send-email-gene.chen.richtek@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1597910022-22617-1-git-send-email-gene.chen.richtek@gmail.com> References: <1597910022-22617-1-git-send-email-gene.chen.richtek@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Gene Chen Add a devicetree binding documentation for the mt6360 regulator driver. Signed-off-by: Gene Chen --- .../bindings/regulator/mt6360-regulator.yaml | 109 +++++++++++++++++++++ 1 file changed, 109 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml diff --git a/Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml b/Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml new file mode 100644 index 0000000..bd66754 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mt6360-regulator.yaml @@ -0,0 +1,109 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mt6360-regulator.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MT6360 Regulator from MediaTek Integrated + +maintainers: + - Gene Chen + +description: | + list of regulators provided by this controller, must be named + after their hardware counterparts buck1/2 or ldo1/2/3/5/6/7 + +properties: + compatible: + const: mediatek,mt6360-regulator + + LDO_VIN3-supply: + description: Input supply phandle(s) for LDO3 + +patternProperties: + "^buck[12]$": + $ref: "regulator.yaml#" + + "^ldo[123567]$": + $ref: "regulator.yaml#" + +required: + - compatible + +additionalProperties: false + +examples: + - | + #include + #include + regulator { + compatible = "mediatek,mt6360-regulator"; + LDO_VIN3-supply = <&BUCK2>; + buck1 { + regulator-compatible = "BUCK1"; + regulator-name = "mt6360,buck1"; + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <1300000>; + regulator-allowed-modes = ; + }; + BUCK2: buck2 { + regulator-compatible = "BUCK2"; + regulator-name = "mt6360,buck2"; + regulator-min-microvolt = <300000>; + regulator-max-microvolt = <1300000>; + regulator-allowed-modes = ; + }; + ldo6 { + regulator-compatible = "LDO6"; + regulator-name = "mt6360,ldo6"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <2100000>; + regulator-allowed-modes = ; + }; + ldo7 { + regulator-compatible = "LDO7"; + regulator-name = "mt6360,ldo7"; + regulator-min-microvolt = <500000>; + regulator-max-microvolt = <2100000>; + regulator-allowed-modes = ; + }; + ldo1 { + regulator-compatible = "LDO1"; + regulator-name = "mt6360,ldo1"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3600000>; + regulator-allowed-modes = ; + }; + ldo2 { + regulator-compatible = "LDO2"; + regulator-name = "mt6360,ldo2"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3600000>; + regulator-allowed-modes = ; + }; + ldo3 { + regulator-compatible = "LDO3"; + regulator-name = "mt6360,ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <3600000>; + regulator-allowed-modes = ; + }; + ldo5 { + regulator-compatible = "LDO5"; + regulator-name = "mt6360,ldo5"; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3600000>; + regulator-allowed-modes = ; + }; + }; +... -- 2.7.4