Path: blob/master/Documentation/devicetree/bindings/display/amlogic,meson-vpu.yaml
26308 views
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)1# Copyright 2019 BayLibre, SAS2%YAML 1.23---4$id: http://devicetree.org/schemas/display/amlogic,meson-vpu.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#67title: Amlogic Meson Display Controller89maintainers:10- Neil Armstrong <neil.armstrong@linaro.org>1112description: |13The Amlogic Meson Display controller is composed of several components14that are going to be documented below1516DMC|---------------VPU (Video Processing Unit)----------------|------HHI------|17| vd1 _______ _____________ _________________ | |18D |-------| |----| | | | | HDMI PLL |19D | vd2 | VIU | | Video Post | | Video Encoders |<---|-----VCLK |20R |-------| |----| Processing | | | | |21| osd2 | | | |---| Enci ----------|----|-----VDAC------|22R |-------| CSC |----| Scalers | | Encp ----------|----|----HDMI-TX----|23A | osd1 | | | Blenders | | Encl ----------|----|---------------|24M |-------|______|----|____________| |________________| | |25___|__________________________________________________________|_______________|262728VIU: Video Input Unit29---------------------3031The Video Input Unit is in charge of the pixel scanout from the DDR memory.32It fetches the frames addresses, stride and parameters from the "Canvas" memory.33This part is also in charge of the CSC (Colorspace Conversion).34It can handle 2 OSD Planes and 2 Video Planes.3536VPP: Video Post Processing37--------------------------3839The Video Post Processing is in charge of the scaling and blending of the40various planes into a single pixel stream.41There is a special "pre-blending" used by the video planes with a dedicated42scaler and a "post-blending" to merge with the OSD Planes.43The OSD planes also have a dedicated scaler for one of the OSD.4445VENC: Video Encoders46--------------------4748The VENC is composed of the multiple pixel encoders49- ENCI : Interlace Video encoder for CVBS and Interlace HDMI50- ENCP : Progressive Video Encoder for HDMI51- ENCL : LCD LVDS Encoder52The VENC Unit gets a Pixel Clocks (VCLK) from a dedicated HDMI PLL and clock53tree and provides the scanout clock to the VPP and VIU.54The ENCI is connected to a single VDAC for Composite Output.55The ENCI and ENCP are connected to an on-chip HDMI Transceiver.5657properties:58compatible:59oneOf:60- items:61- enum:62- amlogic,meson-gxbb-vpu # GXBB (S905)63- amlogic,meson-gxl-vpu # GXL (S905X, S905D)64- amlogic,meson-gxm-vpu # GXM (S912)65- const: amlogic,meson-gx-vpu66- enum:67- amlogic,meson-g12a-vpu # G12A (S905X2, S905Y2, S905D2)6869reg:70maxItems: 27172reg-names:73items:74- const: vpu75- const: hhi7677interrupts:78maxItems: 17980amlogic,canvas:81description: should point to a canvas provider node82$ref: /schemas/types.yaml#/definitions/phandle8384power-domains:85maxItems: 186description: phandle to the associated power domain8788port@0:89$ref: /schemas/graph.yaml#/properties/port90description:91A port node pointing to the CVBS VDAC port node.9293port@1:94$ref: /schemas/graph.yaml#/properties/port95description:96A port node pointing to the HDMI-TX port node.9798port@2:99$ref: /schemas/graph.yaml#/properties/port100description:101A port node pointing to the DPI port node (e.g. DSI or LVDS transceiver).102103"#address-cells":104const: 1105106"#size-cells":107const: 0108109required:110- compatible111- reg112- interrupts113- port@0114- port@1115- "#address-cells"116- "#size-cells"117- amlogic,canvas118119additionalProperties: false120121examples:122- |123vpu: vpu@d0100000 {124compatible = "amlogic,meson-gxbb-vpu", "amlogic,meson-gx-vpu";125reg = <0xd0100000 0x100000>, <0xc883c000 0x1000>;126reg-names = "vpu", "hhi";127interrupts = <3>;128#address-cells = <1>;129#size-cells = <0>;130amlogic,canvas = <&canvas>;131132/* CVBS VDAC output port */133port@0 {134reg = <0>;135136cvbs_vdac_out: endpoint {137remote-endpoint = <&tv_connector_in>;138};139};140141/* HDMI TX output port */142port@1 {143reg = <1>;144145hdmi_tx_out: endpoint {146remote-endpoint = <&hdmi_tx_in>;147};148};149};150151152