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. By using a
16 GPIO expander it is possible to use the driver with one of the popular I2C
17 expander boards based on the PCF8574 available for these displays. For
26 GPIO pins connected to the data signal lines DB0-DB7 (8-bit mode) or
27 DB4-DB7 (4-bit mode) of the LCD Controller's bus interface.
34 GPIO pin connected to the "E" (Enable) signal line of the LCD
35 Controller's bus interface.
40 GPIO pin connected to the "RS" (Register Select) signal line of the LCD
41 Controller's bus interface.
46 GPIO pin connected to the "RW" (Read/Write) signal line of the LCD
47 Controller's bus interface.
51 description: GPIO pin used for enabling the LCD's backlight.
55 description: Height of the display, in character cells,
56 $ref: /schemas/types.yaml#/definitions/uint32
61 description: Width of the display, in character cells.
62 $ref: /schemas/types.yaml#/definitions/uint32
66 internal-buffer-width:
68 Internal buffer width (default is 40 for displays with 1 or 2 lines, and
69 display-width-chars for displays with more than 2 lines).
70 $ref: /schemas/types.yaml#/definitions/uint32
79 - display-height-chars
82 additionalProperties: false
86 #include <dt-bindings/gpio/gpio.h>
88 compatible = "hit,hd44780";
90 data-gpios = <&hc595 0 GPIO_ACTIVE_HIGH>,
91 <&hc595 1 GPIO_ACTIVE_HIGH>,
92 <&hc595 2 GPIO_ACTIVE_HIGH>,
93 <&hc595 3 GPIO_ACTIVE_HIGH>;
94 enable-gpios = <&hc595 4 GPIO_ACTIVE_HIGH>;
95 rs-gpios = <&hc595 5 GPIO_ACTIVE_HIGH>;
97 display-height-chars = <2>;
98 display-width-chars = <16>;
102 #include <dt-bindings/gpio/gpio.h>
104 #address-cells = <1>;
107 pcf8574: gpio-expander@27 {
108 compatible = "nxp,pcf8574";
116 compatible = "hit,hd44780";
117 display-height-chars = <2>;
118 display-width-chars = <16>;
119 data-gpios = <&pcf8574 4 GPIO_ACTIVE_HIGH>,
120 <&pcf8574 5 GPIO_ACTIVE_HIGH>,
121 <&pcf8574 6 GPIO_ACTIVE_HIGH>,
122 <&pcf8574 7 GPIO_ACTIVE_HIGH>;
123 enable-gpios = <&pcf8574 2 GPIO_ACTIVE_HIGH>;
124 rs-gpios = <&pcf8574 0 GPIO_ACTIVE_HIGH>;
125 rw-gpios = <&pcf8574 1 GPIO_ACTIVE_HIGH>;
126 backlight-gpios = <&pcf8574 3 GPIO_ACTIVE_HIGH>;