Advertisement
Guest User

Untitled

a guest
Nov 10th, 2013
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.83 KB | None | 0 0
  1. /*
  2. * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 as
  6. * published by the Free Software Foundation.
  7. */
  8. /dts-v1/;
  9. /plugin/;
  10.  
  11. / {
  12. compatible = "ti,beaglebone", "ti,beaglebone-black";
  13.  
  14. /* identification */
  15. part-number = "LCD3CUSTOM";
  16. version = "00A0";
  17.  
  18. /* state the resources this cape uses */
  19. exclusive-use =
  20. /* the pin header uses */
  21. "P8.45", /* lcd: lcd_data0 */
  22. "P8.46", /* lcd: lcd_data1 */
  23. "P8.43", /* lcd: lcd_data2 */
  24. "P8.44", /* lcd: lcd_data3 */
  25. "P8.41", /* lcd: lcd_data4 */
  26. "P8.42", /* lcd: lcd_data5 */
  27. "P8.39", /* lcd: lcd_data6 */
  28. "P8.40", /* lcd: lcd_data7 */
  29. "P8.37", /* lcd: lcd_data8 */
  30. "P8.38", /* lcd: lcd_data9 */
  31. "P8.36", /* lcd: lcd_data10 */
  32. "P8.34", /* lcd: lcd_data11 */
  33. "P8.35", /* lcd: lcd_data12 */
  34. "P8.33", /* lcd: lcd_data13 */
  35. "P8.31", /* lcd: lcd_data14 */
  36. "P8.32", /* lcd: lcd_data15 */
  37. "P8.27", /* lcd: lcd_RS */
  38. "P8.29", /* lcd: lcd_WR */
  39. "P8.28", /* lcd: lcd_RD */
  40. "P8.30", /* lcd: lcd_ac_bias_en */
  41.  
  42. /* the hardware IP uses */
  43.  
  44. "lcd",
  45. "tps-bl";
  46.  
  47. fragment@0 {
  48. target = <&am33xx_pinmux>;
  49. __overlay__ {
  50.  
  51.  
  52.  
  53. customlcd3_lcd_pins: pinmux_customlcd3_lcd_pins
  54. {
  55. pinctrl-single,pins = <
  56. 0xa0 0x08 /* lcd_data0.lcd_data0,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  57. 0xa4 0x08 /* lcd_data1.lcd_data1,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  58. 0xa8 0x08 /* lcd_data2.lcd_data2,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  59. 0xac 0x08 /* lcd_data3.lcd_data3,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  60. 0xb0 0x08 /* lcd_data4.lcd_data4,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  61. 0xb4 0x08 /* lcd_data5.lcd_data5,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  62. 0xb8 0x08 /* lcd_data6.lcd_data6,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  63. 0xbc 0x08 /* lcd_data7.lcd_data7,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  64. 0xc0 0x08 /* lcd_data8.lcd_data8,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  65. 0xc4 0x08 /* lcd_data9.lcd_data9,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  66. 0xc8 0x08 /* lcd_data10.lcd_data10,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  67. 0xcc 0x08 /* lcd_data11.lcd_data11,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  68. 0xd0 0x08 /* lcd_data12.lcd_data12,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  69. 0xd4 0x08 /* lcd_data13.lcd_data13,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  70. 0xd8 0x08 /* lcd_data14.lcd_data14,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  71. 0xdc 0x08 /* lcd_data15.lcd_data15,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT | AM33XX_PULL_DISA */
  72. 0xe0 0x00 /* lcd_vsync.lcd_vsync,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
  73. 0xe4 0x00 /* lcd_hsync.lcd_hsync,OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
  74. 0xe8 0x00 /* lcd_pclk.lcd_pclk, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
  75. 0xec 0x00 /* lcd_ac_bias_en.lcd_ac_bias_en, OMAP_MUX_MODE0 | AM33XX_PIN_OUTPUT */
  76.  
  77.  
  78. >;
  79. };
  80.  
  81.  
  82. };
  83. };
  84.  
  85. fragment@1 {
  86. target = <&tps>;
  87. __overlay__ {
  88. backlight {
  89. compatible = "tps65217-backlight";
  90. isel = <1>;
  91. fdim = <200>;
  92. brightness = <100>;
  93. tps = <&tps>;
  94. };
  95. };
  96. };
  97.  
  98. fragment@2 {
  99. target = <&ocp>;
  100.  
  101. __overlay__ {
  102.  
  103. /* avoid stupid warning */
  104. #address-cells = <1>;
  105. #size-cells = <1>;
  106.  
  107.  
  108.  
  109. /* Settings for SSD1289 / LCD3 cape: */
  110. panel {
  111. compatible = "panel";
  112. pinctrl-names = "default";
  113. pinctrl-0 = <&customlcd3_lcd_pins>;
  114. panel-info {
  115. ac-bias = <255>;
  116. ac-bias-intrpt = <0>;
  117. dma-burst-sz = <16>;
  118. bpp = <16>;
  119. fdd = <0x80>;
  120. tft-alt-mode = <0>;
  121. stn-565-mode = <0>;
  122. mono-8bit-mode = <0>;
  123. sync-edge = <0>;
  124. sync-ctrl = <1>;
  125. raster-order = <0>;
  126. fifo-th = <0>;
  127. invert-pxl-clk;
  128. };
  129. display-timings {
  130. native-mode = <&timing0>;
  131. timing0: 320x240 {
  132. hactive = <320>;
  133. vactive = <240>;
  134. hback-porch = <30>;
  135. hfront-porch = <10>;
  136. hsync-len = <48>;
  137. vback-porch = <4>;
  138. vfront-porch = <2>;
  139. vsync-len = <2>;
  140. clock-frequency = <8000000>;
  141. hsync-active = <0>;
  142. vsync-active = <0>;
  143. };
  144. };
  145. };
  146.  
  147. };
  148. };
  149. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement