xref: /linux/arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtso (revision fcc79e1714e8c2b8e216dc3149812edd37884eef)
1// SPDX-License-Identifier: GPL-2.0+ OR MIT
2/*
3 * Copyright (C) 2023 Kontron Electronics GmbH
4 */
5
6/dts-v1/;
7/plugin/;
8
9#include <dt-bindings/gpio/gpio.h>
10#include "imx8mp-pinfunc.h"
11
12&{/} {
13	model = "Kontron DL i.MX8MP OSM-S";
14	compatible = "kontron,imx8mp-bl-osm-s", "kontron,imx8mp-osm-s", "fsl,imx8mp";
15
16	backlight: backlight {
17		compatible = "pwm-backlight";
18		pwms = <&pwm1 0 50000 0>;
19		brightness-levels = <0 100>;
20		num-interpolated-steps = <100>;
21		default-brightness-level = <100>;
22	};
23
24	panel {
25		compatible = "jenson,bl-jt60050-01a", "panel-lvds";
26		backlight = <&backlight>;
27		data-mapping = "vesa-24";
28		enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
29		power-supply = <&reg_vcc_panel>;
30		height-mm = <86>;
31		width-mm = <154>;
32
33		panel-timing {
34			clock-frequency = <50000000>;
35			hactive = <1024>;
36			hback-porch = <160>;
37			hfront-porch = <160>;
38			hsync-len = <1>;
39			vactive = <600>;
40			vback-porch = <23>;
41			vfront-porch = <12>;
42			vsync-len = <1>;
43		};
44
45		port {
46			panel_in_lvds0: endpoint {
47				remote-endpoint = <&ldb_lvds_ch0>;
48			};
49		};
50	};
51};
52
53&gpio4 {
54	pinctrl-names = "default";
55	pinctrl-0 = <&pinctrl_gpio4>, <&pinctrl_panel_stby>;
56
57	panel-rst-hog {
58		gpio-hog;
59		gpios = <21 GPIO_ACTIVE_HIGH>;
60		output-high;
61		line-name = "panel-reset";
62	};
63
64	panel-stby-hog {
65		gpio-hog;
66		gpios = <28 GPIO_ACTIVE_HIGH>;
67		output-high;
68		line-name = "panel-standby";
69	};
70};
71
72&i2c1 {
73	#address-cells = <1>;
74	#size-cells = <0>;
75	status = "okay";
76
77	touchscreen@5d {
78		compatible = "goodix,gt928";
79		reg = <0x5d>;
80		interrupt-parent = <&gpio1>;
81		interrupts = <6 8>;
82		irq-gpios = <&gpio1 6 0>;
83		AVDD28-supply = <&reg_vcc_panel>;
84		VDDIO-supply = <&reg_vcc_panel>;
85		reset-gpios = <&gpio1 7 0>;
86	};
87};
88
89&lcdif2 {
90	status = "okay";
91};
92
93&ldb_lvds_ch0 {
94	remote-endpoint = <&panel_in_lvds0>;
95};
96
97&lvds_bridge {
98	status = "okay";
99};
100
101&pwm1 {
102	status = "okay";
103};
104
105&iomuxc {
106	pinctrl_panel_stby: panelstbygrp {
107		fsl,pins = <
108			MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28		0x19
109		>;
110	};
111};
112