Merge tag 'amlogic-dt64-2' of git://git.kernel.org/pub/scm/linux/kernel/git/khilman...
[linux-2.6-microblaze.git] / arch / arm / boot / dts / omap3-panel-sharp-ls037v7dw01.dtsi
1 /*
2  * Common file for omap dpi panels with QVGA and reset pins
3  *
4  * Note that the board specifc DTS file needs to specify
5  * at minimum the GPIO enable-gpios for display, and
6  * gpios for gpio-backlight.
7  */
8
9 / {
10         aliases {
11                 display0 = &lcd0;
12         };
13
14         backlight0: backlight {
15                 compatible = "gpio-backlight";
16                 default-on;
17         };
18
19         /* 3.3V GPIO controlled regulator for LCD_ENVDD */
20         lcd_3v3: regulator-lcd-3v3 {
21                 compatible = "regulator-fixed";
22                 regulator-name = "lcd_3v3";
23                 regulator-min-microvolt = <3300000>;
24                 regulator-max-microvolt = <3300000>;
25                 startup-delay-us = <70000>;
26         };
27
28         lcd0: display {
29                 compatible = "sharp,ls037v7dw01";
30                 label = "lcd";
31                 power-supply = <&lcd_3v3>;
32                 envdd-supply = <&lcd_3v3>;
33
34                 port {
35                         lcd_in: endpoint {
36                                 remote-endpoint = <&dpi_out>;
37                         };
38                 };
39         };
40 };
41
42 /* Needed to power the DPI pins */
43 &vpll2 {
44         regulator-always-on;
45 };
46
47 &dss {
48         status = "ok";
49         port {
50                 dpi_out: endpoint {
51                         remote-endpoint = <&lcd_in>;
52                         data-lines = <18>;
53                 };
54         };
55 };
56
57 &mcspi1 {
58         tsc2046@0 {
59                 reg = <0>;                      /* CS0 */
60                 compatible = "ti,tsc2046";
61                 spi-max-frequency = <1000000>;
62                 vcc-supply = <&lcd_3v3>;
63                 ti,x-min = /bits/ 16 <0>;
64                 ti,x-max = /bits/ 16 <8000>;
65                 ti,y-min = /bits/ 16 <0>;
66                 ti,y-max = /bits/ 16 <4800>;
67                 ti,x-plate-ohms = /bits/ 16 <40>;
68                 ti,pressure-max = /bits/ 16 <255>;
69                 ti,swap-xy;
70                 wakeup-source;
71         };
72 };