Qualcomm PM8921 PMIC Power Key
Schema identifier ($id): "http://devicetree.org/schemas/input/qcom,pm8921-pwrkey.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,pm8921-pwrkey","qcom,pm8058-pwrkey"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"qcom,pm8921-pwrkey"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
key release
Item 2
key press
debounce — not listed as required here #
Time in microseconds that key must be pressed or released for state change interrupt to trigger.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
pull-up — not listed as required here #
Presence of this property indicates that the KPDPWR_N pin should be configured for pull up.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
ssbi {
#address-cells = <1>;
#size-cells = <0>;
pmic@0 {
reg = <0x0>;
#address-cells = <1>;
#size-cells = <0>;
pwrkey@1c {
compatible = "qcom,pm8921-pwrkey";
reg = <0x1c>;
interrupt-parent = <&pmicint>;
interrupts = <50 IRQ_TYPE_EDGE_RISING>, <51 IRQ_TYPE_EDGE_RISING>;
debounce = <15625>;
pull-up;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)