NXP LPC32xx Key Scan Interface

Schema identifier ($id): "http://devicetree.org/schemas/input/nxp,lpc3220-key.yaml#"

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

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "nxp,lpc3220-key"

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

nxp,debounce-delay-ms — required here #

Debounce delay in ms

nxp,scan-delay-ms — required here #

Repeated scan period in ms

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "nxp,debounce-delay-ms", "nxp,scan-delay-ms", "linux,keymap"

All of these rules must match (allOf) #

Rule 1 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/lpc32xx-clock.h>

key@40050000 {
    compatible = "nxp,lpc3220-key";
    reg = <0x40050000 0x1000>;
    clocks = <&clk LPC32XX_CLK_KEY>;
    interrupt-parent = <&sic1>;
    interrupts = <22 IRQ_TYPE_LEVEL_HIGH>;
    keypad,num-rows = <1>;
    keypad,num-columns = <1>;
    nxp,debounce-delay-ms = <3>;
    nxp,scan-delay-ms = <34>;
    linux,keymap = <0x00000002>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page