Skip to content

Commit 1741b01

Browse files
poeschelojeda
authored andcommitted
auxdisplay: lcd2s DT binding doc
Add a binding doc for the modtronix lcd2s auxdisplay driver. It also adds modtronix to the list of known vendor-prefixes. Reviewed-by: Willy Tarreau <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Lars Poeschel <[email protected]> Signed-off-by: Miguel Ojeda <[email protected]>
1 parent af9470b commit 1741b01

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/auxdisplay/modtronix,lcd2s.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Modtronix engineering LCD2S Character LCD Display
8+
9+
maintainers:
10+
- Lars Poeschel <[email protected]>
11+
12+
description:
13+
The LCD2S is a Character LCD Display manufactured by Modtronix Engineering.
14+
The display supports a serial I2C and SPI interface. The driver currently
15+
only supports the I2C interface.
16+
17+
properties:
18+
compatible:
19+
const: modtronix,lcd2s
20+
21+
reg:
22+
maxItems: 1
23+
description:
24+
I2C bus address of the display.
25+
26+
display-height-chars:
27+
description: Height of the display, in character cells.
28+
$ref: /schemas/types.yaml#/definitions/uint32
29+
minimum: 1
30+
maximum: 4
31+
32+
display-width-chars:
33+
description: Width of the display, in character cells.
34+
$ref: /schemas/types.yaml#/definitions/uint32
35+
minimum: 16
36+
maximum: 20
37+
38+
required:
39+
- compatible
40+
- reg
41+
- display-height-chars
42+
- display-width-chars
43+
44+
additionalProperties: false
45+
46+
examples:
47+
- |
48+
i2c {
49+
#address-cells = <1>;
50+
#size-cells = <0>;
51+
52+
lcd2s: auxdisplay@28 {
53+
compatible = "modtronix,lcd2s";
54+
reg = <0x28>;
55+
display-height-chars = <4>;
56+
display-width-chars = <20>;
57+
};
58+
};

Documentation/devicetree/bindings/vendor-prefixes.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -681,6 +681,8 @@ patternProperties:
681681
description: MiraMEMS Sensing Technology Co., Ltd.
682682
"^mitsubishi,.*":
683683
description: Mitsubishi Electric Corporation
684+
"^modtronix,.*":
685+
description: Modtronix Engineering
684686
"^mosaixtech,.*":
685687
description: Mosaix Technologies, Inc.
686688
"^motorola,.*":

0 commit comments

Comments
 (0)