Samsung SoC series Keypad Controller
Schema identifier ($id): "http://devicetree.org/schemas/input/samsung,s3c6410-keypad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Samsung SoC Keypad controller is used to interface a SoC with a matrix-type keypad device. The keypad controller supports multiple row and column lines. A key can be placed at each intersection of a unique row and a unique column. The keypad controller can sense a key-press and key-release and report the event using a interrupt to the cpu.
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "samsung,s3c6410-keypad", "samsung,s5pv210-keypad"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"keypad"
interrupts — required here #
Maximum number of items (maxItems): 1
wakeup-source — not listed as required here #
true — No constraints added by this property rule.
linux,input-no-autorepeat — not listed as required here #
Value type (type): "boolean"
Do no enable autorepeat feature.
linux,input-wakeup — not listed as required here #
Value type (type): "boolean"
Deprecated (deprecated): true
samsung,keypad-num-columns — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of column lines connected to the keypad controller.
samsung,keypad-num-rows — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of row lines connected to the keypad controller.
Properties matching a name pattern (patternProperties) #
^key-[0-9a-z]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): input.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Each key connected to the keypad controller is represented as a child node to the keypad controller device node.
Properties and child nodes (properties) #
keypad,column — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The column number to which the key is connected.
keypad,row — required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The row number to which the key is connected.
linux,code — required here
true — No constraints added by this property rule.
Required in this object (required): "keypad,column", "keypad,row", "linux,code"
Required in this object (required): "compatible", "reg", "interrupts", "samsung,keypad-num-columns", "samsung,keypad-num-rows"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
keypad@100a0000 {
compatible = "samsung,s5pv210-keypad";
reg = <0x100a0000 0x100>;
interrupts = <GIC_SPI 109 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clock CLK_KEYIF>;
clock-names = "keypad";
samsung,keypad-num-rows = <2>;
samsung,keypad-num-columns = <8>;
linux,input-no-autorepeat;
wakeup-source;
key-1 {
keypad,row = <0>;
keypad,column = <3>;
linux,code = <2>;
};
key-2 {
keypad,row = <0>;
keypad,column = <4>;
linux,code = <3>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause