1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot# Copyright 2019 BayLibre, SAS 3c66ec88fSEmmanuel Vadot%YAML 1.2 4c66ec88fSEmmanuel Vadot--- 5c66ec88fSEmmanuel Vadot$id: "http://devicetree.org/schemas/display/amlogic,meson-dw-hdmi.yaml#" 6c66ec88fSEmmanuel Vadot$schema: "http://devicetree.org/meta-schemas/core.yaml#" 7c66ec88fSEmmanuel Vadot 8c66ec88fSEmmanuel Vadottitle: Amlogic specific extensions to the Synopsys Designware HDMI Controller 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadotmaintainers: 11b97ee269SEmmanuel Vadot - Neil Armstrong <neil.armstrong@linaro.org> 12c66ec88fSEmmanuel Vadot 13e67e8565SEmmanuel VadotallOf: 14*8bab661aSEmmanuel Vadot - $ref: /schemas/sound/dai-common.yaml# 15e67e8565SEmmanuel Vadot 16c66ec88fSEmmanuel Vadotdescription: | 17c66ec88fSEmmanuel Vadot The Amlogic Meson Synopsys Designware Integration is composed of 18c66ec88fSEmmanuel Vadot - A Synopsys DesignWare HDMI Controller IP 19c66ec88fSEmmanuel Vadot - A TOP control block controlling the Clocks and PHY 20c66ec88fSEmmanuel Vadot - A custom HDMI PHY in order to convert video to TMDS signal 21c66ec88fSEmmanuel Vadot ___________________________________ 22c66ec88fSEmmanuel Vadot | HDMI TOP |<= HPD 23c66ec88fSEmmanuel Vadot |___________________________________| 24c66ec88fSEmmanuel Vadot | | | 25c66ec88fSEmmanuel Vadot | Synopsys HDMI | HDMI PHY |=> TMDS 26c66ec88fSEmmanuel Vadot | Controller |________________| 27c66ec88fSEmmanuel Vadot |___________________________________|<=> DDC 28c66ec88fSEmmanuel Vadot 29c66ec88fSEmmanuel Vadot The HDMI TOP block only supports HPD sensing. 30c66ec88fSEmmanuel Vadot The Synopsys HDMI Controller interrupt is routed through the 31c66ec88fSEmmanuel Vadot TOP Block interrupt. 32c66ec88fSEmmanuel Vadot Communication to the TOP Block and the Synopsys HDMI Controller is done 33c66ec88fSEmmanuel Vadot via a pair of dedicated addr+read/write registers. 34c66ec88fSEmmanuel Vadot The HDMI PHY is configured by registers in the HHI register block. 35c66ec88fSEmmanuel Vadot 36c66ec88fSEmmanuel Vadot Pixel data arrives in "4:4:4" format from the VENC block and the VPU HDMI mux 37c66ec88fSEmmanuel Vadot selects either the ENCI encoder for the 576i or 480i formats or the ENCP 38c66ec88fSEmmanuel Vadot encoder for all the other formats including interlaced HD formats. 39c66ec88fSEmmanuel Vadot 40c66ec88fSEmmanuel Vadot The VENC uses a DVI encoder on top of the ENCI or ENCP encoders to generate 41c66ec88fSEmmanuel Vadot DVI timings for the HDMI controller. 42c66ec88fSEmmanuel Vadot 43c66ec88fSEmmanuel Vadot Amlogic Meson GXBB, GXL and GXM SoCs families embeds the Synopsys DesignWare 44c66ec88fSEmmanuel Vadot HDMI TX IP version 2.01a with HDCP and I2C & S/PDIF 45c66ec88fSEmmanuel Vadot audio source interfaces. 46c66ec88fSEmmanuel Vadot 47c66ec88fSEmmanuel Vadotproperties: 48c66ec88fSEmmanuel Vadot compatible: 49c66ec88fSEmmanuel Vadot oneOf: 50c66ec88fSEmmanuel Vadot - items: 51c66ec88fSEmmanuel Vadot - enum: 52c66ec88fSEmmanuel Vadot - amlogic,meson-gxbb-dw-hdmi # GXBB (S905) 53c66ec88fSEmmanuel Vadot - amlogic,meson-gxl-dw-hdmi # GXL (S905X, S905D) 54c66ec88fSEmmanuel Vadot - amlogic,meson-gxm-dw-hdmi # GXM (S912) 55c66ec88fSEmmanuel Vadot - const: amlogic,meson-gx-dw-hdmi 56c66ec88fSEmmanuel Vadot - enum: 57c66ec88fSEmmanuel Vadot - amlogic,meson-g12a-dw-hdmi # G12A (S905X2, S905Y2, S905D2) 58c66ec88fSEmmanuel Vadot 59c66ec88fSEmmanuel Vadot reg: 60c66ec88fSEmmanuel Vadot maxItems: 1 61c66ec88fSEmmanuel Vadot 62c66ec88fSEmmanuel Vadot interrupts: 63c66ec88fSEmmanuel Vadot maxItems: 1 64c66ec88fSEmmanuel Vadot 65c66ec88fSEmmanuel Vadot clocks: 66c66ec88fSEmmanuel Vadot minItems: 3 67c66ec88fSEmmanuel Vadot 68c66ec88fSEmmanuel Vadot clock-names: 69c66ec88fSEmmanuel Vadot items: 70c66ec88fSEmmanuel Vadot - const: isfr 71c66ec88fSEmmanuel Vadot - const: iahb 72c66ec88fSEmmanuel Vadot - const: venci 73c66ec88fSEmmanuel Vadot 74c66ec88fSEmmanuel Vadot resets: 75c66ec88fSEmmanuel Vadot minItems: 3 76c66ec88fSEmmanuel Vadot 77c66ec88fSEmmanuel Vadot reset-names: 78c66ec88fSEmmanuel Vadot items: 79c66ec88fSEmmanuel Vadot - const: hdmitx_apb 80c66ec88fSEmmanuel Vadot - const: hdmitx 81c66ec88fSEmmanuel Vadot - const: hdmitx_phy 82c66ec88fSEmmanuel Vadot 83c66ec88fSEmmanuel Vadot hdmi-supply: 84c66ec88fSEmmanuel Vadot description: phandle to an external 5V regulator to power the HDMI logic 85c66ec88fSEmmanuel Vadot 86c66ec88fSEmmanuel Vadot port@0: 875def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 88c66ec88fSEmmanuel Vadot description: 89c66ec88fSEmmanuel Vadot A port node pointing to the VENC Input port node. 90c66ec88fSEmmanuel Vadot 91c66ec88fSEmmanuel Vadot port@1: 925def4c47SEmmanuel Vadot $ref: /schemas/graph.yaml#/properties/port 93c66ec88fSEmmanuel Vadot description: 94c66ec88fSEmmanuel Vadot A port node pointing to the TMDS Output port node. 95c66ec88fSEmmanuel Vadot 96c66ec88fSEmmanuel Vadot "#address-cells": 97c66ec88fSEmmanuel Vadot const: 1 98c66ec88fSEmmanuel Vadot 99c66ec88fSEmmanuel Vadot "#size-cells": 100c66ec88fSEmmanuel Vadot const: 0 101c66ec88fSEmmanuel Vadot 102c66ec88fSEmmanuel Vadot "#sound-dai-cells": 103c66ec88fSEmmanuel Vadot const: 0 104c66ec88fSEmmanuel Vadot 105e67e8565SEmmanuel Vadot sound-name-prefix: true 106e67e8565SEmmanuel Vadot 107c66ec88fSEmmanuel Vadotrequired: 108c66ec88fSEmmanuel Vadot - compatible 109c66ec88fSEmmanuel Vadot - reg 110c66ec88fSEmmanuel Vadot - interrupts 111c66ec88fSEmmanuel Vadot - clocks 112c66ec88fSEmmanuel Vadot - clock-names 113c66ec88fSEmmanuel Vadot - resets 114c66ec88fSEmmanuel Vadot - reset-names 115c66ec88fSEmmanuel Vadot - port@0 116c66ec88fSEmmanuel Vadot - port@1 117c66ec88fSEmmanuel Vadot - "#address-cells" 118c66ec88fSEmmanuel Vadot - "#size-cells" 119c66ec88fSEmmanuel Vadot 120c66ec88fSEmmanuel VadotadditionalProperties: false 121c66ec88fSEmmanuel Vadot 122c66ec88fSEmmanuel Vadotexamples: 123c66ec88fSEmmanuel Vadot - | 124c66ec88fSEmmanuel Vadot hdmi_tx: hdmi-tx@c883a000 { 125c66ec88fSEmmanuel Vadot compatible = "amlogic,meson-gxbb-dw-hdmi", "amlogic,meson-gx-dw-hdmi"; 126c66ec88fSEmmanuel Vadot reg = <0xc883a000 0x1c>; 127c66ec88fSEmmanuel Vadot interrupts = <57>; 128c66ec88fSEmmanuel Vadot resets = <&reset_apb>, <&reset_hdmitx>, <&reset_hdmitx_phy>; 129c66ec88fSEmmanuel Vadot reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy"; 130c66ec88fSEmmanuel Vadot clocks = <&clk_isfr>, <&clk_iahb>, <&clk_venci>; 131c66ec88fSEmmanuel Vadot clock-names = "isfr", "iahb", "venci"; 132c66ec88fSEmmanuel Vadot #address-cells = <1>; 133c66ec88fSEmmanuel Vadot #size-cells = <0>; 134c66ec88fSEmmanuel Vadot 135c66ec88fSEmmanuel Vadot /* VPU VENC Input */ 136c66ec88fSEmmanuel Vadot hdmi_tx_venc_port: port@0 { 137c66ec88fSEmmanuel Vadot reg = <0>; 138c66ec88fSEmmanuel Vadot 139c66ec88fSEmmanuel Vadot hdmi_tx_in: endpoint { 140c66ec88fSEmmanuel Vadot remote-endpoint = <&hdmi_tx_out>; 141c66ec88fSEmmanuel Vadot }; 142c66ec88fSEmmanuel Vadot }; 143c66ec88fSEmmanuel Vadot 144c66ec88fSEmmanuel Vadot /* TMDS Output */ 145c66ec88fSEmmanuel Vadot hdmi_tx_tmds_port: port@1 { 146c66ec88fSEmmanuel Vadot reg = <1>; 147c66ec88fSEmmanuel Vadot 148c66ec88fSEmmanuel Vadot hdmi_tx_tmds_out: endpoint { 149c66ec88fSEmmanuel Vadot remote-endpoint = <&hdmi_connector_in>; 150c66ec88fSEmmanuel Vadot }; 151c66ec88fSEmmanuel Vadot }; 152c66ec88fSEmmanuel Vadot }; 153