From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id ECD3BC43334 for ; Tue, 19 Jul 2022 09:19:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:List-Subscribe:List-Help: List-Post:List-Archive:List-Unsubscribe:List-Id:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=6326JO8tAQx5ILk96ONoYOQtAbX6jdUZuxg68bCxUCw=; b=UCN1QvuU6GE+z+ 8oqJ+iVY9dCleiwFrfOqc5UwOIvmo4qxObw+kflEwqMXLBXfU+ApoQcxKpb1BJYGifCnM5nkNFNsi A9GXypm/mrWhRkRCfrjN1lv97DWPRBOJUk3nlML3USmEWPHu/8AgfbpY85EnvEMCPFqKxt2GBvF+C vA40caLK8jNUENJu+gXJSEATXjX9kcRhSY8PzkG08rRZsnsCYrLIKxnIgTinPHiBM81qupu9UCs+H JSSefUhOoE2twX7Y40bZk2NIViXAxUKAMXgQBoxpnqrZIdhlUxzqiJgnQaCu1yuZBjNdSwQbzFjiI 9BdHTrwm55LL7s+hKFHw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDjN1-007BxC-UP; Tue, 19 Jul 2022 09:18:24 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oDjMY-007BE8-Gv for linux-arm-kernel@lists.infradead.org; Tue, 19 Jul 2022 09:17:56 +0000 Received: by mail-wm1-x32c.google.com with SMTP id v67-20020a1cac46000000b003a1888b9d36so11519985wme.0 for ; Tue, 19 Jul 2022 02:17:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bqCQqbntKXpX+1pifR7RMIoTfr+fS3UlaxC6glFkmdQ=; b=lv31lnwCIh231JuIwCyht8yuCf2YnlU3NThs1WD+CdO7coBp22+ZnDWg+gocAGVSLk 1QWm82mL+aSw1Itr10bSvKeDG7ihBfG0g8SpSdCBajls8BdcaudM3f2KdkfUwCgGnx2Q QbhnrdSibAio5crlMAkkwGW4juYbgieePSezySoh0gQINpPYGrbR85Yle6YZ5BpU/7va Cf+FK3Q6Kaj2uIY7jrC5ipze5v2ee1PsJ0JRe81GQ72l7Q0SFBs3S63bBgCpbw8sGF5n 51BwcW4245rYV+LIr4hensGeqFAN/NBWcydxT8yQ2u5bAI3ybxtgK/SwPOvUvEyR4vmv gRQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bqCQqbntKXpX+1pifR7RMIoTfr+fS3UlaxC6glFkmdQ=; b=CHOE79aoaALHPdq5AnNu2YTFZtOiAcGrk/WwEHYFVML67m5q79NlBAebwfk7Zn64no yMt+sR+QfZVvkje6zyDIlH2lMD2PX/vwi4Jm5IGKFqniEU+PL08PRiaGWa82kovrvVUb hfUF3ILE3z3bxXygnkHzb/Vr8KNHnVrXco4q0qgXeoTRonByuTzB+/NK+r/f4FXqZsjI 8kusYwhGAvV/IRVbva3+JqjT6x30VKgokIBwJW7FDBtODvB7zJi0JkB+dsrhA+wUoesV vfZ7OGHhmL2Rx27cirTZLpqdzSkBsC+X3KvmAF2hFalStbRinaIjJHCTh9hcKMq2AQ/5 b1uA== X-Gm-Message-State: AJIora9k5sLucB6ApsKtW0bNJLV2Cf4Q/d//csSqmIn0VZS9YP9bxewZ kxYW9mS2BMiyJ3WnoCE/f0Heqw== X-Google-Smtp-Source: AGRyM1v+pq++YwR85lTsJyAS7h0am4kz3uPeFNgfdpRIUilxRvLKSgwTQooHtIaqWESzoAcBBHHkMA== X-Received: by 2002:a05:600c:1c26:b0:3a3:2251:c3cb with SMTP id j38-20020a05600c1c2600b003a32251c3cbmr2507110wms.126.1658222272414; Tue, 19 Jul 2022 02:17:52 -0700 (PDT) Received: from localhost.localdomain (192.201.68.85.rev.sfr.net. [85.68.201.192]) by smtp.gmail.com with ESMTPSA id bk19-20020a0560001d9300b0021d63fe0f03sm12944281wrb.12.2022.07.19.02.17.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 19 Jul 2022 02:17:51 -0700 (PDT) From: Jerome Neanne To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, nm@ti.com, kristo@kernel.org Cc: khilman@baylibre.com, narmstrong@baylibre.com, msp@baylibre.com, j-keerthy@ti.c, lee.jones@linaro.org, jneanne@baylibre.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v1 02/14] regulator: dt-bindings: Add TI TPS65219 PMIC bindings Date: Tue, 19 Jul 2022 11:17:30 +0200 Message-Id: <20220719091742.3221-3-jneanne@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220719091742.3221-1-jneanne@baylibre.com> References: <20220719091742.3221-1-jneanne@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220719_021754_582034_E901C5B3 X-CRM114-Status: GOOD ( 14.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Add TPS65219 PMIC bindings using json-schema. Describe required properties and regname-supply. regname-supply is required when bypass mode is used for a regulator. Describes regulator topology. Signed-off-by: Jerome Neanne --- .../bindings/regulator/ti,tps65219.yaml | 151 ++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 Documentation/devicetree/bindings/regulator/ti,tps65219.yaml diff --git a/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml b/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml new file mode 100644 index 000000000000..2c655432b889 --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml @@ -0,0 +1,151 @@ +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/ti,tps65219.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: TI tps65219 Power Management Integrated Circuit regulators + +maintainers: + - Jerome Neanne + +description: | + Regulator nodes should be named to buck and ldo. + +properties: + compatible: + enum: + - ti,tps65219 + + reg: + maxItems: 1 + + system-power-controller: + type: boolean + description: Optional property that indicates that this device is + controlling system power. + +patternProperties: + "^buck[1-3]-supply$": + description: Input supply phandle of one regulator. + + "^ldo[1-4]-supply$": + description: Input supply phandle of one regulator. + + regulators: + type: object + description: | + list of regulators provided by this controller + + patternProperties: + "^ldo[1-4]$": + type: object + $ref: regulator.yaml# + description: + Properties for single LDO regulator. + + properties: + regulator-name: + pattern: "^VDD[A-Z0-9_]+$" + description: + should be "VDDNAME_LDO1", ..., "VDDNAMELDO4" + + unevaluatedProperties: false + + "^buck[1-3]$": + type: object + $ref: regulator.yaml# + description: + Properties for single BUCK regulator. + + properties: + regulator-name: + pattern: "^VDD|VCC[A-Z0-9_]+$" + description: + should be like "VDD_BUCK1NAME", ..., "VCCBUCK_3NAME" + + unevaluatedProperties: false + + additionalProperties: false + +required: + - compatible + - reg + - regulators + +additionalProperties: false + +examples: + - | + i2c { + #address-cells = <1>; + #size-cells = <0>; + + tps65219: pmic@30 { + compatible = "ti,tps65219"; + reg = <0x30>; + buck1-supply = <&vcc_3v3_sys>; + buck2-supply = <&vcc_3v3_sys>; + buck3-supply = <&vcc_3v3_sys>; + ldo1-supply = <&vcc_3v3_sys>; + ldo2-supply = <&buck2_reg>; + ldo3-supply = <&vcc_3v3_sys>; + ldo4-supply = <&vcc_3v3_sys>; + + regulators { + buck1_reg: buck1 { + regulator-name = "VDD_CORE"; + regulator-min-microvolt = <750000>; + regulator-max-microvolt = <750000>; + regulator-boot-on; + regulator-always-on; + }; + + buck2_reg: buck2 { + regulator-name = "VCC1V8"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-boot-on; + regulator-always-on; + }; + + buck3_reg: buck3 { + regulator-name = "VDD_LPDDR4"; + regulator-min-microvolt = <1100000>; + regulator-max-microvolt = <1100000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo1_reg: ldo1 { + regulator-name = "VDDSHV_SD_IO_PMIC"; + regulator-min-microvolt = <33000000>; + regulator-max-microvolt = <33000000>; + }; + + ldo2_reg: ldo2 { + regulator-name = "VDDAR_CORE"; + regulator-min-microvolt = <850000>; + regulator-max-microvolt = <850000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo3_reg: ldo3 { + regulator-name = "VDDA_1V8"; + regulator-min-microvolt = <18000000>; + regulator-max-microvolt = <18000000>; + regulator-boot-on; + regulator-always-on; + }; + + ldo4_reg: ldo4 { + regulator-name = "VDD_PHY_2V5"; + regulator-min-microvolt = <25000000>; + regulator-max-microvolt = <25000000>; + regulator-boot-on; + regulator-always-on; + }; + }; + }; + }; -- 2.17.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel