0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/auxdisplay/modtronix,lcd2s.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Modtronix engineering LCD2S Character LCD Display
0008
0009 maintainers:
0010 - Lars Poeschel <poeschel@lemonage.de>
0011
0012 description:
0013 The LCD2S is a Character LCD Display manufactured by Modtronix Engineering.
0014 The display supports a serial I2C and SPI interface. The driver currently
0015 only supports the I2C interface.
0016
0017 properties:
0018 compatible:
0019 const: modtronix,lcd2s
0020
0021 reg:
0022 maxItems: 1
0023 description:
0024 I2C bus address of the display.
0025
0026 display-height-chars:
0027 description: Height of the display, in character cells.
0028 $ref: /schemas/types.yaml#/definitions/uint32
0029 minimum: 1
0030 maximum: 4
0031
0032 display-width-chars:
0033 description: Width of the display, in character cells.
0034 $ref: /schemas/types.yaml#/definitions/uint32
0035 minimum: 16
0036 maximum: 20
0037
0038 required:
0039 - compatible
0040 - reg
0041 - display-height-chars
0042 - display-width-chars
0043
0044 additionalProperties: false
0045
0046 examples:
0047 - |
0048 i2c {
0049 #address-cells = <1>;
0050 #size-cells = <0>;
0051
0052 lcd2s: auxdisplay@28 {
0053 compatible = "modtronix,lcd2s";
0054 reg = <0x28>;
0055 display-height-chars = <4>;
0056 display-width-chars = <20>;
0057 };
0058 };