Path: blob/master/Documentation/devicetree/bindings/auxdisplay/holtek,ht16k33.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)1%YAML 1.22---3$id: http://devicetree.org/schemas/auxdisplay/holtek,ht16k33.yaml#4$schema: http://devicetree.org/meta-schemas/core.yaml#56title: Holtek HT16K33 RAM mapping 16*8 LED controller with keyscan78maintainers:9- Robin van der Gracht <robin@protonic.nl>1011allOf:12- $ref: /schemas/input/matrix-keymap.yaml#1314properties:15compatible:16oneOf:17- items:18- enum:19- adafruit,3108 # 0.56" 4-Digit 7-Segment FeatherWing Display (Red)20- adafruit,3130 # 0.54" Quad Alphanumeric FeatherWing Display (Red)21- const: holtek,ht16k332223- const: holtek,ht16k33 # Generic 16*8 LED controller with dot-matrix display2425reg:26maxItems: 12728refresh-rate-hz:29maxItems: 130description: Display update interval in Hertz for dot-matrix displays3132interrupts:33maxItems: 13435debounce-delay-ms:36maxItems: 137description: Debouncing interval time in milliseconds3839linux,keymap: true4041linux,no-autorepeat:42type: boolean43description: Disable keyrepeat4445default-brightness-level:46minimum: 147maximum: 1648default: 1649description: Initial brightness level5051led:52type: object53$ref: /schemas/leds/common.yaml#54unevaluatedProperties: false5556required:57- compatible58- reg5960if:61properties:62compatible:63const: holtek,ht16k3364then:65required:66- refresh-rate-hz6768additionalProperties: false6970examples:71- |72#include <dt-bindings/interrupt-controller/irq.h>73#include <dt-bindings/input/input.h>74#include <dt-bindings/leds/common.h>75i2c {76#address-cells = <1>;77#size-cells = <0>;7879display-controller@70 {80compatible = "holtek,ht16k33";81reg = <0x70>;82refresh-rate-hz = <20>;83interrupt-parent = <&gpio4>;84interrupts = <5 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;85debounce-delay-ms = <50>;86linux,keymap = <MATRIX_KEY(2, 0, KEY_F6)>,87<MATRIX_KEY(3, 0, KEY_F8)>,88<MATRIX_KEY(4, 0, KEY_F10)>,89<MATRIX_KEY(5, 0, KEY_F4)>,90<MATRIX_KEY(6, 0, KEY_F2)>,91<MATRIX_KEY(2, 1, KEY_F5)>,92<MATRIX_KEY(3, 1, KEY_F7)>,93<MATRIX_KEY(4, 1, KEY_F9)>,94<MATRIX_KEY(5, 1, KEY_F3)>,95<MATRIX_KEY(6, 1, KEY_F1)>;9697led {98color = <LED_COLOR_ID_RED>;99function = LED_FUNCTION_BACKLIGHT;100linux,default-trigger = "backlight";101};102};103};104105106