1# Copyright (c) 2022 Nuvoton Technology Corporation. 2# SPDX-License-Identifier: Apache-2.0 3 4description: Nuvoton NPCX keyboard scan controller 5 6compatible: "nuvoton,npcx-kbd" 7 8include: [base.yaml, pinctrl-device.yaml] 9 10properties: 11 reg: 12 required: true 13 14 clocks: 15 required: true 16 17 pinctrl-0: 18 required: true 19 20 pinctrl-names: 21 required: true 22 23 wui-maps: 24 type: phandles 25 required: true 26 description: | 27 Mapping table between Wake-Up Input (WUI) and KSIs. 28 29 For example the WUI mapping on 8 KSI pads would be 30 wui-maps = <&wui_io30 &wui_io31 &wui_io27 &wui_io26 31 &wui_io25 &wui_io24 &wui_io23 &wui_io22>; 32 33 row-size: 34 type: int 35 default: 8 36 required: true 37 description: | 38 The row size is used in the keyboard matrix. 39 valid range: 1 - 8 40 41 col-size: 42 type: int 43 default: 18 44 required: true 45 description: | 46 The column size is used in the keyboard matrix. 47 valid range: 1 - 18 48 49 debounce-down-ms: 50 type: int 51 default: 10 52 description: Determines the time in msecs for debouncing a key press. 53 54 debounce-up-ms: 55 type: int 56 default: 20 57 description: Determines the time in msecs for debouncing a key release. 58 59 no-ghostkey-check: 60 type: boolean 61 description: | 62 Ignore the ghost key checking in the driver if the diodes are used 63 in the matrix hardware. 64