Path: blob/master/Documentation/devicetree/bindings/input/imx-keypad.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/imx-keypad.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Freescale i.MX Keypad Port(KPP)78maintainers:9- Liu Ying <gnuiyl@gmail.com>1011allOf:12- $ref: /schemas/input/matrix-keymap.yaml#1314description: |15The KPP is designed to interface with a keypad matrix with 2-point contact16or 3-point contact keys. The KPP is designed to simplify the software task17of scanning a keypad matrix. The KPP is capable of detecting, debouncing,18and decoding one or multiple keys pressed simultaneously on a keypad.1920properties:21compatible:22oneOf:23- const: fsl,imx21-kpp24- items:25- enum:26- fsl,imx25-kpp27- fsl,imx27-kpp28- fsl,imx31-kpp29- fsl,imx35-kpp30- fsl,imx51-kpp31- fsl,imx53-kpp32- fsl,imx50-kpp33- fsl,imx6q-kpp34- fsl,imx6sx-kpp35- fsl,imx6sl-kpp36- fsl,imx6sll-kpp37- fsl,imx6ul-kpp38- fsl,imx7d-kpp39- const: fsl,imx21-kpp4041reg:42maxItems: 14344interrupts:45maxItems: 14647clocks:48maxItems: 14950required:51- compatible52- reg53- interrupts54- clocks55- linux,keymap5657unevaluatedProperties: false5859examples:60- |61keypad@73f94000 {62compatible = "fsl,imx51-kpp", "fsl,imx21-kpp";63reg = <0x73f94000 0x4000>;64interrupts = <60>;65clocks = <&clks 0>;66pinctrl-names = "default";67pinctrl-0 = <&pinctrl_kpp_1>;68linux,keymap = <0x00000067 /* KEY_UP */690x0001006c /* KEY_DOWN */700x00020072 /* KEY_VOLUMEDOWN */710x00030066 /* KEY_HOME */720x0100006a /* KEY_RIGHT */730x01010069 /* KEY_LEFT */740x0102001c /* KEY_ENTER */750x01030073 /* KEY_VOLUMEUP */760x02000040 /* KEY_F6 */770x02010042 /* KEY_F8 */780x02020043 /* KEY_F9 */790x02030044 /* KEY_F10 */800x0300003b /* KEY_F1 */810x0301003c /* KEY_F2 */820x0302003d /* KEY_F3 */830x03030074>; /* KEY_POWER */84};858687