mediatek,dsi.txt 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. Mediatek DSI Device
  2. ===================
  3. The Mediatek DSI function block is a sink of the display subsystem and can
  4. drive up to 4-lane MIPI DSI output. Two DSIs can be synchronized for dual-
  5. channel output.
  6. Required properties:
  7. - compatible: "mediatek,<chip>-dsi"
  8. - reg: Physical base address and length of the controller's registers
  9. - interrupts: The interrupt signal from the function block.
  10. - clocks: device clocks
  11. See Documentation/devicetree/bindings/clock/clock-bindings.txt for details.
  12. - clock-names: must contain "engine", "digital", and "hs"
  13. - phys: phandle link to the MIPI D-PHY controller.
  14. - phy-names: must contain "dphy"
  15. - port: Output port node with endpoint definitions as described in
  16. Documentation/devicetree/bindings/graph.txt. This port should be connected
  17. to the input port of an attached DSI panel or DSI-to-eDP encoder chip.
  18. MIPI TX Configuration Module
  19. ============================
  20. The MIPI TX configuration module controls the MIPI D-PHY.
  21. Required properties:
  22. - compatible: "mediatek,<chip>-mipi-tx"
  23. - reg: Physical base address and length of the controller's registers
  24. - clocks: PLL reference clock
  25. - clock-output-names: name of the output clock line to the DSI encoder
  26. - #clock-cells: must be <0>;
  27. - #phy-cells: must be <0>.
  28. Example:
  29. mipi_tx0: mipi-dphy@10215000 {
  30. compatible = "mediatek,mt8173-mipi-tx";
  31. reg = <0 0x10215000 0 0x1000>;
  32. clocks = <&clk26m>;
  33. clock-output-names = "mipi_tx0_pll";
  34. #clock-cells = <0>;
  35. #phy-cells = <0>;
  36. };
  37. dsi0: dsi@1401b000 {
  38. compatible = "mediatek,mt8173-dsi";
  39. reg = <0 0x1401b000 0 0x1000>;
  40. interrupts = <GIC_SPI 192 IRQ_TYPE_LEVEL_LOW>;
  41. clocks = <&mmsys MM_DSI0_ENGINE>, <&mmsys MM_DSI0_DIGITAL>,
  42. <&mipi_tx0>;
  43. clock-names = "engine", "digital", "hs";
  44. phys = <&mipi_tx0>;
  45. phy-names = "dphy";
  46. port {
  47. dsi0_out: endpoint {
  48. remote-endpoint = <&panel_in>;
  49. };
  50. };
  51. };