1// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2/*
3 * Copyright 2023 Gateworks Corporation
4 */
5
6#include <dt-bindings/gpio/gpio.h>
7
8#include "imx8mm-pinfunc.h"
9
10/dts-v1/;
11/plugin/;
12
13&{/} {
14	compatible = "gw,imx8mm-gw73xx-0x", "fsl,imx8mm";
15
16	panel {
17		compatible = "powertip,ph800480t013-idf02";
18		power-supply = <&attiny>;
19		backlight = <&attiny>;
20
21		port {
22			panel_in: endpoint {
23				remote-endpoint = <&bridge_out>;
24			};
25		};
26	};
27};
28
29&i2c3 {
30	#address-cells = <1>;
31	#size-cells = <0>;
32
33	attiny: regulator@45 {
34		compatible = "raspberrypi,7inch-touchscreen-panel-regulator";
35		reg = <0x45>;
36	};
37};
38
39&lcdif {
40	status = "okay";
41};
42
43&mipi_dsi {
44	samsung,burst-clock-frequency = <891000000>;
45	samsung,esc-clock-frequency = <54000000>;
46	samsung,pll-clock-frequency = <27000000>;
47	#address-cells = <1>;
48	#size-cells = <0>;
49	status = "okay";
50
51	bridge@0 {
52		compatible = "toshiba,tc358762";
53		reg = <0>;
54		vddc-supply = <&attiny>;
55
56		ports {
57			#address-cells = <1>;
58			#size-cells = <0>;
59
60			port@0 {
61				reg = <0>;
62
63				bridge_in: endpoint {
64					remote-endpoint = <&dsi_out>;
65				};
66			};
67
68			port@1 {
69				reg = <1>;
70
71				bridge_out: endpoint {
72					remote-endpoint = <&panel_in>;
73				};
74			};
75		};
76	};
77
78	ports {
79		#address-cells = <1>;
80		#size-cells = <0>;
81
82		port@1 {
83			reg = <1>;
84
85			dsi_out: endpoint {
86				remote-endpoint = <&bridge_in>;
87			};
88		};
89	};
90};
91