analogix_dp-rockchip.txt 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. Rockchip RK3288 specific extensions to the Analogix Display Port
  2. ================================
  3. Required properties:
  4. - compatible: "rockchip,rk3288-dp",
  5. "rockchip,rk3399-edp";
  6. - reg: physical base address of the controller and length
  7. - clocks: from common clock binding: handle to dp clock.
  8. of memory mapped region.
  9. - clock-names: from common clock binding:
  10. Required elements: "dp" "pclk"
  11. - resets: Must contain an entry for each entry in reset-names.
  12. See ../reset/reset.txt for details.
  13. - pinctrl-names: Names corresponding to the chip hotplug pinctrl states.
  14. - pinctrl-0: pin-control mode. should be <&edp_hpd>
  15. - reset-names: Must include the name "dp"
  16. - rockchip,grf: this soc should set GRF regs, so need get grf here.
  17. - ports: there are 2 port nodes with endpoint definitions as defined in
  18. Documentation/devicetree/bindings/media/video-interfaces.txt.
  19. Port 0: contained 2 endpoints, connecting to the output of vop.
  20. Port 1: contained 1 endpoint, connecting to the input of panel.
  21. Optional property for different chips:
  22. - clocks: from common clock binding: handle to grf_vio clock.
  23. - clock-names: from common clock binding:
  24. Required elements: "grf"
  25. For the below properties, please refer to Analogix DP binding document:
  26. * Documentation/devicetree/bindings/display/bridge/analogix_dp.txt
  27. - phys (required)
  28. - phy-names (required)
  29. - hpd-gpios (optional)
  30. - force-hpd (optional)
  31. -------------------------------------------------------------------------------
  32. Example:
  33. dp-controller: dp@ff970000 {
  34. compatible = "rockchip,rk3288-dp";
  35. reg = <0xff970000 0x4000>;
  36. interrupts = <GIC_SPI 98 IRQ_TYPE_LEVEL_HIGH>;
  37. clocks = <&cru SCLK_EDP>, <&cru PCLK_EDP_CTRL>;
  38. clock-names = "dp", "pclk";
  39. phys = <&dp_phy>;
  40. phy-names = "dp";
  41. rockchip,grf = <&grf>;
  42. resets = <&cru 111>;
  43. reset-names = "dp";
  44. pinctrl-names = "default";
  45. pinctrl-0 = <&edp_hpd>;
  46. ports {
  47. #address-cells = <1>;
  48. #size-cells = <0>;
  49. edp_in: port@0 {
  50. reg = <0>;
  51. #address-cells = <1>;
  52. #size-cells = <0>;
  53. edp_in_vopb: endpoint@0 {
  54. reg = <0>;
  55. remote-endpoint = <&vopb_out_edp>;
  56. };
  57. edp_in_vopl: endpoint@1 {
  58. reg = <1>;
  59. remote-endpoint = <&vopl_out_edp>;
  60. };
  61. };
  62. edp_out: port@1 {
  63. reg = <1>;
  64. #address-cells = <1>;
  65. #size-cells = <0>;
  66. edp_out_panel: endpoint {
  67. reg = <0>;
  68. remote-endpoint = <&panel_in_edp>
  69. };
  70. };
  71. };
  72. };
  73. pinctrl {
  74. edp {
  75. edp_hpd: edp-hpd {
  76. rockchip,pins = <7 11 RK_FUNC_2 &pcfg_pull_none>;
  77. };
  78. };
  79. };