1# Copyright (c) 2022, Byte-Lab d.o.o. <dev@byte-lab.com>
2# SPDX-License-Identifier: Apache-2.0
3
4description: STM32 LCD-TFT display controller
5
6compatible: "st,stm32-ltdc"
7
8include: [lcd-controller.yaml, pinctrl-device.yaml]
9
10properties:
11  disp-on-gpios:
12    type: phandle-array
13    description: |
14      Display on/off GPIO pin.
15      Configure the GPIO polarity (active high/active low) according to LCD datasheet.
16
17  bl-ctrl-gpios:
18    type: phandle-array
19    description: |
20      Backlight on/off GPIO pin.
21      Configure the GPIO polarity (active high/active low) according to LCD datasheet.
22
23  ext-sdram:
24    type: phandle
25    description: |
26      External SDRAM in which frame buffer will be stored.
27      If not defined, internal RAM will be used.
28
29  clocks:
30    required: true
31
32  interrupts:
33    required: true
34
35  pinctrl-0:
36    description: |
37      Provide a pin configuration for using parallel pixel output. In combination with DSI HOST
38      the pin configuration is not necessary due to dedicated (MIPI D-PHY) pins.
39
40  def-back-color-red:
41    type: int
42    description: Default display background color - red
43
44  def-back-color-green:
45    type: int
46    description: Default display background color - green
47
48  def-back-color-blue:
49    type: int
50    description: Default display background color - blue
51
52  window0-x0:
53    type: int
54    description: First pixel in x direction on layer 0. Defaults to 0.
55
56  window0-x1:
57    type: int
58    description: Last pixel in x direction on layer 0. Defaults to width.
59
60  window0-y0:
61    type: int
62    description: First pixel in y direction on layer 0. Defaults to 0.
63
64  window0-y1:
65    type: int
66    description: Last pixel in y direction on layer 0. Defaults to height.
67