Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/display/st,stm32-ltdc.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: STMicroelectronics STM32 lcd-tft display controller
0008 
0009 maintainers:
0010   - Philippe Cornu <philippe.cornu@foss.st.com>
0011   - Yannick Fertre <yannick.fertre@foss.st.com>
0012 
0013 properties:
0014   compatible:
0015     const: st,stm32-ltdc
0016 
0017   reg:
0018     maxItems: 1
0019 
0020   interrupts:
0021     items:
0022       - description: events interrupt line.
0023       - description: errors interrupt line.
0024     minItems: 1
0025 
0026   clocks:
0027     maxItems: 1
0028 
0029   clock-names:
0030     items:
0031       - const: lcd
0032 
0033   resets:
0034     maxItems: 1
0035 
0036   port:
0037     $ref: /schemas/graph.yaml#/properties/port
0038     description: |
0039       Video port for DPI RGB output.
0040       ltdc has one video port with up to 2 endpoints:
0041       - for external dpi rgb panel or bridge, using gpios.
0042       - for internal dpi input of the MIPI DSI host controller.
0043       Note: These 2 endpoints cannot be activated simultaneously.
0044 
0045 required:
0046   - compatible
0047   - reg
0048   - interrupts
0049   - clocks
0050   - clock-names
0051   - resets
0052   - port
0053 
0054 additionalProperties: false
0055 
0056 examples:
0057   - |
0058     #include <dt-bindings/interrupt-controller/arm-gic.h>
0059     #include <dt-bindings/clock/stm32mp1-clks.h>
0060     #include <dt-bindings/reset/stm32mp1-resets.h>
0061     ltdc: display-controller@40016800 {
0062         compatible = "st,stm32-ltdc";
0063         reg = <0x5a001000 0x400>;
0064         interrupts = <GIC_SPI 88 IRQ_TYPE_LEVEL_HIGH>,
0065                      <GIC_SPI 89 IRQ_TYPE_LEVEL_HIGH>;
0066         clocks = <&rcc LTDC_PX>;
0067         clock-names = "lcd";
0068         resets = <&rcc LTDC_R>;
0069 
0070         port {
0071              ltdc_out_dsi: endpoint {
0072                      remote-endpoint = <&dsi_in>;
0073              };
0074         };
0075     };
0076 
0077 ...