blob: 25df8b61f78daa0d68c28182f5c6888a310105bc (
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
|
// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
/*
* Copyright 2024 Toradex
*/
// Toradex DSI to LVDS Adapter on Aquila DSI_1.
/dts-v1/;
/plugin/;
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/pwm/pwm.h>
/ {
compatible = "toradex,aquila-am69";
};
&{/} {
backlight_dsi1_lvds: backlight-dsi1-lvds {
compatible = "pwm-backlight";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_19_dsi_1>;
brightness-levels = <0 45 63 88 119 158 203 255>;
default-brightness-level = <4>;
/* Aquila GPIO_19_DSI_1 (AQUILA B44) */
enable-gpios = <&main_gpio0 13 GPIO_ACTIVE_HIGH>;
/* Aquila PWM_3_DSI (AQUILA B46) */
pwms = <&main_ehrpwm5 0 6666667 PWM_POLARITY_INVERTED>;
};
panel-lvds {
compatible = "panel-lvds";
backlight = <&backlight_dsi1_lvds>;
data-mapping = "vesa-24";
height-mm = <136>;
width-mm = <217>;
panel-timing {
clock-frequency = <68900000 71100000 73400000>;
de-active = <1>;
hactive = <1280 1280 1280>;
hback-porch = <3 40 51>;
hfront-porch = <43 80 91>;
hsync-active = <0>;
hsync-len = <15 40 47>;
pixelclk-active = <1>; /* positive edge */
vactive = <800 800 800>;
vback-porch = <5 7 10>;
vfront-porch = <5 7 10>;
vsync-active = <0>;
vsync-len = <6 9 12>;
};
port {
panel_in_lvds: endpoint {
remote-endpoint = <&lvds_out_panel>;
};
};
};
};
&dphy_tx0 {
status = "okay";
};
&dsi0 {
status = "okay";
};
&dsi0_ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
dsi0_out: endpoint {
remote-endpoint = <&dsi84_in>;
};
};
port@1 {
reg = <1>;
dsi0_in: endpoint {
remote-endpoint = <&dpi2_out>;
};
};
};
&dss_ports {
#address-cells = <1>;
#size-cells = <0>;
port@2 {
reg = <2>;
dpi2_out: endpoint {
remote-endpoint = <&dsi0_in>;
};
};
};
/* Aquila PWM_3_DSI */
&main_ehrpwm5 {
status = "okay";
};
/* Aquila I2C_3_DSI1 */
&main_i2c0 {
#address-cells = <1>;
#size-cells = <0>;
status = "okay";
bridge@2c {
compatible = "ti,sn65dsi84";
reg = <0x2c>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_20_dsi_1>;
/* Aquila GPIO_20_DSI_1 (AQUILA B45) */
enable-gpios = <&main_gpio0 18 GPIO_ACTIVE_HIGH>;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
dsi84_in: endpoint {
data-lanes = <1 2 3 4>;
remote-endpoint = <&dsi0_out>;
};
};
port@2 {
reg = <2>;
lvds_out_panel: endpoint {
remote-endpoint = <&panel_in_lvds>;
};
};
};
};
touch@4a {
compatible = "atmel,maxtouch";
reg = <0x4a>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_gpio_17_dsi_1>, <&pinctrl_gpio_18_dsi_1>;
/* Aquila GPIO_17_DSI_1 (TOUCH_INT#, AQUILA B42) */
interrupt-parent = <&main_gpio0>;
interrupts = <12 IRQ_TYPE_EDGE_FALLING>;
/* Aquila GPIO_18_DSI_1 (TOUCH_RESET#, AQUILA B43) */
reset-gpios = <&main_gpio0 31 GPIO_ACTIVE_LOW>;
};
};
|