Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp289279iog; Mon, 13 Jun 2022 02:45:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3uRIZKrcfPEv0rhI80nhOM4Qb6vf3Hzcy7ttfqst6yqB2T6hp+UB6LoPfIlgvH8T8HXvP X-Received: by 2002:a05:6402:4306:b0:430:6a11:da7d with SMTP id m6-20020a056402430600b004306a11da7dmr50937834edc.126.1655113516925; Mon, 13 Jun 2022 02:45:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655113516; cv=none; d=google.com; s=arc-20160816; b=KZls7e0otHhCM4fi8YyM58VjebyWiLHlcJUEbXV9Ifi52X/aYval6g7irekGtRdCRT FTUPWZLSo4mGv/loRCtP4tZhaW4AkojFVVaYIuKN8eX1GOcoSZuEvqgQ864qzb4+eZvl wVylCmHVJjtc99lL6iYxae5BYot4XqyJ951PABLbjeLtotbJNQeNApFkT7OqgYELNPu+ pK3ri4K/Jh424iTs5oUOIQ6KOuuItX/yyC8jQjKdSbINYRUi9ht/xEsMKeYt8To3Cod6 QNFf//XzmUKQlHjBlVVll06yzIXPzsE48doWm0C0bg5MaloEidiAMFpx78/MOFoTjNQL 5vvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=Focgo4OECw93XghPSNcG4N3N7df19LOqw//cxPjkU48=; b=Oc0xdTA1Q7mH/cf9yfcXbGXeOTGoJcnKLDV54iPdqixewc/nYsX+DwIH6Y6dyJzFhj zHZboSigfM6IH3OVP4qhJG2MGhBvFwTm/FE2VCyCNQUpGV+VB9w0feVpCZY3rM7iCbJj fNwNrgMYhc39B7lXDlnkTL+f1KXN71UHVaNYCGFXBFEwcbj7kznH+1nfdgJFAEp8UwFP q3zax8A5hfzzMhse12zJ8NyfHdSzBsqX2++/7P2nS2ztt2rVuLbOAEdAwhglllGHySOl xlDQLty32Q5JE+LF2j8MZBljY05uZcxIQUDo258cJy9CSAIdXBKrPW2xewo4tznkwfNk 18pA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=wbpXo0pA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gn32-20020a1709070d2000b006f4314a3fb0si7746622ejc.866.2022.06.13.02.44.51; Mon, 13 Jun 2022 02:45:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20210112.gappssmtp.com header.s=20210112 header.b=wbpXo0pA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233564AbiFMJGR (ORCPT + 99 others); Mon, 13 Jun 2022 05:06:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235364AbiFMJGM (ORCPT ); Mon, 13 Jun 2022 05:06:12 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 32A8DE0CA for ; Mon, 13 Jun 2022 02:06:11 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id o8so6260567wro.3 for ; Mon, 13 Jun 2022 02:06:11 -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=Focgo4OECw93XghPSNcG4N3N7df19LOqw//cxPjkU48=; b=wbpXo0pA2Vvfie476fY5KP79xaAybk9AjdzeNEkhM/+eJCQ2/2RfO7VOMQWvjoCm0+ LpadOPOE3si0Dj4wLty8UgoESgrcAWD6H3O82q0B+JVYnbaUJqn0WgO91Uc/VzKc2AsH E4Acf7id5FZ78dbSr2VOsW7R+a2zxOC7WNASVqMYsFKnjI/rFZsTYmk1VOdyIVGv1L2O rpD2IxtsRWQ6Y05IAYUMif4MezQTPuZjqcZcWt7i+TmvVg/8oTlBPL5PMCvI1auYwWKx OaO3XGKlHf2CNgEX1qYvpEL+H9QydqYdW+xO/J5PUc9Qaou4Niy8mCDiMIkSCKsHcC3c ReXw== 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=Focgo4OECw93XghPSNcG4N3N7df19LOqw//cxPjkU48=; b=wx8Bi0GXcWmArQZ1qGgFGW3CUBYmNefmA1DgnDZPaxrxUhe4/HlJwILwhgHa5yswSc tiSgf3RMoxzzfIssNlp72Djqiwz4IncYz1pXApruj44k+cm6QhJX9/5j6WEc6eIWmQHh hn32Vj9O9Ey8A+w5v94YIY1fSZffGZ78o8poyyk6K7lALyjxhSiKPZCVlZNLGmIYD87x xPmRwIeVoZyQprtMJqtg3egegt0p/hhXEE2OrJySl3vJMc6P+POayi0FJlBh0gE7LYhD i9MVrZYpyZmQ0bMfz1XeHxszZ4kcjRTyT5U+f9DEU5z6ymHuTakXpqHH7hnSmT9M54iQ In0g== X-Gm-Message-State: AOAM532fJfkI7YEQyzugQ/k7MxeyxeM/H6F14AJwhN7duKeVLZnz/5RL BO7XXpyWtJrmk18oQlk3dJhNM9dKYV/CP5Vm X-Received: by 2002:a05:6000:2a4:b0:218:77ba:988e with SMTP id l4-20020a05600002a400b0021877ba988emr24777381wry.459.1655111169763; Mon, 13 Jun 2022 02:06:09 -0700 (PDT) Received: from localhost.localdomain (192.201.68.85.rev.sfr.net. [85.68.201.192]) by smtp.gmail.com with ESMTPSA id d9-20020adffd89000000b002102d4ed579sm7806465wrr.39.2022.06.13.02.06.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Jun 2022 02:06:09 -0700 (PDT) From: Jerome NEANNE To: lgirdwood@gmail.com, broonie@kernel.org, robh+dt@kernel.org, nm@ti.com, kristo@kernel.org, will@kernel.org, lee.jones@linaro.org, jneanne@baylibre.com Cc: khilman@baylibre.com, narmstrong@baylibre.com, msp@baylibre.com, j-keerthy@ti.com, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [RFC PATCH 1/5] regulator: dt-bindings: Add TI TPS65219 PMIC bindings Date: Mon, 13 Jun 2022 11:06:00 +0200 Message-Id: <20220613090604.9975-2-jneanne@baylibre.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220613090604.9975-1-jneanne@baylibre.com> References: <20220613090604.9975-1-jneanne@baylibre.com> X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 | 146 ++++++++++++++++++ 1 file changed, 146 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..a4717ff4e95b --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/ti,tps65219.yaml @@ -0,0 +1,146 @@ +# 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 + +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