atmel,lcdc.txt 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. Atmel LCDC Framebuffer
  2. -----------------------------------------------------
  3. Required properties:
  4. - compatible :
  5. "atmel,at91sam9261-lcdc" ,
  6. "atmel,at91sam9263-lcdc" ,
  7. "atmel,at91sam9g10-lcdc" ,
  8. "atmel,at91sam9g45-lcdc" ,
  9. "atmel,at91sam9g45es-lcdc" ,
  10. "atmel,at91sam9rl-lcdc" ,
  11. "atmel,at32ap-lcdc"
  12. - reg : Should contain 1 register ranges(address and length).
  13. Can contain an additional register range(address and length)
  14. for fixed framebuffer memory. Useful for dedicated memories.
  15. - interrupts : framebuffer controller interrupt
  16. - display: a phandle pointing to the display node
  17. Required nodes:
  18. - display: a display node is required to initialize the lcd panel
  19. This should be in the board dts.
  20. - default-mode: a videomode within the display with timing parameters
  21. as specified below.
  22. Optional properties:
  23. - lcd-supply: Regulator for LCD supply voltage.
  24. Example:
  25. fb0: fb@0x00500000 {
  26. compatible = "atmel,at91sam9g45-lcdc";
  27. reg = <0x00500000 0x1000>;
  28. interrupts = <23 3 0>;
  29. pinctrl-names = "default";
  30. pinctrl-0 = <&pinctrl_fb>;
  31. display = <&display0>;
  32. status = "okay";
  33. #address-cells = <1>;
  34. #size-cells = <1>;
  35. };
  36. Example for fixed framebuffer memory:
  37. fb0: fb@0x00500000 {
  38. compatible = "atmel,at91sam9263-lcdc";
  39. reg = <0x00700000 0x1000 0x70000000 0x200000>;
  40. [...]
  41. };
  42. Atmel LCDC Display
  43. -----------------------------------------------------
  44. Required properties (as per of_videomode_helper):
  45. - atmel,dmacon: dma controller configuration
  46. - atmel,lcdcon2: lcd controller configuration
  47. - atmel,guard-time: lcd guard time (Delay in frame periods)
  48. - bits-per-pixel: lcd panel bit-depth.
  49. Optional properties (as per of_videomode_helper):
  50. - atmel,lcdcon-backlight: enable backlight
  51. - atmel,lcdcon-backlight-inverted: invert backlight PWM polarity
  52. - atmel,lcd-wiring-mode: lcd wiring mode "RGB" or "BRG"
  53. - atmel,power-control-gpio: gpio to power on or off the LCD (as many as needed)
  54. Example:
  55. display0: display {
  56. bits-per-pixel = <32>;
  57. atmel,lcdcon-backlight;
  58. atmel,dmacon = <0x1>;
  59. atmel,lcdcon2 = <0x80008002>;
  60. atmel,guard-time = <9>;
  61. atmel,lcd-wiring-mode = <1>;
  62. display-timings {
  63. native-mode = <&timing0>;
  64. timing0: timing0 {
  65. clock-frequency = <9000000>;
  66. hactive = <480>;
  67. vactive = <272>;
  68. hback-porch = <1>;
  69. hfront-porch = <1>;
  70. vback-porch = <40>;
  71. vfront-porch = <1>;
  72. hsync-len = <45>;
  73. vsync-len = <1>;
  74. };
  75. };
  76. };