STMicroelectonics STPMIC1 Power Management IC
Schema identifier ($id): "http://devicetree.org/schemas/mfd/st,stpmic1.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
STMicroelectronics STPMIC1 Power Management IC
Maintainers (maintainers): "pascal Paillet <p.paillet@foss.st.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "st,stpmic1"
reg — required here #
Exact value (const): 51
interrupts — required here #
Maximum number of items (maxItems): 1
#interrupt-cells — required here #
Exact value (const): 2
interrupt-controller — required here #
true — No constraints added by this property rule.
onkey — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/input/input.yaml
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "st,stpmic1-onkey"
interrupts — required here
Array item rules (items)
Item 1
onkey-falling, happens when onkey is pressed. IT_PONKEY_F of pmic
Item 2
onkey-rising, happens when onkey is released. IT_PONKEY_R of pmic
interrupt-names — required here
Array item rules (items)
Item 1
Exact value (
const):"onkey-falling"
Item 2
Exact value (
const):"onkey-rising"
st,onkey-clear-cc-flag — not listed as required here
onkey is able power on after an over-current shutdown event.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
st,onkey-pu-inactive — not listed as required here
onkey pull up is not active
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
power-off-time-sec — not listed as required here
Minimum value (minimum): 1
Maximum value (maximum): 16
Required in this object (required): "compatible", "interrupts", "interrupt-names"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
watchdog — not listed as required here #
Value type (type): "object"
Shared schema rule ($ref): /schemas/watchdog/watchdog.yaml
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "st,stpmic1-wdt"
timeout-sec — not listed as required here
true — No constraints added by this property rule.
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
regulators — not listed as required here #
Value type (type): "object"
Available Regulators in STPMIC1 device are:
- buck1 for Buck BUCK1
- buck2 for Buck BUCK2
- buck3 for Buck BUCK3
- buck4 for Buck BUCK4
- ldo1 for LDO LDO1
- ldo2 for LDO LDO2
- ldo3 for LDO LDO3
- ldo4 for LDO LDO4
- ldo5 for LDO LDO5
- ldo6 for LDO LDO6
- vref_ddr for LDO Vref DDR
- boost for Buck BOOST
- pwr_sw1 for VBUS_OTG switch
- pwr_sw2 for SW_OUT switch
Switches are fixed voltage regulators with only enable/disable capability.
Properties and child nodes (properties) #
compatible — required here
Exact value (const): "st,stpmic1-regulators"
ldo3 — not listed as required here
Shared schema rule ($ref): /schemas/regulator/regulator.yaml
Value type (type): "object"
Properties and child nodes (properties)
interrupts — not listed as required here
Maximum number of items (maxItems): 1
st,mask-reset — not listed as required here
mask reset for this regulator, the regulator configuration is maintained during pmic reset.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
regulator-name — not listed as required here
true — No constraints added by this property rule.
regulator-boot-on — not listed as required here
true — No constraints added by this property rule.
regulator-always-on — not listed as required here
true — No constraints added by this property rule.
regulator-min-microvolt — not listed as required here
true — No constraints added by this property rule.
regulator-max-microvolt — not listed as required here
true — No constraints added by this property rule.
regulator-allow-bypass — not listed as required here
true — No constraints added by this property rule.
regulator-over-current-protection — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
ldo4 — not listed as required here
Shared schema rule ($ref): /schemas/regulator/regulator.yaml
Value type (type): "object"
Properties and child nodes (properties)
interrupts — not listed as required here
Maximum number of items (maxItems): 1
st,mask-reset — not listed as required here
mask reset for this regulator, the regulator configuration is maintained during pmic reset.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
regulator-name — not listed as required here
true — No constraints added by this property rule.
regulator-boot-on — not listed as required here
true — No constraints added by this property rule.
regulator-always-on — not listed as required here
true — No constraints added by this property rule.
regulator-min-microvolt — not listed as required here
true — No constraints added by this property rule.
regulator-max-microvolt — not listed as required here
true — No constraints added by this property rule.
regulator-over-current-protection — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
vref_ddr — not listed as required here
Shared schema rule ($ref): /schemas/regulator/regulator.yaml
Value type (type): "object"
Properties and child nodes (properties)
interrupts — not listed as required here
Maximum number of items (maxItems): 1
st,mask-reset — not listed as required here
mask reset for this regulator, the regulator configuration is maintained during pmic reset.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
regulator-name — not listed as required here
true — No constraints added by this property rule.
regulator-boot-on — not listed as required here
true — No constraints added by this property rule.
regulator-always-on — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
boost — not listed as required here
Shared schema rule ($ref): /schemas/regulator/regulator.yaml
Value type (type): "object"
Properties and child nodes (properties)
interrupts — not listed as required here
Maximum number of items (maxItems): 1
st,mask-reset — not listed as required here
mask reset for this regulator, the regulator configuration is maintained during pmic reset.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
regulator-name — not listed as required here
true — No constraints added by this property rule.
regulator-boot-on — not listed as required here
true — No constraints added by this property rule.
regulator-always-on — not listed as required here
true — No constraints added by this property rule.
regulator-over-current-protection — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^(buck[1-4]|ldo[1-6]|vref_ddr|boost|pwr_sw[1-2])-supply$ — name matches this regular expression
STPMIC1 voltage regulators supplies
^ldo[1-2,5-6]$ — name matches this regular expression
Shared schema rule ($ref): /schemas/regulator/regulator.yaml
Value type (type): "object"
Properties and child nodes (properties)
interrupts — not listed as required here
Maximum number of items (maxItems): 1
st,mask-reset — not listed as required here
mask reset for this regulator, the regulator configuration is maintained during pmic reset.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
regulator-name — not listed as required here
true — No constraints added by this property rule.
regulator-boot-on — not listed as required here
true — No constraints added by this property rule.
regulator-always-on — not listed as required here
true — No constraints added by this property rule.
regulator-min-microvolt — not listed as required here
true — No constraints added by this property rule.
regulator-max-microvolt — not listed as required here
true — No constraints added by this property rule.
regulator-over-current-protection — not listed as required here
true — No constraints added by this property rule.
regulator-enable-ramp-delay — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
^buck[1-4]$ — name matches this regular expression
Shared schema rule ($ref): /schemas/regulator/regulator.yaml
Value type (type): "object"
Properties and child nodes (properties)
interrupts — not listed as required here
Maximum number of items (maxItems): 1
st,mask-reset — not listed as required here
mask reset for this regulator, the regulator configuration is maintained during pmic reset.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
regulator-name — not listed as required here
true — No constraints added by this property rule.
regulator-boot-on — not listed as required here
true — No constraints added by this property rule.
regulator-always-on — not listed as required here
true — No constraints added by this property rule.
regulator-min-microvolt — not listed as required here
true — No constraints added by this property rule.
regulator-max-microvolt — not listed as required here
true — No constraints added by this property rule.
regulator-initial-mode — not listed as required here
true — No constraints added by this property rule.
regulator-pull-down — not listed as required here
true — No constraints added by this property rule.
regulator-over-current-protection — not listed as required here
true — No constraints added by this property rule.
regulator-enable-ramp-delay — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
^pwr_sw[1-2]$ — name matches this regular expression
Shared schema rule ($ref): /schemas/regulator/regulator.yaml
Value type (type): "object"
Properties and child nodes (properties)
interrupts — not listed as required here
Maximum number of items (maxItems): 1
regulator-name — not listed as required here
true — No constraints added by this property rule.
regulator-boot-on — not listed as required here
true — No constraints added by this property rule.
regulator-always-on — not listed as required here
true — No constraints added by this property rule.
regulator-over-current-protection — not listed as required here
true — No constraints added by this property rule.
regulator-active-discharge — not listed as required here
true — No constraints added by this property rule.
Properties not matched by properties or patternProperties in this schema (additionalProperties)
false
Not allowed by this rule.
Required in this object (required): "compatible"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
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"
Examples (examples) #
#include <dt-bindings/mfd/st,stpmic1.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pmic@33 {
compatible = "st,stpmic1";
reg = <0x33>;
interrupt-parent = <&gpioa>;
interrupts = <0 2>;
interrupt-controller;
#interrupt-cells = <2>;
onkey {
compatible = "st,stpmic1-onkey";
interrupts = <IT_PONKEY_F 0>,<IT_PONKEY_R 1>;
interrupt-names = "onkey-falling", "onkey-rising";
power-off-time-sec = <10>;
};
watchdog {
compatible = "st,stpmic1-wdt";
};
regulators {
compatible = "st,stpmic1-regulators";
ldo6-supply = <&v3v3>;
buck1 {
regulator-name = "vdd_core";
interrupts = <IT_CURLIM_BUCK1 0>;
st,mask-reset;
regulator-boot-on;
regulator-min-microvolt = <700000>;
regulator-max-microvolt = <1200000>;
};
buck3 {
regulator-name = "vdd";
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
regulator-boot-on;
regulator-pull-down;
};
buck4 {
regulator-name = "v3v3";
interrupts = <IT_CURLIM_BUCK4 0>;
regulator-min-microvolt = <3300000>;
regulator-max-microvolt = <3300000>;
};
ldo6 {
regulator-name = "v1v8";
regulator-min-microvolt = <1800000>;
regulator-max-microvolt = <1800000>;
regulator-over-current-protection;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)