Debian Codegraph @

arch/arm64/boot/dts/freescale/imx8mp-kontron-dl.dtso

raw
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 pinctrl-names = "default";
81 pinctrl-0 = <&pinctrl_touch>;
82 interrupt-parent = <&gpio1>;
83 interrupts = <6 8>;
84 irq-gpios = <&gpio1 6 0>;
85 AVDD28-supply = <&reg_vcc_panel>;
86 VDDIO-supply = <&reg_vcc_panel>;
87 reset-gpios = <&gpio1 7 0>;
88 };
89 };
90
91 &lcdif2 {
92 status = "okay";
93 };
94
95 &ldb_lvds_ch0 {
96 remote-endpoint = <&panel_in_lvds0>;
97 };
98
99 &lvds_bridge {
100 status = "okay";
101 };
102
103 /* redefine to remove touch controller GPIOs */
104 &pinctrl_gpio1 {
105 fsl,pins = <
106 MX8MP_IOMUXC_GPIO1_IO00__GPIO1_IO00 0x19 /* GPIO_A_0 */
107 MX8MP_IOMUXC_GPIO1_IO01__GPIO1_IO01 0x19 /* GPIO_A_1 */
108 MX8MP_IOMUXC_GPIO1_IO05__GPIO1_IO05 0x19 /* GPIO_A_2 */
109 MX8MP_IOMUXC_GPIO1_IO08__GPIO1_IO08 0x19 /* GPIO_A_5 */
110 >;
111 };
112
113 &pwm1 {
114 status = "okay";
115 };
116
117 &iomuxc {
118 pinctrl_panel_stby: panelstbygrp {
119 fsl,pins = <
120 MX8MP_IOMUXC_SAI3_RXFS__GPIO4_IO28 0x19
121 >;
122 };
123
124 pinctrl_touch: touchgrp {
125 fsl,pins = <
126 MX8MP_IOMUXC_GPIO1_IO06__GPIO1_IO06 0x19
127 MX8MP_IOMUXC_GPIO1_IO07__GPIO1_IO07 0x150
128 >;
129 };
130 };