From nobody Mon Nov 11 03:28:59 2024 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15C77C433FE for ; Wed, 5 Oct 2022 14:58:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230206AbiJEO6J (ORCPT ); Wed, 5 Oct 2022 10:58:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230169AbiJEO5s (ORCPT ); Wed, 5 Oct 2022 10:57:48 -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 CAE4056B8B for ; Wed, 5 Oct 2022 07:57:45 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id j7so20990097wrr.3 for ; Wed, 05 Oct 2022 07:57:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20210112.gappssmtp.com; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date; bh=NMBKaD9Twna7IpylLh1Pii+0NHq3Tt+1dQSxsHPnhnI=; b=Hst2MvqV8VevRzE3etMrA6kSMfvgIuiAfaCynzE7IkR9Io0HI8lg7bUg63JfYMWEkK nPO6tiMwmli6JyRLLt0zoF/wdCk3RP14rzZQ3EGaY+NK1Xo88qkhgedjnLlqUqi+Q6xo AkiKqHTmA5awgOAyJxWwdep5tgd3e80NShEstqKqyZt8WbF8gUec//oD+yoqyT9jeMxR BNPWd9JAJiHkJx2Y3dylQmpEkpjIbaOBP0XleP9d1ifAEaehTXUzZszRIaLM8Dju5Ovr tRzEfCSKSPK3NNudofh+2LOo5vLA2tBDXv8c0R9Ssx/XnRvAyBzKomhAPVkIzDTeU15H s98A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date; bh=NMBKaD9Twna7IpylLh1Pii+0NHq3Tt+1dQSxsHPnhnI=; b=ZgrWVp0TncjAThtlsdflsBtBUFs0kiwLyOSm4TCtPRbUVTAltdLWOMaq9s5UiLQg5E m3qjIXsm6oZuijpZ0yAn7nZIVfUSnUsS80Rn3LB4kBVH6jhDU8+VmKFNYodU53BWzJaS u7azgKk+klzGQ5iltzsdigqlNsXifFlTMKXQ1L0KWYLBDmlOWz2T1Pxth4i05jcXLs0/ pu9+Q/MrL3B90+kFCCLdHUNtKQQ9Zt7CXl2m+ku+koUian7axccic3PBLHSwActR/wgz ypsMjdoWuY88touYw87yUj+2Brl4Pss9YAPYOclWVHFYep3IAFOaHqGn4VxPvijNpxFi O+Og== X-Gm-Message-State: ACrzQf1INqarZBNgTZqKy3cnC/GgJcpiuABLKuEvJ2ixWqdmtTkFWN9l rIKvD1QHEnXw45YfcJokqL29OA== X-Google-Smtp-Source: AMsMyM7PsaiJ6VUmwuOx5ZbJ3KP9mS1WG5DE6w4IVyMiekbda0EK5DLj4DlYpim3B+Fi+gXq5Q1BCQ== X-Received: by 2002:a05:6000:2a3:b0:226:dff3:b031 with SMTP id l3-20020a05600002a300b00226dff3b031mr63751wry.495.1664981863950; Wed, 05 Oct 2022 07:57:43 -0700 (PDT) Received: from [127.0.1.1] (158.22.5.93.rev.sfr.net. [93.5.22.158]) by smtp.googlemail.com with ESMTPSA id k38-20020a05600c1ca600b003a3170a7af9sm2313758wms.4.2022.10.05.07.57.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Oct 2022 07:57:43 -0700 (PDT) From: Alexandre Mergnat Date: Wed, 05 Oct 2022 16:57:23 +0200 Subject: [PATCH v2 3/5] dt-bindings: regulator: Add binding schema for mt6357 regulators MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20221005-mt6357-support-v2-3-f17ba2d2d0a9@baylibre.com> References: <20221005-mt6357-support-v2-0-f17ba2d2d0a9@baylibre.com> In-Reply-To: <20221005-mt6357-support-v2-0-f17ba2d2d0a9@baylibre.com> To: Lee Jones , Mark Brown , Matthias Brugger , Rob Herring , Liam Girdwood , Krzysztof Kozlowski , Dmitry Torokhov , Chen Zhong Cc: linux-mediatek@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Rob Herring , linux-kernel@vger.kernel.org, linux-input@vger.kernel.org, Fabien Parent , Alexandre Mergnat X-Mailer: b4 0.10.1 X-Developer-Signature: v=1; a=openpgp-sha256; l=11067; i=amergnat@baylibre.com; h=from:subject:message-id; bh=Pf7gUUCDiv8w5usm43co0Y+0T3FAWUVmGhPRNAVLSaA=; b=owEBbQKS/ZANAwAKAStGSZ1+MdRFAcsmYgBjPZtin1UVLC8DUs0zxbpYgrYJ2HRGTyfHMukneGVc 1+lkXGyJAjMEAAEKAB0WIQQjG17X8+qqcA5g/osrRkmdfjHURQUCYz2bYgAKCRArRkmdfjHURXTUEA CBH/ywLdtM7OzUVWzude0dzpseK3dSzpwAdtf+0pqFHTHp8l19WEGI+RCEQ0KmmgdSpsQFZuIcxcz6 Nlg+tbWlerIVP8gBKWe1HAnswK3miNF1CmWd+8cWhrFIX0L6/OnFExdQfh2rs1ZZPLbTk5yosmnWYU nU5anB1h6OMK2p1DHZdacn8hy+6td0SfyqKxADu78mK0LBX6KrFrFdQvjkzBpqXpN9di1rNJFGICq+ vst1TP66ytgUEHkYWlOTTfrSvy9xTWcmDTP1HTm3Kj3C5Tff/7kJ80DK+odfe46amJERvWtJAX6zxm PkZijjH+hh1xflLih99pUthdD6uRXRlGfeQ1zMSm0bvIJfC3eMMSl/priZGC4JV+Ju1+ysEgQ1sJDy T9OqMMaAPmVlZj24rmJpPOsNfFN1IMkLFDnb39M5hJD3M3IkkJq2dSSLIApMll8stZyYhDSBo31hja hxpdBheGpbGXJ6jt3BIsgKQsymBktpRBpFIGFRKTYbBnL4xZncVmUjhvtCuZN9n6TkSYPlnxY91zLS c08YU8AKazCUFmIKayMdAZwR0lEPRtOEm0gOg5sutLa6AJqklInog/3Zotp26rF5el1Ig+F4WX8lFH 9LLOz5No03XzJnBA4T3JMYl47R3DV3Ssx5BsUvBx+UOICrKCCvjFve7bUoCA== X-Developer-Key: i=amergnat@baylibre.com; a=openpgp; fpr=231B5ED7F3EAAA700E60FE8B2B46499D7E31D445 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Fabien Parent Add YAML schema for the MediaTek MT6357 regulators. Signed-off-by: Fabien Parent Signed-off-by: Alexandre Mergnat --- .../regulator/mediatek,mt6357-regulator.yaml | 284 +++++++++++++++++= ++++ 1 file changed, 284 insertions(+) diff --git a/Documentation/devicetree/bindings/regulator/mediatek,mt6357-re= gulator.yaml b/Documentation/devicetree/bindings/regulator/mediatek,mt6357-= regulator.yaml new file mode 100644 index 000000000000..83ce2cf287dd --- /dev/null +++ b/Documentation/devicetree/bindings/regulator/mediatek,mt6357-regulator= .yaml @@ -0,0 +1,284 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/regulator/mediatek,mt6357-regulator.yam= l# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: MediaTek MT6357 Regulators + +maintainers: + - Fabien Parent + - Alexandre Mergnat + +description: | + The MT6357 PMIC provides 5 BUCK and 29 LDO. + Regulators and nodes are named according to the regulator type: + buck- and ldo-. + MT6357 regulators node should be sub node of the MT6397 MFD node. + +patternProperties: + "^buck-v(core|modem|pa|proc|s1)$": + type: object + $ref: "regulator.yaml#" + + properties: + regulator-name: + pattern: "^v(core|modem|pa|proc|s1)$" + + unevaluatedProperties: false + + "^ldo-v(aud28|aux18|cama|camd|cn18|cn28|cn33-bt|cn33-wifi|dram)$": + type: object + $ref: "regulator.yaml#" + + properties: + regulator-name: + pattern: "^v(aud28|aux18|cama|camd|cn18|cn28|cn33-bt|cn33-wifi|dra= m)$" + + unevaluatedProperties: false + + "^ldo-v(efuse|emc|ibr|io18|io28|ldo28|mch|rf12|rf18)$": + type: object + $ref: "regulator.yaml#" + + properties: + regulator-name: + pattern: "^v(efuse|emc|ibr|io18|io28|ldo28|mch|rf12|rf18)$" + + unevaluatedProperties: false + + "^ldo-v(xo22|sim1,sim2|sram-others|sram-proc|usb33|xo22)$": + type: object + $ref: "regulator.yaml#" + + properties: + regulator-name: + pattern: "^v(xo22|sim1,sim2|sram-others|sram-proc|usb33|xo22)$" + + unevaluatedProperties: false + +additionalProperties: false + +examples: + - | + pmic { + regulators { + mt6357_vproc_reg: buck-vproc { + regulator-name =3D "vproc"; + regulator-min-microvolt =3D <518750>; + regulator-max-microvolt =3D <1312500>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <220>; + regulator-always-on; + }; + mt6357_vcore_reg: buck-vcore { + regulator-name =3D "vcore"; + regulator-min-microvolt =3D <518750>; + regulator-max-microvolt =3D <1312500>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <220>; + regulator-always-on; + }; + mt6357_vmodem_reg: buck-vmodem { + regulator-name =3D "vmodem"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <1193750>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <220>; + }; + mt6357_vs1_reg: buck-vs1 { + regulator-name =3D "vs1"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <2200000>; + regulator-ramp-delay =3D <12500>; + regulator-enable-ramp-delay =3D <220>; + regulator-always-on; + }; + mt6357_vpa_reg: buck-vpa { + regulator-name =3D "vpa"; + regulator-min-microvolt =3D <500000>; + regulator-max-microvolt =3D <3650000>; + regulator-ramp-delay =3D <50000>; + regulator-enable-ramp-delay =3D <220>; + }; + mt6357_vfe28_reg: ldo-vfe28 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vfe28"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vxo22_reg: ldo-vxo22 { + regulator-name =3D "vxo22"; + regulator-min-microvolt =3D <2200000>; + regulator-max-microvolt =3D <2400000>; + regulator-enable-ramp-delay =3D <110>; + }; + mt6357_vrf18_reg: ldo-vrf18 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vrf18"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-enable-ramp-delay =3D <110>; + }; + mt6357_vrf12_reg: ldo-vrf12 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vrf12"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <1200000>; + regulator-enable-ramp-delay =3D <110>; + }; + mt6357_vefuse_reg: ldo-vefuse { + regulator-name =3D "vefuse"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <3300000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vcn33_bt_reg: ldo-vcn33-bt { + regulator-name =3D "vcn33-bt"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3500000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vcn33_wifi_reg: ldo-vcn33-wifi { + regulator-name =3D "vcn33-wifi"; + regulator-min-microvolt =3D <3300000>; + regulator-max-microvolt =3D <3500000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vcn28_reg: ldo-vcn28 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcn28"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vcn18_reg: ldo-vcn18 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcn18"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vcama_reg: ldo-vcama { + regulator-name =3D "vcama"; + regulator-min-microvolt =3D <2500000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vcamd_reg: ldo-vcamd { + regulator-name =3D "vcamd"; + regulator-min-microvolt =3D <1000000>; + regulator-max-microvolt =3D <1800000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vcamio_reg: ldo-vcamio18 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vcamio"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vldo28_reg: ldo-vldo28 { + regulator-name =3D "vldo28"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <3000000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vsram_others_reg: ldo-vsram-others { + regulator-name =3D "vsram-others"; + regulator-min-microvolt =3D <518750>; + regulator-max-microvolt =3D <1312500>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <110>; + regulator-always-on; + }; + mt6357_vsram_proc_reg: ldo-vsram-proc { + regulator-name =3D "vsram-proc"; + regulator-min-microvolt =3D <518750>; + regulator-max-microvolt =3D <1312500>; + regulator-ramp-delay =3D <6250>; + regulator-enable-ramp-delay =3D <110>; + regulator-always-on; + }; + mt6357_vaux18_reg: ldo-vaux18 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vaux18"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vaud28_reg: ldo-vaud28 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vaud28"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vio28_reg: ldo-vio28 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vio28"; + regulator-min-microvolt =3D <2800000>; + regulator-max-microvolt =3D <2800000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vio18_reg: ldo-vio18 { + compatible =3D "regulator-fixed"; + regulator-name =3D "vio18"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <1800000>; + regulator-enable-ramp-delay =3D <264>; + regulator-always-on; + }; + mt6357_vdram_reg: ldo-vdram { + regulator-name =3D "vdram"; + regulator-min-microvolt =3D <1100000>; + regulator-max-microvolt =3D <1200000>; + regulator-enable-ramp-delay =3D <3300>; + }; + mt6357_vmc_reg: ldo-vmc { + regulator-name =3D "vmc"; + regulator-min-microvolt =3D <1800000>; + regulator-max-microvolt =3D <3300000>; + regulator-enable-ramp-delay =3D <44>; + }; + mt6357_vmch_reg: ldo-vmch { + regulator-name =3D "vmch"; + regulator-min-microvolt =3D <2900000>; + regulator-max-microvolt =3D <3300000>; + regulator-enable-ramp-delay =3D <44>; + }; + mt6357_vemc_reg: ldo-vemc { + regulator-name =3D "vemc"; + regulator-min-microvolt =3D <2900000>; + regulator-max-microvolt =3D <3300000>; + regulator-enable-ramp-delay =3D <44>; + regulator-always-on; + }; + mt6357_vsim1_reg: ldo-vsim1 { + regulator-name =3D "vsim1"; + regulator-min-microvolt =3D <1700000>; + regulator-max-microvolt =3D <3100000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vsim2_reg: ldo-vsim2 { + regulator-name =3D "vsim2"; + regulator-min-microvolt =3D <1700000>; + regulator-max-microvolt =3D <3100000>; + regulator-enable-ramp-delay =3D <264>; + }; + mt6357_vibr_reg: ldo-vibr { + regulator-name =3D "vibr"; + regulator-min-microvolt =3D <1200000>; + regulator-max-microvolt =3D <3300000>; + regulator-enable-ramp-delay =3D <44>; + }; + mt6357_vusb33_reg: ldo-vusb33 { + regulator-name =3D "vusb33"; + regulator-min-microvolt =3D <3000000>; + regulator-max-microvolt =3D <3100000>; + regulator-enable-ramp-delay =3D <264>; + }; + }; + }; +... --=20 b4 0.10.1