Freescale MC13xxx Power Management Integrated Circuits (PMIC)
Schema identifier ($id): "http://devicetree.org/schemas/mfd/fsl,mc13xxx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexander Kurz <akurz@blala.de>"
The MC13xxx PMIC series consists of the three models MC13783, MC13892 and MC34708 and provide regulators and other features like RTC, ADC, LED, touchscreen, codec and input buttons.
Link to datasheets
https://www.nxp.com/docs/en/data-sheet/MC13783.pdf
https://www.nxp.com/docs/en/data-sheet/MC13892.pdf
https://www.nxp.com/docs/en/data-sheet/MC34708.pdf
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,mc13783", "fsl,mc13892", "fsl,mc34708"
reg — required here #
I2C slave address or SPI chip select number.
Maximum number of items (maxItems): 1
spi-max-frequency — not listed as required here #
true — No constraints added by this property rule.
spi-cs-high — not listed as required here #
true — No constraints added by this property rule.
system-power-controller — not listed as required here #
true — No constraints added by this property rule.
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
buttons — not listed as required here #
Value type (type): "object"
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^onkey@[0-2]$ — name matches this regular expression
Shared schema rule ($ref): /schemas/input/input.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Value type (type): "object"
Properties and child nodes (properties)
reg — not listed as required here
One of
MC13783 BUTTON IDs:
0: ONOFD1
1: ONOFD2
2: ONOFD3
MC13892 BUTTON IDs:
0: PWRON1
1: PWRON2
2: PWRON3
MC34708 BUTTON IDs:
0: PWRON1
1: PWRON2
Maximum value (maximum): 2
debounce-delay-ms — not listed as required here
Allowed values (enum): 0, 30, 150, 750
Default value (default): 30
Sets the debouncing delay in milliseconds.
active-low — not listed as required here
Set active when pin is pulled low.
linux,code — not listed as required here
true — No constraints added by this property rule.
fsl,enable-reset — not listed as required here
Setting of the global reset option.
Value type (type): "boolean"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
leds — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
#address-cells — not listed as required here
Exact value (const): 1
#size-cells — not listed as required here
Exact value (const): 0
led-control — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Setting for LED-Control register array length depends on model, mc13783: 6, mc13892: 4, mc34708: 1
Properties matching a name pattern (patternProperties) #
^led@[0-9a-b]$ — name matches this regular expression
Shared schema rule ($ref): /schemas/leds/common.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties)
false
Not allowed by this rule.
Properties and child nodes (properties)
reg — not listed as required here
One of
MC13783 LED IDs
0: Main display
1: AUX display
2: Keypad
3: Red 1
4: Green 1
5: Blue 1
6: Red 2
7: Green 2
8: Blue 2
9: Red 3
10: Green 3
11: Blue 3
MC13892 LED IDs
0: Main display
1: AUX display
2: Keypad
3: Red
4: Green
5: Blue
MC34708 LED IDs
0: Charger Red
1: Charger Green
Maximum number of items (maxItems): 1
regulators — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
Value type (
type):"object"
List of child nodes specifying the regulators, depending on chip variant. Each child node is defined using the standard binding for regulators and the optional regulator properties defined below.
fsl,mc13xxx-uses-adc — not listed as required here #
Value type (type): "boolean"
Indicate the ADC is being used
fsl,mc13xxx-uses-codec — not listed as required here #
Value type (type): "boolean"
Indicate the Audio Codec is being used
fsl,mc13xxx-uses-rtc — not listed as required here #
Value type (type): "boolean"
Indicate the RTC is being used
fsl,mc13xxx-uses-touch — not listed as required here #
Value type (type): "boolean"
Indicate the touchscreen controller is being used
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,mc13783"When the condition matches (
then) #Properties and child nodes (
properties)
leds— not listed as required hereProperties and child nodes (
properties)
led-control— not listed as required hereMinimum number of items (
minItems):6Maximum number of items (
maxItems):6
regulators— not listed as required hereProperties matching a name pattern (
patternProperties)
^gpo[1-4]|pwgt[12]spi|sw[12][ab]|sw3|vaudio|vcam|vdig|vesim|vgen|viohi|violo|vmmc[12]|vrf[12]|vrfbg|vrfcp|vrfdig|vrfref|vsim|vvib$— name matches this regular expressionValue type (
type):"object"Shared schema rule (
$ref):/schemas/regulator/regulator.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,mc13892"When the condition matches (
then) #Properties and child nodes (
properties)
leds— not listed as required hereProperties and child nodes (
properties)
led-control— not listed as required hereMinimum number of items (
minItems):4Maximum number of items (
maxItems):4
regulators— not listed as required hereProperties matching a name pattern (
patternProperties)
^gpo[1-4]|pwgt[12]spi|sw[1-4]|swbst|vaudio|vcam|vcoincell|vdig|vgen[1-3]|viohi|vpll|vsd|vusb|vusb2|vvideo$— name matches this regular expressionValue type (
type):"object"Shared schema rule (
$ref):/schemas/regulator/regulator.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"fsl,mc34708"When the condition matches (
then) #Properties and child nodes (
properties)
buttons— not listed as required hereProperties matching a name pattern (
patternProperties)
^onkey@[0-2]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1
leds— not listed as required hereProperties and child nodes (
properties)
led-control— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):1
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/leds/common.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
pmic: mc13892@0 {
compatible = "fsl,mc13892";
reg = <0>;
spi-max-frequency = <1000000>;
spi-cs-high;
interrupt-parent = <&gpio0>;
interrupts = <8 IRQ_TYPE_LEVEL_HIGH>;
fsl,mc13xxx-uses-rtc;
fsl,mc13xxx-uses-adc;
buttons {
#address-cells = <1>;
#size-cells = <0>;
onkey@0 {
reg = <0>;
debounce-delay-ms = <30>;
active-low;
fsl,enable-reset;
};
};
leds {
#address-cells = <1>;
#size-cells = <0>;
led-control = <0x000 0x000 0x0e0 0x000>;
led@3 {
reg = <3>;
label = "system:red:live";
linux,default-trigger = "heartbeat";
};
};
regulators {
sw1_reg: sw1 {
regulator-min-microvolt = <600000>;
regulator-max-microvolt = <1375000>;
regulator-boot-on;
regulator-always-on;
};
sw2_reg: sw2 {
regulator-min-microvolt = <900000>;
regulator-max-microvolt = <1850000>;
regulator-boot-on;
regulator-always-on;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)