summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/auxdisplay/img,ascii-lcd.yaml
blob: 1899b23de7d1e45de7b765ba0da93071c9a35592 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/auxdisplay/img,ascii-lcd.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: ASCII LCD displays on Imagination Technologies boards

maintainers:
  - Paul Burton <paulburton@kernel.org>

properties:
  compatible:
    enum:
      - img,boston-lcd
      - mti,malta-lcd
      - mti,sead3-lcd

  reg:
    maxItems: 1

  offset:
    $ref: /schemas/types.yaml#/definitions/uint32
    description:
      Offset in bytes to the LCD registers within the system controller

required:
  - compatible

oneOf:
  - required:
      - reg
  - required:
      - offset

if:
  properties:
    compatible:
      contains:
        const: img,boston-lcd
then:
  required:
    - reg
else:
  required:
    - offset

additionalProperties: false

examples:
  - |
    lcd: lcd@17fff000 {
            compatible = "img,boston-lcd";
            reg = <0x17fff000 0x8>;
    };