MediaTek PMIC Keys

Schema identifier ($id): "http://devicetree.org/schemas/input/mediatek,pmic-keys.yaml#"

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

Maintainers (maintainers): "Chen Zhong <chen.zhong@mediatek.com>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): input.yaml#

There are two key functions provided by MT6397, MT6323 and other MediaTek PMICs: pwrkey and homekey. The key functions are defined as the subnode of the function node provided by the PMIC that is defined as a Multi-Function Device (MFD).

For MediaTek MT6323/MT6397 PMIC bindings see Documentation/devicetree/bindings/mfd/mediatek,mt6397.yaml

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mediatek,mt6323-keys", "mediatek,mt6328-keys", "mediatek,mt6331-keys", "mediatek,mt6357-keys", "mediatek,mt6358-keys", "mediatek,mt6359-keys", "mediatek,mt6397-keys"

power-off-time-sec — not listed as required here #

true — No constraints added by this property rule.

mediatek,long-press-mode — not listed as required here #

Key long-press force shutdown setting 0 - disabled 1 - pwrkey 2 - pwrkey+homekey

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Default value (default): 0

Maximum value (maximum): 2

Properties matching a name pattern (patternProperties) #

^((power|home)|(key-[a-z0-9-]+|[a-z0-9-]+-key))$ — name matches this regular expression #

Shared schema rule ($ref): input.yaml#

Properties and child nodes (properties) #

interrupts — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Key press interrupt

Item 2

Key release interrupt

interrupt-names — not listed as required here

true — No constraints added by this property rule.

linux,keycodes — required here

Maximum number of items (maxItems): 1

wakeup-source — not listed as required here

true — No constraints added by this property rule.

Required in this object (required): "linux,keycodes"

Condition (if) #

Properties and child nodes (properties)

interrupt-names — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "powerkey"

When the condition matches (then) #

Properties and child nodes (properties)

interrupt-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "powerkey"

Item 2

Exact value (const): "powerkey_r"

When the condition does not match (else) #

Properties and child nodes (properties)

interrupt-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "homekey"

Item 2

Exact value (const): "homekey_r"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible"

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)

Edit this page