xref: /freebsd/sys/contrib/device-tree/Bindings/display/st,stm32-ltdc.yaml (revision c66ec88fed842fbaad62c30d510644ceb7bd2d71)
1*c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*c66ec88fSEmmanuel Vadot%YAML 1.2
3*c66ec88fSEmmanuel Vadot---
4*c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/display/st,stm32-ltdc.yaml#
5*c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*c66ec88fSEmmanuel Vadot
7*c66ec88fSEmmanuel Vadottitle: STMicroelectronics STM32 lcd-tft display controller
8*c66ec88fSEmmanuel Vadot
9*c66ec88fSEmmanuel Vadotmaintainers:
10*c66ec88fSEmmanuel Vadot  - Philippe Cornu <philippe.cornu@st.com>
11*c66ec88fSEmmanuel Vadot  - Yannick Fertre <yannick.fertre@st.com>
12*c66ec88fSEmmanuel Vadot
13*c66ec88fSEmmanuel Vadotproperties:
14*c66ec88fSEmmanuel Vadot  compatible:
15*c66ec88fSEmmanuel Vadot    const: st,stm32-ltdc
16*c66ec88fSEmmanuel Vadot
17*c66ec88fSEmmanuel Vadot  reg:
18*c66ec88fSEmmanuel Vadot    maxItems: 1
19*c66ec88fSEmmanuel Vadot
20*c66ec88fSEmmanuel Vadot  interrupts:
21*c66ec88fSEmmanuel Vadot    items:
22*c66ec88fSEmmanuel Vadot      - description: events interrupt line.
23*c66ec88fSEmmanuel Vadot      - description: errors interrupt line.
24*c66ec88fSEmmanuel Vadot    minItems: 1
25*c66ec88fSEmmanuel Vadot    maxItems: 2
26*c66ec88fSEmmanuel Vadot
27*c66ec88fSEmmanuel Vadot  clocks:
28*c66ec88fSEmmanuel Vadot    maxItems: 1
29*c66ec88fSEmmanuel Vadot
30*c66ec88fSEmmanuel Vadot  clock-names:
31*c66ec88fSEmmanuel Vadot    items:
32*c66ec88fSEmmanuel Vadot      - const: lcd
33*c66ec88fSEmmanuel Vadot
34*c66ec88fSEmmanuel Vadot  resets:
35*c66ec88fSEmmanuel Vadot    maxItems: 1
36*c66ec88fSEmmanuel Vadot
37*c66ec88fSEmmanuel Vadot  port:
38*c66ec88fSEmmanuel Vadot    type: object
39*c66ec88fSEmmanuel Vadot    description:
40*c66ec88fSEmmanuel Vadot      "Video port for DPI RGB output.
41*c66ec88fSEmmanuel Vadot      ltdc has one video port with up to 2 endpoints:
42*c66ec88fSEmmanuel Vadot      - for external dpi rgb panel or bridge, using gpios.
43*c66ec88fSEmmanuel Vadot      - for internal dpi input of the MIPI DSI host controller.
44*c66ec88fSEmmanuel Vadot      Note: These 2 endpoints cannot be activated simultaneously.
45*c66ec88fSEmmanuel Vadot      Please refer to the bindings defined in
46*c66ec88fSEmmanuel Vadot      Documentation/devicetree/bindings/media/video-interfaces.txt."
47*c66ec88fSEmmanuel Vadot
48*c66ec88fSEmmanuel Vadotrequired:
49*c66ec88fSEmmanuel Vadot  - compatible
50*c66ec88fSEmmanuel Vadot  - reg
51*c66ec88fSEmmanuel Vadot  - interrupts
52*c66ec88fSEmmanuel Vadot  - clocks
53*c66ec88fSEmmanuel Vadot  - clock-names
54*c66ec88fSEmmanuel Vadot  - resets
55*c66ec88fSEmmanuel Vadot  - port
56*c66ec88fSEmmanuel Vadot
57*c66ec88fSEmmanuel VadotadditionalProperties: false
58*c66ec88fSEmmanuel Vadot
59*c66ec88fSEmmanuel Vadotexamples:
60*c66ec88fSEmmanuel Vadot  - |
61*c66ec88fSEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
62*c66ec88fSEmmanuel Vadot    #include <dt-bindings/clock/stm32mp1-clks.h>
63*c66ec88fSEmmanuel Vadot    #include <dt-bindings/reset/stm32mp1-resets.h>
64*c66ec88fSEmmanuel Vadot    ltdc: display-controller@40016800 {
65*c66ec88fSEmmanuel Vadot        compatible = "st,stm32-ltdc";
66*c66ec88fSEmmanuel Vadot        reg = <0x5a001000 0x400>;
67*c66ec88fSEmmanuel Vadot        interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
68*c66ec88fSEmmanuel Vadot                     <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
69*c66ec88fSEmmanuel Vadot        clocks = <&rcc LTDC_PX>;
70*c66ec88fSEmmanuel Vadot        clock-names = "lcd";
71*c66ec88fSEmmanuel Vadot        resets = <&rcc LTDC_R>;
72*c66ec88fSEmmanuel Vadot
73*c66ec88fSEmmanuel Vadot        port {
74*c66ec88fSEmmanuel Vadot             ltdc_out_dsi: endpoint {
75*c66ec88fSEmmanuel Vadot                     remote-endpoint = <&dsi_in>;
76*c66ec88fSEmmanuel Vadot             };
77*c66ec88fSEmmanuel Vadot        };
78*c66ec88fSEmmanuel Vadot    };
79*c66ec88fSEmmanuel Vadot
80*c66ec88fSEmmanuel Vadot...
81*c66ec88fSEmmanuel Vadot
82