Qualcomm PON Device

Schema identifier ($id): "http://devicetree.org/schemas/power/reset/qcom,pon.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Vinod Koul <vkoul@kernel.org>"

The Power On device for Qualcomm PM8xxx is MFD supporting pwrkey and resin along with the Android reboot-mode.

This DT node has pwrkey and resin as sub nodes.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "qcom,pm8916-pon", "qcom,pm8941-pon", "qcom,pms405-pon", "qcom,pm8998-pon", "qcom,pmk8350-pon"

reg — required here #

Specifies the SPMI base address for the PON (power-on) peripheral. For PMICs that have the PON peripheral (GEN3) split into PON_HLOS and PON_PBS (e.g. PMK8350), this can hold addresses of both PON_HLOS and PON_PBS peripherals. In that case, the PON_PBS address needs to be specified to facilitate software debouncing on some PMIC.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

pwrkey — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/input/qcom,pm8941-pwrkey.yaml#

resin — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/input/qcom,pm8941-pwrkey.yaml#

watchdog — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/watchdog/qcom,pm8916-wdt.yaml

Required in this object (required): "compatible", "reg"

Properties matching a name pattern (patternProperties) #

^mode-.*$ — name matches this regular expression #

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "qcom,pm8916-pon", "qcom,pms405-pon", "qcom,pm8998-pon"

When the condition matches (then) #

All of these rules must match (allOf)

Rule 1

Shared schema rule ($ref): reboot-mode.yaml#

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pon"

When the condition does not match (else) #

Properties matching a name pattern (patternProperties)

^mode-.*$ — name matches this regular expression

false — Not permitted by this property rule.

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,pm8941-pon"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

reg-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pon"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "qcom,pmk8350-pon"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

reg-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "hlos"

Item 2

Exact value (const): "pbs"

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/linux-event-codes.h>
#include <dt-bindings/spmi/spmi.h>

spmi@c440000 {
    reg = <0x0c440000 0x1100>;
    #address-cells = <2>;
    #size-cells = <0>;

    pmic@0 {
        reg = <0x0 SPMI_USID>;
        #address-cells = <1>;
        #size-cells = <0>;

        pon@800 {
            compatible = "qcom,pm8998-pon";
            reg = <0x800>;

            pwrkey {
                compatible = "qcom,pm8941-pwrkey";
                interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>;
                debounce = <15625>;
                bias-pull-up;
                linux,code = <KEY_POWER>;
            };

            resin {
                compatible = "qcom,pm8941-resin";
                interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>;
                debounce = <15625>;
                bias-pull-up;
                linux,code = <KEY_VOLUMEDOWN>;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)

Line 86: Special case for pm8941, which doesn't store reset mode

Edit this page