Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1332802

Re: [PATCH v2] auxdisplay: ht16k33: Driver for LED controller.

From Rob Herring <robh@kernel.org>
Newsgroups linux.kernel
Subject Re: [PATCH v2] auxdisplay: ht16k33: Driver for LED controller.
Date 2016-02-12 16:20 +0100
Message-ID <r1nFM-jQ-9@gated-at.bofh.it> (permalink)
References <r0eOe-3mG-25@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, Feb 09, 2016 at 12:31:08PM +0100, Robin van der Gracht wrote:
> This is a driver for the Holtek HT16K33 LED controller with keyscan.
> 
> Signed-off-by: Robin van der Gracht <robin@protonic.nl>
> ---
> Changes in v2:
>   - Fixed build error reported by kbuild test robot by including mm.h
> 
>  .../devicetree/bindings/display/ht16k33.txt        |  42 ++
>  drivers/auxdisplay/Kconfig                         |   9 +
>  drivers/auxdisplay/Makefile                        |   1 +
>  drivers/auxdisplay/ht16k33.c                       | 573 +++++++++++++++++++++
>  4 files changed, 625 insertions(+)
>  create mode 100644 Documentation/devicetree/bindings/display/ht16k33.txt
>  create mode 100644 drivers/auxdisplay/ht16k33.c
> 
> diff --git a/Documentation/devicetree/bindings/display/ht16k33.txt b/Documentation/devicetree/bindings/display/ht16k33.txt
> new file mode 100644
> index 0000000..45fbabb
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/display/ht16k33.txt
> @@ -0,0 +1,42 @@
> +Holtek ht16k33 RAM mapping 16*8 LED controller driver with keyscan
> +-------------------------------------------------------------------------------
> +
> +Required properties:
> +- compatible:			"ht,ht16k33"
> +- reg:					I2C slave address of the chip.
> +- interrupt-parent: 	A phandle pointing to the interrupt controller
> +						serving the interrupt for this chip.
> +- interrupts:			Interrupt specification for the key pressed interrupt.
> +- refresh-rate:			Display update interval in HZ.

Add units: "-hz"

> +- debounce-delay-ms:	Debouncing interval time in microseconds.
> +- linux,keymap:			The keymap for keys as described in the binding
> +						document (devicetree/bindings/input/matrix-keymap.txt).

The alignment of the descriptions here seem to be random. Please line 
them up.

> +
> +Optional properties:
> +- linux,no-autorepeat:	Disable keyrepeat.
> +- default-brightness:	Initial brightness setting [0-15] (15 if not set).

default-brightness-level seem a bit more common.

> +
> +Example:
> +
> +&i2c1 {
> +	ht16k33: ht16k33@70 {
> +		compatible = "ht,ht16k33";
> +		reg = <0x70>;
> +		refresh-rate = <20>;
> +		debounce-delay-ms = <50>;
> +		interrupt-parent = <&gpio4>;
> +		interrupts = <5 (IRQ_TYPE_LEVEL_HIGH | IRQ_TYPE_EDGE_RISING)>;
> +		linux,keymap = <
> +			   MATRIX_KEY(2, 0, KEY_F6)
> +			   MATRIX_KEY(3, 0, KEY_F8)
> +			   MATRIX_KEY(4, 0, KEY_F0)
> +			   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)
> +			   >;
> +	   };
> +};

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v2] auxdisplay: ht16k33: Driver for LED controller. Robin van der Gracht <robin@protonic.nl> - 2016-02-09 12:40 +0100
  Re: [PATCH v2] auxdisplay: ht16k33: Driver for LED controller. Rob Herring <robh@kernel.org> - 2016-02-12 16:20 +0100
    Re: [PATCH v2] auxdisplay: ht16k33: Driver for LED controller. Robin van der Gracht <robin@protonic.nl> - 2016-02-15 10:40 +0100

csiph-web