rockchip-lvds.txt 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. Rockchip LVDS interface
  2. ------------------
  3. Required properties:
  4. - compatible: "rockchip,rk3288-lvds";
  5. - reg: physical base address of the controller and length
  6. of memory mapped region.
  7. - clocks: must include clock specifiers corresponding to entries in the
  8. clock-names property.
  9. - clock-names: must contain "pclk_lvds"
  10. - rockchip,grf: phandle to the general register files syscon
  11. - rockchip,data-mapping: should be <LVDS_FORMAT_VESA> or <LVDS_FORMAT_JEIDA>,
  12. This describes how the color bits are laid out in the
  13. serialized LVDS signal.
  14. - rockchip,data-width : should be <18> or <24>;
  15. - rockchip,output: should be <LVDS_OUTPUT_RGB>, <LVDS_OUTPUT_SINGLE> or
  16. <LVDS_OUTPUT_DUAL>, This describes the output face.
  17. - display-timings : described by
  18. doc/devicetree/device-tree-bindings/video/display-timing.txt.
  19. Example:
  20. lvds: lvds@ff96c000 {
  21. compatible = "rockchip,rk3288-lvds";
  22. reg = <0xff96c000 0x4000>;
  23. clocks = <&cru PCLK_LVDS_PHY>;
  24. clock-names = "pclk_lvds";
  25. pinctrl-names = "default";
  26. pinctrl-0 = <&lcdc0_ctl>;
  27. rockchip,grf = <&grf>;
  28. status = "disabled";
  29. ports {
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. lvds_in: port@0 {
  33. reg = <0>;
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. lvds_in_vopb: endpoint@0 {
  37. reg = <0>;
  38. remote-endpoint = <&vopb_out_lvds>;
  39. };
  40. lvds_in_vopl: endpoint@1 {
  41. reg = <1>;
  42. remote-endpoint = <&vopl_out_lvds>;
  43. };
  44. };
  45. };
  46. };
  47. &lvds {
  48. rockchip,data-mapping = <LVDS_FORMAT_VESA>;
  49. rockchip,data-width = <24>;
  50. rockchip,output = <LVDS_OUTPUT_DUAL>;
  51. rockchip,panel = <&panel>;
  52. status = "okay";
  53. display-timings {
  54. timing@0 {
  55. clock-frequency = <40000000>;
  56. hactive = <1920>;
  57. vactive = <1080>;
  58. hsync-len = <44>;
  59. hfront-porch = <88>;
  60. hback-porch = <148>;
  61. vfront-porch = <4>;
  62. vback-porch = <36>;
  63. vsync-len = <5>;
  64. };
  65. };
  66. };