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