xref: /freebsd-src/sys/contrib/device-tree/src/arm/ti/omap/omap3-devkit8000-lcd-common.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Author: Anthoine Bourgeois <anthoine.bourgois@gmail.com>
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot#include "omap3-devkit8000-common.dtsi"
7*f126890aSEmmanuel Vadot/ {
8*f126890aSEmmanuel Vadot	aliases {
9*f126890aSEmmanuel Vadot		display0 = &lcd0;
10*f126890aSEmmanuel Vadot		display1 = &dvi0;
11*f126890aSEmmanuel Vadot		display2 = &tv0;
12*f126890aSEmmanuel Vadot	};
13*f126890aSEmmanuel Vadot
14*f126890aSEmmanuel Vadot	lcd0: display {
15*f126890aSEmmanuel Vadot		compatible = "panel-dpi";
16*f126890aSEmmanuel Vadot		label = "lcd";
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot		enable-gpios = <&twl_gpio 18 GPIO_ACTIVE_HIGH>;
19*f126890aSEmmanuel Vadot
20*f126890aSEmmanuel Vadot		port {
21*f126890aSEmmanuel Vadot			lcd_in: endpoint {
22*f126890aSEmmanuel Vadot				remote-endpoint = <&dpi_lcd_out>;
23*f126890aSEmmanuel Vadot			};
24*f126890aSEmmanuel Vadot		};
25*f126890aSEmmanuel Vadot	};
26*f126890aSEmmanuel Vadot};
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot&dss {
29*f126890aSEmmanuel Vadot	port {
30*f126890aSEmmanuel Vadot		#address-cells = <1>;
31*f126890aSEmmanuel Vadot		#size-cells = <0>;
32*f126890aSEmmanuel Vadot		dpi_lcd_out: endpoint@1 {
33*f126890aSEmmanuel Vadot			reg = <1>;
34*f126890aSEmmanuel Vadot			remote-endpoint = <&lcd_in>;
35*f126890aSEmmanuel Vadot			data-lines = <24>;
36*f126890aSEmmanuel Vadot		};
37*f126890aSEmmanuel Vadot	};
38*f126890aSEmmanuel Vadot};
39*f126890aSEmmanuel Vadot
40*f126890aSEmmanuel Vadot&vio {
41*f126890aSEmmanuel Vadot	regulator-min-microvolt = <1800000>;
42*f126890aSEmmanuel Vadot	regulator-max-microvolt = <1800000>;
43*f126890aSEmmanuel Vadot};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot&mcspi2 {
46*f126890aSEmmanuel Vadot
47*f126890aSEmmanuel Vadot	/* touch controller */
48*f126890aSEmmanuel Vadot	ads7846@0 {
49*f126890aSEmmanuel Vadot		compatible = "ti,ads7846";
50*f126890aSEmmanuel Vadot		vcc-supply = <&vio>;
51*f126890aSEmmanuel Vadot
52*f126890aSEmmanuel Vadot		reg = <0>;			/* CS0 */
53*f126890aSEmmanuel Vadot		spi-max-frequency = <1500000>;
54*f126890aSEmmanuel Vadot
55*f126890aSEmmanuel Vadot		interrupt-parent = <&gpio1>;
56*f126890aSEmmanuel Vadot		interrupts = <27 0>;		/* gpio_27 */
57*f126890aSEmmanuel Vadot		pendown-gpio = <&gpio1 27 GPIO_ACTIVE_LOW>;
58*f126890aSEmmanuel Vadot
59*f126890aSEmmanuel Vadot		ti,x-min = /bits/ 16 <0x0>;
60*f126890aSEmmanuel Vadot		ti,x-max = /bits/ 16 <0x0fff>;
61*f126890aSEmmanuel Vadot		ti,y-min = /bits/ 16 <0x0>;
62*f126890aSEmmanuel Vadot		ti,y-max = /bits/ 16 <0x0fff>;
63*f126890aSEmmanuel Vadot		ti,x-plate-ohms = /bits/ 16 <180>;
64*f126890aSEmmanuel Vadot		ti,pressure-max = /bits/ 16 <255>;
65*f126890aSEmmanuel Vadot		ti,debounce-max = /bits/ 16 <10>;
66*f126890aSEmmanuel Vadot		ti,debounce-tol = /bits/ 16 <5>;
67*f126890aSEmmanuel Vadot		ti,debounce-rep = /bits/ 16 <1>;
68*f126890aSEmmanuel Vadot		ti,keep-vref-on = <1>;
69*f126890aSEmmanuel Vadot		ti,settle-delay-usec = /bits/ 16 <150>;
70*f126890aSEmmanuel Vadot
71*f126890aSEmmanuel Vadot		wakeup-source;
72*f126890aSEmmanuel Vadot	};
73*f126890aSEmmanuel Vadot};
74