Qualcomm PM8941 PMIC Power Key
Schema identifier ($id): "http://devicetree.org/schemas/input/qcom,pm8941-pwrkey.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Courtney Cavin <courtney.cavin@sonymobile.com>", "Vinod Koul <vkoul@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"qcom,pm8941-pwrkey","qcom,pm8941-resin","qcom,pmk8350-pwrkey","qcom,pmk8350-resin"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"qcom,pmm8654au-pwrkey"Item 2
Exact value (
const):"qcom,pmk8350-pwrkey"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"qcom,pmm8654au-resin"Item 2
Exact value (
const):"qcom,pmk8350-resin"
interrupts — required here #
Maximum number of items (maxItems): 1
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
bias-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
wakeup-source — not listed as required here #
Button can wake-up the system. Only applicable for 'resin', 'pwrkey' always wakes the system by default.
linux,code — not listed as required here #
The input key-code associated with the power key. Use the linux event codes defined in include/dt-bindings/input/linux-event-codes.h. When property is omitted KEY_POWER is assumed.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):input.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"qcom,pm8941-pwrkey","qcom,pmk8350-pwrkey"When the condition matches (
then) #Properties and child nodes (
properties)
wakeup-source— not listed as required here
false— Not permitted by this property rule.
Required in this object (required): "compatible", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)