1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
4 $id: http://devicetree.org/schemas/auxdisplay/hit,hd44780.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Hitachi HD44780 Character LCD Controller
10 - Geert Uytterhoeven <geert@linux-m68k.org>
13 The Hitachi HD44780 Character LCD Controller is commonly used on character
14 LCDs that can display one or more lines of text. It exposes an M6800 bus
15 interface, which can be used in either 4-bit or 8-bit mode.
23 GPIO pins connected to the data signal lines DB0-DB7 (8-bit mode) or
24 DB4-DB7 (4-bit mode) of the LCD Controller's bus interface.
31 GPIO pin connected to the "E" (Enable) signal line of the LCD
32 Controller's bus interface.
37 GPIO pin connected to the "RS" (Register Select) signal line of the LCD
38 Controller's bus interface.
43 GPIO pin connected to the "RW" (Read/Write) signal line of the LCD
44 Controller's bus interface.
48 description: GPIO pin used for enabling the LCD's backlight.
52 description: Height of the display, in character cells,
53 $ref: /schemas/types.yaml#/definitions/uint32
58 description: Width of the display, in character cells.
59 $ref: /schemas/types.yaml#/definitions/uint32
63 internal-buffer-width:
65 Internal buffer width (default is 40 for displays with 1 or 2 lines, and
66 display-width-chars for displays with more than 2 lines).
67 $ref: /schemas/types.yaml#/definitions/uint32
76 - display-height-chars
79 additionalProperties: false
83 #include <dt-bindings/gpio/gpio.h>
85 compatible = "hit,hd44780";
87 data-gpios = <&hc595 0 GPIO_ACTIVE_HIGH>,
88 <&hc595 1 GPIO_ACTIVE_HIGH>,
89 <&hc595 2 GPIO_ACTIVE_HIGH>,
90 <&hc595 3 GPIO_ACTIVE_HIGH>;
91 enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
92 rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
94 display-height-chars = <2>;
95 display-width-chars = <16>;