• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1Holtek ht16k33 RAM mapping 16*8 LED controller driver with keyscan
2-------------------------------------------------------------------------------
3
4Required properties:
5- compatible:		"holtek,ht16k33"
6- reg:			I2C slave address of the chip.
7- interrupt-parent:	A phandle pointing to the interrupt controller
8			serving the interrupt for this chip.
9- interrupts:		Interrupt specification for the key pressed interrupt.
10- refresh-rate-hz:	Display update interval in HZ.
11- debounce-delay-ms:	Debouncing interval time in milliseconds.
12- linux,keymap: 	The keymap for keys as described in the binding
13			document (devicetree/bindings/input/matrix-keymap.txt).
14
15Optional properties:
16- linux,no-autorepeat:	Disable keyrepeat.
17- default-brightness-level: Initial brightness level [0-15] (default: 15).
18
19Example:
20
21&i2c1 {
22	ht16k33: ht16k33@70 {
23		compatible = "holtek,ht16k33";
24		reg = <0x70>;
25		refresh-rate-hz = <20>;
26		debounce-delay-ms = <50>;
27		interrupt-parent = <&gpio4>;
28		interrupts = <5 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;
29		linux,keymap = <
30			MATRIX_KEY(2, 0, KEY_F6)
31			MATRIX_KEY(3, 0, KEY_F8)
32			MATRIX_KEY(4, 0, KEY_F10)
33			MATRIX_KEY(5, 0, KEY_F4)
34			MATRIX_KEY(6, 0, KEY_F2)
35			MATRIX_KEY(2, 1, KEY_F5)
36			MATRIX_KEY(3, 1, KEY_F7)
37			MATRIX_KEY(4, 1, KEY_F9)
38			MATRIX_KEY(5, 1, KEY_F3)
39			MATRIX_KEY(6, 1, KEY_F1)
40		>;
41	};
42};
43