|
| 1 | +# Copyright (c) 2022, Byte-Lab d.o.o. <[email protected]> |
| 2 | +# SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +description: STM32 LCD-TFT display controller |
| 5 | + |
| 6 | +compatible: "st,stm32-ltdc" |
| 7 | + |
| 8 | +include: [display-controller.yaml, pinctrl-device.yaml] |
| 9 | + |
| 10 | +properties: |
| 11 | + disp-on-gpios: |
| 12 | + type: phandle-array |
| 13 | + required: false |
| 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 | + required: false |
| 21 | + description: | |
| 22 | + Backlight on/off GPIO pin. |
| 23 | + Configure the GPIO polarity (active high/active low) according to LCD datasheet. |
| 24 | +
|
| 25 | + ext-sdram: |
| 26 | + type: phandle |
| 27 | + required: false |
| 28 | + description: | |
| 29 | + External SDRAM in which frame buffer will be stored. |
| 30 | + If not defined, internal RAM will be used. |
| 31 | +
|
| 32 | + clocks: |
| 33 | + required: true |
| 34 | + |
| 35 | + interrupts: |
| 36 | + required: true |
| 37 | + |
| 38 | + pinctrl-0: |
| 39 | + required: true |
| 40 | + |
| 41 | + hsync-pol: |
| 42 | + type: int |
| 43 | + required: true |
| 44 | + description: | |
| 45 | + Horizontal synchronization pulse polarity. |
| 46 | + If HSYNC is active low, use STM32_LTDC_HSPOL_ACTIVE_LOW, |
| 47 | + otherwise use STM32_LTDC_HSPOL_ACTIVE_HIGH. |
| 48 | +
|
| 49 | + vsync-pol: |
| 50 | + type: int |
| 51 | + required: true |
| 52 | + description: | |
| 53 | + Vertical synchronization pulse polarity. |
| 54 | + If VSYNC is active low, use STM32_LTDC_VSPOL_ACTIVE_LOW, |
| 55 | + otherwise use STM32_LTDC_VSPOL_ACTIVE_HIGH. |
| 56 | +
|
| 57 | + de-pol: |
| 58 | + type: int |
| 59 | + required: true |
| 60 | + description: | |
| 61 | + Data enable pulse polarity. |
| 62 | + If DE is active low, use STM32_LTDC_DEPOL_ACTIVE_LOW, |
| 63 | + otherwise use STM32_LTDC_DEPOL_ACTIVE_HIGH. |
| 64 | +
|
| 65 | + pclk-pol: |
| 66 | + type: int |
| 67 | + required: true |
| 68 | + description: | |
| 69 | + Pixel clock polarity. |
| 70 | + If RGB data is sampled on falling edge of PCLK, use STM32_LTDC_PCPOL_ACTIVE_LOW, |
| 71 | + otherwise use STM32_LTDC_PCPOL_ACTIVE_HIGH. |
| 72 | +
|
| 73 | + hsync-duration: |
| 74 | + type: int |
| 75 | + required: true |
| 76 | + description: Horizontal synchronization pulse duration, in pixels |
| 77 | + |
| 78 | + vsync-duration: |
| 79 | + type: int |
| 80 | + required: true |
| 81 | + description: Vertical synchronization pulse duration, in lines |
| 82 | + |
| 83 | + hbp-duration: |
| 84 | + type: int |
| 85 | + required: true |
| 86 | + description: Horizontal back-porch duration, in pixels |
| 87 | + |
| 88 | + vbp-duration: |
| 89 | + type: int |
| 90 | + required: true |
| 91 | + description: Vertical back-porch duration, in lines |
| 92 | + |
| 93 | + hfp-duration: |
| 94 | + type: int |
| 95 | + required: true |
| 96 | + description: Horizontal front porch duration, in pixels |
| 97 | + |
| 98 | + vfp-duration: |
| 99 | + type: int |
| 100 | + required: true |
| 101 | + description: Vertical front porch duration, in lines |
| 102 | + |
| 103 | + def-back-color-red: |
| 104 | + type: int |
| 105 | + required: false |
| 106 | + description: Default display background color - red |
| 107 | + |
| 108 | + def-back-color-green: |
| 109 | + type: int |
| 110 | + required: false |
| 111 | + description: Default display background color - green |
| 112 | + |
| 113 | + def-back-color-blue: |
| 114 | + type: int |
| 115 | + required: false |
| 116 | + description: Default display background color - blue |
0 commit comments