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