Path: blob/master/Documentation/devicetree/bindings/input/matrix-keymap.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/input/matrix-keymap.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Common Key Matrices on Matrix-connected Key Boards78maintainers:9- Olof Johansson <olof@lixom.net>1011description: |12A simple common binding for matrix-connected key boards. Currently targeted at13defining the keys in the scope of linux key codes since that is a stable and14standardized interface at this time.1516Some users of this binding might choose to specify secondary keymaps for17cases where there is a modifier key such as a Fn key. Proposed names18for said properties are "linux,fn-keymap" or with another descriptive19word for the modifier other from "Fn".2021properties:22linux,keymap:23$ref: /schemas/types.yaml#/definitions/uint32-array24description: |25An array of packed 1-cell entries containing the equivalent of row,26column and linux key-code. The 32-bit big endian cell is packed as:27row << 24 | column << 16 | key-code2829keypad,num-rows:30$ref: /schemas/types.yaml#/definitions/uint3231description: Number of row lines connected to the keypad controller.3233keypad,num-columns:34$ref: /schemas/types.yaml#/definitions/uint3235description: Number of column lines connected to the keypad controller.3637additionalProperties: true3839examples:40- |41keypad {42/* ... */43linux,keymap = < 0x00030012440x0102003a >;45keypad,num-rows = <2>;46keypad,num-columns = <8>;47};484950