TI-NSPIRE Keypad

Schema identifier ($id): "http://devicetree.org/schemas/input/ti,nspire-keypad.yaml#"

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

Maintainers (maintainers): "Andrew Davis <afd@ti.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): matrix-keymap.yaml#

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,nspire-keypad"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

scan-interval — required here #

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

How often to scan in us. Based on a APB speed of 33MHz, the maximum and minimum delay time is ~2000us and ~500us respectively

row-delay — required here #

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

How long to wait between scanning each row in us.

active-low — not listed as required here #

Specify that the keypad is active low.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "scan-interval", "row-delay", "linux,keymap"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/input/input.h>
keypad@900e0000 {
    compatible = "ti,nspire-keypad";
    reg = <0x900e0000 0x1000>;
    interrupts = <16>;

    clocks = <&apb_pclk>;

    scan-interval = <1000>;
    row-delay = <200>;

    linux,keymap = <
        MATRIX_KEY(0,  0, KEY_ENTER)
        MATRIX_KEY(0,  1, KEY_ENTER)
        MATRIX_KEY(0,  4, KEY_SPACE)
        MATRIX_KEY(0,  5, KEY_Z)
        MATRIX_KEY(0,  6, KEY_Y)
        MATRIX_KEY(0,  7, KEY_0)
    >;
};

Source notes #

Annotations retained from the schema source

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

Edit this page