Qualcomm Technologies, Inc. PM8008 PMIC
Schema identifier ($id): "http://devicetree.org/schemas/mfd/qcom,pm8008.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Guru Das Srinagesh <quic_gurus@quicinc.com>"
Qualcomm Technologies, Inc. PM8008 is a dedicated camera PMIC that integrates all the necessary power management, housekeeping, and interface support functions into a single IC.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,pm8008"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
reset-gpios — not listed as required here #
Maximum number of items (maxItems): 1
vdd-l1-l2-supply — required here #
true — No constraints added by this property rule.
vdd-l3-l4-supply — required here #
true — No constraints added by this property rule.
vdd-l5-supply — required here #
true — No constraints added by this property rule.
vdd-l6-supply — required here #
true — No constraints added by this property rule.
vdd-l7-supply — required here #
true — No constraints added by this property rule.
gpio-controller — required here #
true — No constraints added by this property rule.
#gpio-cells — required here #
Exact value (const): 2
gpio-ranges — 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): 2
#thermal-sensor-cells — required here #
Exact value (const): 0
pinctrl — 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 matching a name pattern (patternProperties) #
-state$ — name matches this regular expression
Value type (type): "object"
All of these rules must match (allOf)
Rule 1
Shared schema rule (
$ref):/schemas/pinctrl/pinmux-node.yaml
Rule 2
Shared schema rule (
$ref):/schemas/pinctrl/pincfg-node.yaml
Properties and child nodes (properties)
pins — required here
Array item rules (items)
String pattern (
pattern):"^gpio[12]$"
function — required here
Array item rules (items)
Item 1
Required in this object (required): "pins", "function"
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"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^ldo[1-7]$ — 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.
Required in this object (required): "compatible", "reg", "interrupts", "vdd-l1-l2-supply", "vdd-l3-l4-supply", "vdd-l5-supply", "vdd-l6-supply", "vdd-l7-supply", "gpio-controller", "#gpio-cells", "gpio-ranges", "interrupt-controller", "#interrupt-cells", "#thermal-sensor-cells"
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
pm8008: pmic@8 {
compatible = "qcom,pm8008";
reg = <0x8>;
interrupt-parent = <&tlmm>;
interrupts = <32 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&tlmm 42 GPIO_ACTIVE_LOW>;
vdd-l1-l2-supply = <&vreg_s8b_1p2>;
vdd-l3-l4-supply = <&vreg_s1b_1p8>;
vdd-l5-supply = <&vreg_bob>;
vdd-l6-supply = <&vreg_bob>;
vdd-l7-supply = <&vreg_bob>;
gpio-controller;
#gpio-cells = <2>;
gpio-ranges = <&pm8008 0 0 2>;
interrupt-controller;
#interrupt-cells = <2>;
#thermal-sensor-cells = <0>;
pinctrl {
gpio-keys-state {
pins = "gpio1";
function = "normal";
};
};
regulators {
ldo1 {
regulator-name = "vreg_l1";
regulator-min-microvolt = <950000>;
regulator-max-microvolt = <1300000>;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause