brintos

brintos / linux-shallow public Read only

0
0
Text · 2.4 KiB · b110eb1 Raw
86 lines · yaml
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)2%YAML 1.23---4$id: http://devicetree.org/schemas/input/imx-keypad.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Freescale i.MX Keypad Port(KPP)8 9maintainers:10  - Liu Ying <gnuiyl@gmail.com>11 12allOf:13  - $ref: /schemas/input/matrix-keymap.yaml#14 15description: |16  The KPP is designed to interface with a keypad matrix with 2-point contact17  or 3-point contact keys. The KPP is designed to simplify the software task18  of scanning a keypad matrix. The KPP is capable of detecting, debouncing,19  and decoding one or multiple keys pressed simultaneously on a keypad.20 21properties:22  compatible:23    oneOf:24      - const: fsl,imx21-kpp25      - items:26          - enum:27              - fsl,imx25-kpp28              - fsl,imx27-kpp29              - fsl,imx31-kpp30              - fsl,imx35-kpp31              - fsl,imx51-kpp32              - fsl,imx53-kpp33              - fsl,imx50-kpp34              - fsl,imx6q-kpp35              - fsl,imx6sx-kpp36              - fsl,imx6sl-kpp37              - fsl,imx6sll-kpp38              - fsl,imx6ul-kpp39              - fsl,imx7d-kpp40          - const: fsl,imx21-kpp41 42  reg:43    maxItems: 144 45  interrupts:46    maxItems: 147 48  clocks:49    maxItems: 150 51required:52  - compatible53  - reg54  - interrupts55  - clocks56  - linux,keymap57 58unevaluatedProperties: false59 60examples:61  - |62    keypad@73f94000 {63        compatible = "fsl,imx51-kpp", "fsl,imx21-kpp";64        reg = <0x73f94000 0x4000>;65        interrupts = <60>;66        clocks = <&clks 0>;67        pinctrl-names = "default";68        pinctrl-0 = <&pinctrl_kpp_1>;69        linux,keymap = <0x00000067	/* KEY_UP */70                        0x0001006c	/* KEY_DOWN */71                        0x00020072	/* KEY_VOLUMEDOWN */72                        0x00030066	/* KEY_HOME */73                        0x0100006a	/* KEY_RIGHT */74                        0x01010069	/* KEY_LEFT */75                        0x0102001c	/* KEY_ENTER */76                        0x01030073	/* KEY_VOLUMEUP */77                        0x02000040	/* KEY_F6 */78                        0x02010042	/* KEY_F8 */79                        0x02020043	/* KEY_F9 */80                        0x02030044	/* KEY_F10 */81                        0x0300003b	/* KEY_F1 */82                        0x0301003c	/* KEY_F2 */83                        0x0302003d	/* KEY_F3 */84                        0x03030074>;	/* KEY_POWER */85    };86