lorforlinux

compatible 4D4C overlay - 7/28/20

Jul 28th, 2020
54
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.  
  9. /dts-v1/;
  10. /plugin/;
  11.  
  12. &{/chosen} {
  13. overlays {
  14. BB-BONE-4D4C-01-00A1 = __TIMESTAMP__;
  15. };
  16. };
  17.  
  18.  
  19. &ocp {
  20. P8_45_pinmux { pinctrl-0 = <&P8_45_lcd_pin>;}; /* lcd: lcd_data0 */
  21. P8_46_pinmux { pinctrl-0 = <&P8_46_lcd_pin>;}; /* lcd: lcd_data1 */
  22. P8_43_pinmux { pinctrl-0 = <&P8_43_lcd_pin>;}; /* lcd: lcd_data2 */
  23. P8_44_pinmux { pinctrl-0 = <&P8_44_lcd_pin>;}; /* lcd: lcd_data3 */
  24. P8_41_pinmux { pinctrl-0 = <&P8_41_lcd_pin>;}; /* lcd: lcd_data4 */
  25. P8_42_pinmux { pinctrl-0 = <&P8_42_lcd_pin>;}; /* lcd: lcd_data5 */
  26. P8_39_pinmux { pinctrl-0 = <&P8_39_lcd_pin>;}; /* lcd: lcd_data6 */
  27. P8_40_pinmux { pinctrl-0 = <&P8_40_lcd_pin>;}; /* lcd: lcd_data7 */
  28. P8_37_pinmux { pinctrl-0 = <&P8_37_lcd_pin>;}; /* lcd: lcd_data8 */
  29. P8_38_pinmux { pinctrl-0 = <&P8_38_lcd_pin>;}; /* lcd: lcd_data9 */
  30. P8_36_pinmux { pinctrl-0 = <&P8_36_lcd_pin>;}; /* lcd: lcd_data10 */
  31. P8_34_pinmux { pinctrl-0 = <&P8_34_lcd_pin>;}; /* lcd: lcd_data11 */
  32. P8_35_pinmux { pinctrl-0 = <&P8_35_lcd_pin>;}; /* lcd: lcd_data12 */
  33. P8_33_pinmux { pinctrl-0 = <&P8_33_lcd_pin>;}; /* lcd: lcd_data13 */
  34. P8_31_pinmux { pinctrl-0 = <&P8_31_lcd_pin>;}; /* lcd: lcd_data14 */
  35. P8_32_pinmux { pinctrl-0 = <&P8_32_lcd_pin>;}; /* lcd: lcd_data15 */
  36.  
  37. P8_27_pinmux { pinctrl-0 = <&P8_27_lcd_pin>;}; /* lcd: lcd_vsync */
  38. P8_29_pinmux { pinctrl-0 = <&P8_29_lcd_pin>;}; /* lcd: lcd_hsync */
  39. P8_28_pinmux { pinctrl-0 = <&P8_28_lcd_pin>;}; /* lcd: lcd_pclk */
  40. P8_30_pinmux { pinctrl-0 = <&P8_30_lcd_pin>;}; /* lcd: lcd_ac_bias_en */
  41.  
  42. P9_27_pinmux { pinctrl-0 = <&P9_27_gpio_pin>;}; /* lcd: gpio3_19 DISPEN */
  43.  
  44. P9_14_pinmux { pinctrl-0 = <&P9_14_pwm_pin>;}; /* pwm: ehrpwm1a PWM_BL */
  45.  
  46. P9_18_pinmux { pinctrl-0 = <&P9_18_i2c_pin>;}; /* i2c1_sda */
  47. P9_17_pinmux { pinctrl-0 = <&P9_17_i2c_pin>;}; /* i2c1_scl */
  48. P9_26_pinmux { pinctrl-0 = <&P9_26_gpio_input_pin>;}; /* touch interrupt on gpio0_14 */
  49. };
  50.  
  51. &bone_pwmss_1 {
  52. status = "okay";
  53. };
  54.  
  55. &bone_pwm_1{
  56. status = "okay";
  57. };
  58.  
  59. // &bone_i2c_1 {
  60. // // configuration start
  61. // clock-frequency = <100000>;
  62. // #address-cells = <1>;
  63. // #size-cells = <0>;
  64. // polytouch: edt-ft5x06@38 {
  65. // compatible = "edt,edt-ft5x06";
  66. // reg = <0x38>;
  67. // interrupt-parent = <&gpio0>;
  68. // interrupts = <14 2>;
  69. // touchscreen-size-y = <480>;
  70. // touchscreen-size-x = <272>;
  71. // touchscreen-swapped-x-y;
  72. // };
  73. // };
  74.  
  75. // Black
  76. // &lcdc {
  77. // status = "okay";
  78. // };
  79.  
  80. // AI
  81. &dss {
  82. status = "okay";
  83. port {
  84. #address-cells = <1>;
  85. #size-cells = <0>;
  86. dpi_out: endpoint@0 {
  87. data-lines = <16>;
  88. remote-endpoint = <&lcd_in>;
  89. };
  90. };
  91. };
  92.  
  93.  
  94. &{/} {
  95.  
  96. aliases {
  97. display0 = &lcd0;
  98. };
  99.  
  100. lcd0_bl: backlight {
  101. status = "okay";
  102. compatible = "pwm-backlight";
  103. pwms = <&bone_pwm_1 0 500000 0>;
  104. brightness-levels = <
  105. 0 1 2 3 4 5 6 7 8 9
  106. 10 11 12 13 14 15 16 17 18 19
  107. 20 21 22 23 24 25 26 27 28 29
  108. 30 31 32 33 34 35 36 37 38 39
  109. 40 41 42 43 44 45 46 47 48 49
  110. 50 51 52 53 54 55 56 57 58 59
  111. 60 61 62 63 64 65 66 67 68 69
  112. 70 71 72 73 74 75 76 77 78 79
  113. 80 81 82 83 84 85 86 87 88 89
  114. 90 91 92 93 94 95 96 97 98 99
  115. 100
  116. >;
  117. default-brightness-level = <100>;
  118. };
  119.  
  120. // panel {
  121. lcd0: display@0 {
  122. label = "lcd";
  123. status = "okay";
  124. // Black
  125. // compatible = "ti,tilcdc,panel";
  126.  
  127. // AI
  128. compatible = "panel-dpi";
  129.  
  130. backlight = <&lcd0_bl>;
  131.  
  132. port {
  133. lcd_in: endpoint {
  134. remote-endpoint = <&dpi_out>;
  135. };
  136. };
  137.  
  138. panel-info {
  139. ac-bias = <255>;
  140. ac-bias-intrpt = <0>;
  141. dma-burst-sz = <16>;
  142. bpp = <16>;
  143. fdd = <0x80>;
  144. sync-edge = <0>;
  145. sync-ctrl = <1>;
  146. raster-order = <0>;
  147. fifo-th = <0>;
  148. };
  149.  
  150. display-timings {
  151. native-mode = <&timing0>;
  152. /* www.newhavendisplay.com/app_notes/OTA5180A.pdf */
  153. timing0: 480x272 {
  154. clock-frequency = <9200000>;
  155. hactive = <480>;
  156. vactive = <272>;
  157. hfront-porch = <8>;
  158. hback-porch = <47>;
  159. hsync-len = <41>;
  160. vback-porch = <2>;
  161. vfront-porch = <3>;
  162. vsync-len = <10>;
  163. hsync-active = <0>;
  164. vsync-active = <0>;
  165. de-active = <1>;
  166. pixelclk-active = <0>;
  167. };
  168. };
  169. };
  170.  
  171. // fb {
  172. // compatible = "ti,am33xx-tilcdc";
  173. // reg = <0x4830e000 0x1000>;
  174. // interrupt-parent = <&intc>;
  175. // interrupts = <36>;
  176. // ti,hwmods = "lcdc";
  177. // };
  178. };
  179.  
RAW Paste Data