Holtek HT16K33 RAM mapping 16*8 LED controller with keyscan

Schema identifier ($id): "http://devicetree.org/schemas/auxdisplay/holtek,ht16k33.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Robin van der Gracht <robin@protonic.nl>"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/input/matrix-keymap.yaml#

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "adafruit,3108", "adafruit,3130"

Item 2

Exact value (const): "holtek,ht16k33"

Rule 2

Exact value (const): "holtek,ht16k33"

reg — required here #

Maximum number of items (maxItems): 1

refresh-rate-hz — not listed as required here #

Maximum number of items (maxItems): 1

Display update interval in Hertz for dot-matrix displays

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

debounce-delay-ms — not listed as required here #

Maximum number of items (maxItems): 1

Debouncing interval time in milliseconds

linux,keymap — not listed as required here #

true — No constraints added by this property rule.

linux,no-autorepeat — not listed as required here #

Value type (type): "boolean"

Disable keyrepeat

default-brightness-level — not listed as required here #

Minimum value (minimum): 1

Maximum value (maximum): 16

Default value (default): 16

Initial brightness level

led — not listed as required here #

Value type (type): "object"

Shared schema rule ($ref): /schemas/leds/common.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg"

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Exact value (const): "holtek,ht16k33"

When the condition matches (then) #

Required in this object (required): "refresh-rate-hz"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/leds/common.h>
i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    display-controller@70 {
        compatible = "holtek,ht16k33";
        reg = <0x70>;
        refresh-rate-hz = <20>;
        interrupt-parent = <&gpio4>;
        interrupts = <5 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;
        debounce-delay-ms = <50>;
        linux,keymap = <MATRIX_KEY(2, 0, KEY_F6)>,
                       <MATRIX_KEY(3, 0, KEY_F8)>,
                       <MATRIX_KEY(4, 0, KEY_F10)>,
                       <MATRIX_KEY(5, 0, KEY_F4)>,
                       <MATRIX_KEY(6, 0, KEY_F2)>,
                       <MATRIX_KEY(2, 1, KEY_F5)>,
                       <MATRIX_KEY(3, 1, KEY_F7)>,
                       <MATRIX_KEY(4, 1, KEY_F9)>,
                       <MATRIX_KEY(5, 1, KEY_F3)>,
                       <MATRIX_KEY(6, 1, KEY_F1)>;

        led {
            color = <LED_COLOR_ID_RED>;
            function = LED_FUNCTION_BACKLIGHT;
            linux,default-trigger = "backlight";
        };
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 20: 0.56" 4-Digit 7-Segment FeatherWing Display (Red)

Line 21: 0.54" Quad Alphanumeric FeatherWing Display (Red)

Line 24: Generic 16*8 LED controller with dot-matrix display

Edit this page