amlogic,meson-dw-hdmi.txt 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. Amlogic specific extensions to the Synopsys Designware HDMI Controller
  2. ======================================================================
  3. The Amlogic Meson Synopsys Designware Integration is composed of :
  4. - A Synopsys DesignWare HDMI Controller IP
  5. - A TOP control block controlling the Clocks and PHY
  6. - A custom HDMI PHY in order to convert video to TMDS signal
  7. ___________________________________
  8. | HDMI TOP |<= HPD
  9. |___________________________________|
  10. | | |
  11. | Synopsys HDMI | HDMI PHY |=> TMDS
  12. | Controller |________________|
  13. |___________________________________|<=> DDC
  14. The HDMI TOP block only supports HPD sensing.
  15. The Synopsys HDMI Controller interrupt is routed through the
  16. TOP Block interrupt.
  17. Communication to the TOP Block and the Synopsys HDMI Controller is done
  18. via a pair of dedicated addr+read/write registers.
  19. The HDMI PHY is configured by registers in the HHI register block.
  20. Pixel data arrives in 4:4:4 format from the VENC block and the VPU HDMI mux
  21. selects either the ENCI encoder for the 576i or 480i formats or the ENCP
  22. encoder for all the other formats including interlaced HD formats.
  23. The VENC uses a DVI encoder on top of the ENCI or ENCP encoders to generate
  24. DVI timings for the HDMI controller.
  25. Amlogic Meson GXBB, GXL and GXM SoCs families embeds the Synopsys DesignWare
  26. HDMI TX IP version 2.01a with HDCP and I2C & S/PDIF
  27. audio source interfaces.
  28. Required properties:
  29. - compatible: value should be different for each SoC family as :
  30. - GXBB (S905) : "amlogic,meson-gxbb-dw-hdmi"
  31. - GXL (S905X, S905D) : "amlogic,meson-gxl-dw-hdmi"
  32. - GXM (S912) : "amlogic,meson-gxm-dw-hdmi"
  33. followed by the common "amlogic,meson-gx-dw-hdmi"
  34. - reg: Physical base address and length of the controller's registers.
  35. - interrupts: The HDMI interrupt number
  36. - clocks, clock-names : must have the phandles to the HDMI iahb and isfr clocks,
  37. and the Amlogic Meson venci clocks as described in
  38. Documentation/devicetree/bindings/clock/clock-bindings.txt,
  39. the clocks are soc specific, the clock-names should be "iahb", "isfr", "venci"
  40. - resets, resets-names: must have the phandles to the HDMI apb, glue and phy
  41. resets as described in :
  42. Documentation/devicetree/bindings/reset/reset.txt,
  43. the reset-names should be "hdmitx_apb", "hdmitx", "hdmitx_phy"
  44. Optional properties:
  45. - hdmi-supply: Optional phandle to an external 5V regulator to power the HDMI
  46. logic, as described in the file ../regulator/regulator.txt
  47. Required nodes:
  48. The connections to the HDMI ports are modeled using the OF graph
  49. bindings specified in Documentation/devicetree/bindings/graph.txt.
  50. The following table lists for each supported model the port number
  51. corresponding to each HDMI output and input.
  52. Port 0 Port 1
  53. -----------------------------------------
  54. S905 (GXBB) VENC Input TMDS Output
  55. S905X (GXL) VENC Input TMDS Output
  56. S905D (GXL) VENC Input TMDS Output
  57. S912 (GXM) VENC Input TMDS Output
  58. Example:
  59. hdmi-connector {
  60. compatible = "hdmi-connector";
  61. type = "a";
  62. port {
  63. hdmi_connector_in: endpoint {
  64. remote-endpoint = <&hdmi_tx_tmds_out>;
  65. };
  66. };
  67. };
  68. hdmi_tx: hdmi-tx@c883a000 {
  69. compatible = "amlogic,meson-gxbb-dw-hdmi", "amlogic,meson-gx-dw-hdmi";
  70. reg = <0x0 0xc883a000 0x0 0x1c>;
  71. interrupts = <GIC_SPI 57 IRQ_TYPE_EDGE_RISING>;
  72. resets = <&reset RESET_HDMITX_CAPB3>,
  73. <&reset RESET_HDMI_SYSTEM_RESET>,
  74. <&reset RESET_HDMI_TX>;
  75. reset-names = "hdmitx_apb", "hdmitx", "hdmitx_phy";
  76. clocks = <&clkc CLKID_HDMI_PCLK>,
  77. <&clkc CLKID_CLK81>,
  78. <&clkc CLKID_GCLK_VENCI_INT0>;
  79. clock-names = "isfr", "iahb", "venci";
  80. #address-cells = <1>;
  81. #size-cells = <0>;
  82. /* VPU VENC Input */
  83. hdmi_tx_venc_port: port@0 {
  84. reg = <0>;
  85. hdmi_tx_in: endpoint {
  86. remote-endpoint = <&hdmi_tx_out>;
  87. };
  88. };
  89. /* TMDS Output */
  90. hdmi_tx_tmds_port: port@1 {
  91. reg = <1>;
  92. hdmi_tx_tmds_out: endpoint {
  93. remote-endpoint = <&hdmi_connector_in>;
  94. };
  95. };
  96. };