Back to home page

OSCL-LXR

 
 

    


0001 // SPDX-License-Identifier: GPL-2.0
0002 /*
0003  * Common file for omap dpi panels with QVGA and reset pins
0004  *
0005  * Note that the board specifc DTS file needs to specify
0006  * at minimum the GPIO enable-gpios for display, and
0007  * gpios for gpio-backlight.
0008  */
0009 
0010 / {
0011         aliases {
0012                 display0 = &lcd0;
0013         };
0014 
0015         backlight0: backlight {
0016                 compatible = "gpio-backlight";
0017                 default-on;
0018         };
0019 
0020         /* 3.3V GPIO controlled regulator for LCD_ENVDD */
0021         lcd_3v3: regulator-lcd-3v3 {
0022                 compatible = "regulator-fixed";
0023                 regulator-name = "lcd_3v3";
0024                 regulator-min-microvolt = <3300000>;
0025                 regulator-max-microvolt = <3300000>;
0026                 startup-delay-us = <70000>;
0027         };
0028 
0029         lcd0: display {
0030                 compatible = "sharp,ls037v7dw01";
0031                 label = "lcd";
0032                 power-supply = <&lcd_3v3>;
0033                 envdd-supply = <&lcd_3v3>;
0034 
0035                 port {
0036                         lcd_in: endpoint {
0037                                 remote-endpoint = <&dpi_out>;
0038                         };
0039                 };
0040         };
0041 };
0042 
0043 /* Needed to power the DPI pins */
0044 &vpll2 {
0045         regulator-always-on;
0046 };
0047 
0048 &dss {
0049         status = "okay";
0050         port {
0051                 dpi_out: endpoint {
0052                         remote-endpoint = <&lcd_in>;
0053                         data-lines = <18>;
0054                 };
0055         };
0056 };
0057 
0058 &mcspi1 {
0059         tsc2046@0 {
0060                 reg = <0>;                      /* CS0 */
0061                 compatible = "ti,tsc2046";
0062                 spi-max-frequency = <1000000>;
0063                 vcc-supply = <&lcd_3v3>;
0064                 ti,x-min = /bits/ 16 <0>;
0065                 ti,x-max = /bits/ 16 <8000>;
0066                 ti,y-min = /bits/ 16 <0>;
0067                 ti,y-max = /bits/ 16 <4800>;
0068                 ti,x-plate-ohms = /bits/ 16 <40>;
0069                 ti,pressure-max = /bits/ 16 <255>;
0070                 ti,swap-xy;
0071                 wakeup-source;
0072         };
0073 };