1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/regulator/qcom,rpm-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Qualcomm RPM regulator
10 The Qualcomm RPM regulator is modelled as a subdevice of the RPM.
12 Please refer to Documentation/devicetree/bindings/soc/qcom/qcom,rpm.yaml
13 for information regarding the RPM node.
15 The regulator node houses sub-nodes for each regulator within the device.
16 Each sub-node is identified using the node's name, with valid values listed
17 for each of the pmics below.
19 For pm8058 l0, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11, l12, l13, l14, l15,
20 l16, l17, l18, l19, l20, l21, l22, l23, l24, l25, s0, s1, s2, s3, s4,
23 For pm8901 l0, l1, l2, l3, l4, l5, l6, s0, s1, s2, s3, s4, lvs0, lvs1, lvs2, lvs3,
26 For pm8921 s1, s2, s3, s4, s7, s8, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
27 l12, l14, l15, l16, l17, l18, l21, l22, l23, l24, l25, l26, l27, l28,
28 l29, lvs1, lvs2, lvs3, lvs4, lvs5, lvs6, lvs7, usb-switch, hdmi-switch,
31 For pm8018 s1, s2, s3, s4, s5, l1, l2, l3, l4, l5, l6, l7, l8, l9, l10, l11,
34 For smb208 s1a, s1b, s2a, s2b
37 - Bjorn Andersson <andersson@kernel.org>
42 - qcom,rpm-pm8058-regulators
43 - qcom,rpm-pm8901-regulators
44 - qcom,rpm-pm8921-regulators
45 - qcom,rpm-pm8018-regulators
46 - qcom,rpm-smb208-regulators
50 description: Input supply phandle(s) for this node
52 "^((s|l|lvs)[0-9]*|s[1-2][a-b]|ncp|mvs|usb-switch|hdmi-switch)$":
53 description: List of regulators and its properties
55 unevaluatedProperties: false
58 description: enable pull down of the regulator when inactive
61 qcom,switch-mode-frequency:
62 description: Frequency (Hz) of the switch-mode power supply
63 $ref: /schemas/types.yaml#/definitions/uint32
83 description: Indicates that the regulator should be forced to a particular mode
84 $ref: /schemas/types.yaml#/definitions/uint32
86 - 0 # QCOM_RPM_FORCE_MODE_NONE do not force any mode
87 - 1 # QCOM_RPM_FORCE_MODE_LPM force into low power mode
88 - 2 # QCOM_RPM_FORCE_MODE_HPM force into high power mode
89 - 3 # QCOM_RPM_FORCE_MODE_AUTO allow regulator to automatically select its own mode
90 # based on realtime current draw, only for pm8921 smps and ftsmps
92 qcom,power-mode-hysteretic:
93 description: select that the power supply should operate in hysteretic mode,
94 instead of the default pwm mode
97 additionalProperties: false
104 #include <dt-bindings/mfd/qcom-rpm.h>
106 compatible = "qcom,rpm-pm8921-regulators";
107 vdd_l1_l2_l12_l18-supply = <&pm8921_s4>;
110 regulator-min-microvolt = <1225000>;
111 regulator-max-microvolt = <1225000>;
115 qcom,switch-mode-frequency = <3200000>;
119 regulator-min-microvolt = <1800000>;
120 regulator-max-microvolt = <1800000>;
122 qcom,switch-mode-frequency = <1600000>;
125 qcom,force-mode = <QCOM_RPM_FORCE_MODE_AUTO>;