1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/auxdisplay/holtek,ht16k33.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: Holtek HT16K33 RAM mapping 16*8 LED controller with keyscan 8 9maintainers: 10 - Robin van der Gracht <robin@protonic.nl> 11 12allOf: 13 - $ref: "/schemas/input/matrix-keymap.yaml#" 14 15properties: 16 compatible: 17 const: holtek,ht16k33 18 19 reg: 20 maxItems: 1 21 22 refresh-rate-hz: 23 maxItems: 1 24 description: Display update interval in Hertz 25 26 interrupts: 27 maxItems: 1 28 29 debounce-delay-ms: 30 maxItems: 1 31 description: Debouncing interval time in milliseconds 32 33 linux,keymap: true 34 35 linux,no-autorepeat: 36 description: Disable keyrepeat 37 38 default-brightness-level: 39 minimum: 1 40 maximum: 16 41 default: 16 42 description: Initial brightness level 43 44required: 45 - compatible 46 - reg 47 - refresh-rate-hz 48 49additionalProperties: false 50 51examples: 52 - | 53 #include <dt-bindings/interrupt-controller/irq.h> 54 #include <dt-bindings/input/input.h> 55 i2c1 { 56 #address-cells = <1>; 57 #size-cells = <0>; 58 59 ht16k33: ht16k33@70 { 60 compatible = "holtek,ht16k33"; 61 reg = <0x70>; 62 refresh-rate-hz = <20>; 63 interrupt-parent = <&gpio4>; 64 interrupts = <5 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>; 65 debounce-delay-ms = <50>; 66 linux,keymap = <MATRIX_KEY(2, 0, KEY_F6)>, 67 <MATRIX_KEY(3, 0, KEY_F8)>, 68 <MATRIX_KEY(4, 0, KEY_F10)>, 69 <MATRIX_KEY(5, 0, KEY_F4)>, 70 <MATRIX_KEY(6, 0, KEY_F2)>, 71 <MATRIX_KEY(2, 1, KEY_F5)>, 72 <MATRIX_KEY(3, 1, KEY_F7)>, 73 <MATRIX_KEY(4, 1, KEY_F9)>, 74 <MATRIX_KEY(5, 1, KEY_F3)>, 75 <MATRIX_KEY(6, 1, KEY_F1)>; 76 }; 77 }; 78