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