tegra20-dc.txt 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. Display Controller
  2. ------------------
  3. (there isn't yet a generic binding in Linux, so this describes what is in
  4. U-Boot, and may change based on Linux activity)
  5. The device node for a display device is as described in the document
  6. "Open Firmware Recommended Practice : Universal Serial Bus" with the
  7. following modifications and additions :
  8. Required properties :
  9. - compatible : Should be "nvidia,tegra20-dc"
  10. Required subnode 'rgb' is as follows:
  11. Required properties (rgb) :
  12. - nvidia,panel : phandle of LCD panel information
  13. The panel node describes the panel itself. This has the properties listed in
  14. displaymode.txt as well as:
  15. Required properties (panel) :
  16. - nvidia,bits-per-pixel: number of bits per pixel (depth)
  17. - nvidia,pwm : pwm to use to set display contrast (see tegra20-pwm.txt)
  18. - nvidia,panel-timings: 4 cells containing required timings in ms:
  19. * delay before asserting panel_vdd
  20. * delay between panel_vdd-rise and data-rise
  21. * delay between data-rise and backlight_vdd-rise
  22. * delay between backlight_vdd and pwm-rise
  23. * delay between pwm-rise and backlight_en-rise
  24. Optional GPIO properies all have (phandle, GPIO number, flags):
  25. - nvidia,backlight-enable-gpios: backlight enable GPIO
  26. - nvidia,lvds-shutdown-gpios: LVDS power shutdown GPIO
  27. - nvidia,backlight-vdd-gpios: backlight power GPIO
  28. - nvidia,panel-vdd-gpios: panel power GPIO
  29. Example:
  30. host1x {
  31. compatible = "nvidia,tegra20-host1x", "simple-bus";
  32. reg = <0x50000000 0x00024000>;
  33. interrupts = <0 65 0x04 /* mpcore syncpt */
  34. 0 67 0x04>; /* mpcore general */
  35. #address-cells = <1>;
  36. #size-cells = <1>;
  37. status = "okay";
  38. ranges = <0x54000000 0x54000000 0x04000000>;
  39. dc@54200000 {
  40. compatible = "nvidia,tegra20-dc";
  41. reg = <0x54200000 0x00040000>;
  42. interrupts = <0 73 0x04>;
  43. status = "okay";
  44. rgb {
  45. status = "okay";
  46. nvidia,panel = <&lcd_panel>;
  47. };
  48. };
  49. };
  50. lcd_panel: panel {
  51. /* Seaboard has 1366x768 */
  52. clock = <70600000>;
  53. xres = <1366>;
  54. yres = <768>;
  55. left-margin = <58>;
  56. right-margin = <58>;
  57. hsync-len = <58>;
  58. lower-margin = <4>;
  59. upper-margin = <4>;
  60. vsync-len = <4>;
  61. hsync-active-high;
  62. nvidia,bits-per-pixel = <16>;
  63. nvidia,pwm = <&pwm 2 0>;
  64. nvidia,backlight-enable-gpios = <&gpio 28 0>; /* PD4 */
  65. nvidia,lvds-shutdown-gpios = <&gpio 10 0>; /* PB2 */
  66. nvidia,backlight-vdd-gpios = <&gpio 176 0>; /* PW0 */
  67. nvidia,panel-vdd-gpios = <&gpio 22 0>; /* PC6 */
  68. nvidia,panel-timings = <400 4 203 17 15>;
  69. };