summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtso
blob: a3cba41d2b531218c51600c06ce7b4b22b7466ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
 * Copyright (C) 2023 Kontron Electronics GmbH
 */

/dts-v1/;
/plugin/;

#include <dt-bindings/gpio/gpio.h>
#include "imx8mp-pinfunc.h"

&{/} {
	model = "Kontron DL i.MX8MP OSM-S";
	compatible = "kontron,imx8mp-bl-osm-s", "kontron,imx8mp-osm-s", "fsl,imx8mp";

	backlight: backlight {
		compatible = "pwm-backlight";
		pwms = <&pwm1 0 50000 0>;
		brightness-levels = <0 100>;
		num-interpolated-steps = <100>;
		default-brightness-level = <100>;
	};

	panel {
		compatible = "jenson,bl-jt60050-01a", "panel-lvds";
		backlight = <&backlight>;
		data-mapping = "vesa-24";
		enable-gpios = <&gpio1 8 GPIO_ACTIVE_HIGH>;
		power-supply = <&reg_vcc_panel>;
		height-mm = <86>;
		width-mm = <154>;

		panel-timing {
			clock-frequency = <50000000>;
			hactive = <1024>;
			hback-porch = <160>;
			hfront-porch = <160>;
			hsync-len = <1>;
			vactive = <600>;
			vback-porch = <23>;
			vfront-porch = <12>;
			vsync-len = <1>;
		};

		port {
			panel_in_lvds0: endpoint {
				remote-endpoint = <&ldb_lvds_ch0>;
			};
		};
	};
};

&gpio4 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_gpio4>, <&pinctrl_panel_stby>;

	panel-rst-hog {
		gpio-hog;
		gpios = <21 GPIO_ACTIVE_HIGH>;
		output-high;
		line-name = "panel-reset";
	};

	panel-stby-hog {
		gpio-hog;
		gpios = <28 GPIO_ACTIVE_HIGH>;
		output-high;
		line-name = "panel-standby";
	};
};

&i2c1 {
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";

	touchscreen@5d {
		compatible = "goodix,gt928";
		reg = <0x5d>;
		interrupt-parent = <&gpio1>;
		interrupts = <6 8>;
		irq-gpios = <&gpio1 6 0>;
		AVDD28-supply = <&reg_vcc_panel>;
		VDDIO-supply = <&reg_vcc_panel>;
		reset-gpios = <&gpio1 7 0>;
	};
};

&lcdif2 {
	status = "okay";
};

&ldb_lvds_ch0 {
	remote-endpoint = <&panel_in_lvds0>;
};

&lvds_bridge {
	status = "okay";
};

&pwm1 {
	status = "okay";
};

&iomuxc {
	pinctrl_panel_stby: panelstbygrp {
		fsl,pins = <
			MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28		0x19
		>;
	};
};