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