xref: /linux/scripts/dtc/include-prefixes/arm64/ti/k3-am625-sk-microtips-mf101hie-panel.dtso (revision 67f8bc848ee31831336bd478e57d2f993551902e)
1// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2/**
3 * Microtips integrated OLDI panel (MF-101HIEBCAF0) and touch DT overlay for AM625 - SK
4 *
5 * Copyright (C) 2026 Texas Instruments Incorporated - http://www.ti.com/
6 */
7
8/dts-v1/;
9/plugin/;
10
11#include <dt-bindings/gpio/gpio.h>
12#include <dt-bindings/interrupt-controller/irq.h>
13
14#include "k3-pinctrl.h"
15
16&{/} {
17	display {
18		compatible = "microtips,mf-101hiebcaf0";
19		/*
20		* Note that the OLDI TX 0 transmits the odd set of pixels
21		* while the OLDI TX 1 transmits the even set. This is a
22		* fixed configuration in the IP integration and is not
23		* changeable. The properties, "dual-lvds-odd-pixels" and
24		* "dual-lvds-even-pixels" have been used to merely
25		* identify if a Dual Link configuration is required.
26		* Swapping them will cause an error in the dss oldi driver.
27		*/
28		power-supply = <&vcc_3v3_sys>;
29		ports {
30			#address-cells = <1>;
31			#size-cells = <0>;
32
33			port@0 {
34				reg = <0>;
35				dual-lvds-odd-pixels;
36				lcd_in0: endpoint {
37					remote-endpoint = <&oldi_0_out>;
38				};
39			};
40			port@1 {
41				reg = <1>;
42				dual-lvds-even-pixels;
43				lcd_in1: endpoint {
44					remote-endpoint = <&oldi_1_out>;
45				};
46			};
47		};
48	};
49};
50
51&dss {
52	status = "okay";
53};
54
55&oldi0 {
56	status = "okay";
57	ti,companion-oldi = <&oldi1>;
58};
59
60&oldi1 {
61	status = "okay";
62	ti,secondary-oldi;
63	ti,companion-oldi = <&oldi0>;
64};
65
66&oldi0_port0 {
67	oldi_0_in: endpoint {
68		remote-endpoint = <&dpi0_out0>;
69	};
70};
71
72&oldi0_port1 {
73	oldi_0_out: endpoint {
74		remote-endpoint = <&lcd_in0>;
75	};
76};
77
78&oldi1_port0 {
79	oldi_1_in: endpoint {
80		remote-endpoint = <&dpi0_out1>;
81	};
82};
83
84&oldi1_port1 {
85	oldi_1_out: endpoint {
86		remote-endpoint = <&lcd_in1>;
87	};
88};
89
90&dss_ports {
91	#address-cells = <1>;
92	#size-cells = <0>;
93
94	/* VP1: Output to OLDI */
95	port@0 {
96		reg = <0>;
97		#address-cells = <1>;
98		#size-cells = <0>;
99
100		dpi0_out0: endpoint@0 {
101			reg = <0>;
102			remote-endpoint = <&oldi_0_in>;
103		};
104		dpi0_out1: endpoint@1 {
105			reg = <1>;
106			remote-endpoint = <&oldi_1_in>;
107		};
108	};
109};
110
111&main_i2c0 {
112	#address-cells = <1>;
113	#size-cells = <0>;
114
115	touchscreen@41 {
116		compatible = "ilitek,ili251x";
117		reg = <0x41>;
118		interrupt-parent = <&exp1>;
119		interrupts = <22 IRQ_TYPE_EDGE_FALLING>;
120	};
121};
122