Richtek RT5120 PMIC
Schema identifier ($id): "http://devicetree.org/schemas/mfd/richtek,rt5120.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "ChiYuan Huang <cy_huang@richtek.com>"
The RT5120 provides four high-efficiency buck converters and one LDO voltage regulator. The device is targeted at providingthe processor voltage, memory, I/O, and peripheral rails in home entertainment devices. The I2C interface is used for dynamic voltage scaling of the processor voltage, power rails on/off sequence control, operation mode selection.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "richtek,rt5120"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
interrupt-controller — required here #
true — No constraints added by this property rule.
#interrupt-cells — required here #
Exact value (const): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
richtek,enable-undervolt-hiccup — not listed as required here #
Value type (type): "boolean"
If used, under voltage protection trigger hiccup behavior, else latchup as default
richtek,enable-overvolt-hiccup — not listed as required here #
Value type (type): "boolean"
Like as 'enable-uv-hiccup', it configures over voltage protection to hiccup, else latchup as default
vin1-supply — not listed as required here #
phandle for buck1 input power source
vin2-supply — not listed as required here #
phandle for buck2 input power source
vin3-supply — not listed as required here #
phandle for buck3 input power source
vin4-supply — not listed as required here #
phandle for buck4 input power source
vinldo-supply — not listed as required here #
phandle for ldo input power source
regulators — required here #
Value type (type): "object"
Properties matching a name pattern (patternProperties) #
^buck[1-4]$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): /schemas/regulator/regulator.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
regulator-allowed-modes — not listed as required here
Used to specify the allowed buck converter operating mode
mode mapping:
0: auto mode
1: force pwm mode
Array item rules (items)
^(ldo|exten)$ — name matches this regular expression
Value type (type): "object"
Shared schema rule ($ref): /schemas/regulator/regulator.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
powerkey — required here #
Value type (type): "object"
PON key that connected to RT5120 PMIC.
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "richtek,rt5120-pwrkey"
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "#interrupt-cells", "interrupt-controller", "regulators", "powerkey"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pmic@62 {
compatible = "richtek,rt5120";
reg = <0x62>;
interrupts-extended = <&gpio_intc 32 IRQ_TYPE_LEVEL_LOW>;
interrupt-controller;
#interrupt-cells = <1>;
wakeup-source;
regulators {
buck1 {
regulator-name = "rt5120-buck1";
regulator-min-microvolt = <600000>;
regulator-max-microvolt = <1393750>;
regulator-allowed-modes = <0 1>;
regulator-boot-on;
};
buck2 {
regulator-name = "rt5120-buck2";
regulator-min-microvolt = <1100000>;
regulator-max-microvolt = <1100000>;
regulator-allowed-modes = <0 1>;
regulator-always-on;
};
buck3 {
regulator-name = "rt5120-buck3";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-allowed-modes = <0 1>;
regulator-always-on;
};
buck4 {
regulator-name = "rt5120-buck4";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-allowed-modes = <0 1>;
regulator-always-on;
};
ldo {
regulator-name = "rt5120-ldo";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-always-on;
};
exten {
regulator-name = "rt5120-exten";
regulator-min-microvolt = <3000000>;
regulator-max-microvolt = <3000000>;
regulator-always-on;
};
};
powerkey {
compatible = "richtek,rt5120-pwrkey";
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause