summaryrefslogtreecommitdiff
path: root/dts/gs201-tangorpro-display.dtsi
blob: 77f0cf3698479340be3649c8af61f6b490b7b4c5 (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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Display nodes for tangorpro-related boards.
 *
 * Copyright 2022 Google LLC
 *
 */
#include "gs201-tangorpro-display-constants.dtsi"

&reserved_memory {
	fb_handover: fb_handover {
		compatible = "exynos,fb_handover";
		reg = <0x0 0xfac00000 0x01400000>;
	};
};

&s2mpu_dpu0 {
	dma-cons = <&drmdecon0>;
};

&hsi2c_6 {
	#address-cells = <1>;
	#size-cells = <0>;
	status = "okay";
	clock-frequency = <400000>;

	lp8556_bl: backlight@2c {
		/*
		 * If bootloader probed lp8556_bl successfully, it will change
		 * lp8556_bl to status = "okay" and rt4539_bl to status = "disabled"
		 */
		status = "disabled";
		compatible = "ti,lp8556";
		reg = <0x2c>;

		bl-name = "lcd-bl";
		enable-supply = <&m_ldo25_reg>;
		dev-ctrl = /bits/ 8 <0x81>;

		/* 5 LED strings enabled */
		led-string-en = /bits/ 8 <0x1f>;

		/* set maximum current at 23mA */
		rom_cfg1 {
			rom-addr = /bits/ 8 <0xa1>;
			rom-val = /bits/ 8 <0x4f>;
		};

		/* PWM output phase config for 5 LED strings */
		rom_cfg5 {
			rom-addr = /bits/ 8 <0xa5>;
			rom-val = /bits/ 8 <0x14>;
		};
	};
	rt4539_bl: backlight@3c {
		/*
		 * If bootloader probed lp8556_bl successfully, it will change
		 * lp8556_bl to status = "okay" and rt4539_bl to status = "disabled"
		 */
		status = "okay";
		compatible = "richtek,rt4539";
		reg = <0x3c>;

		bl-name = "lcd-bl";
		enable-supply = <&m_ldo25_reg>;

		bit-selection = /bits/ 8 <12>;

		/* 28% (140 nits) initial brightness */
		initial-brightness = /bits/ 16 <1146>;

		/* DC Mode */
		dimming-mode = /bits/ 8 <0x04>;

		/* 1225kHz */
		boost-switch-freq = /bits/ 8 <0x0c>;

		/* 0.5 us */
		fade-in-out-time-ctrl = /bits/ 8 <0x00>;

		/* 8 ms */
		slope-time-ctrl = /bits/ 8 <0x02>;

		/* no filter */
		slope-time-filter = /bits/ 8 <0x00>;

		/* max current 23mA */
		current-max = /bits/ 8 <0x9b>;

		/* PWM signal multiplied with I2C */
		brightness-control = /bits/ 8 <0x02>;

		/* 5 LEDS */
		enabled-leds = /bits/ 8 <0x3e>;

		/* 25V */
		boost-ovp-selection = /bits/ 8 <0x0f>;
		led-short-protection;
		pfm-enable;
	};

	tps65132_bias: lcd-bias@3e {
		/*
		 * If bootloader probed rt4801_bias successfully, it will change
		 * tps65132_bias to status = "disabled"
		 */
		compatible = "ti,tps65132";
		reg = <0x3e>;

		tps65132_avdd: outp {
			regulator-name = "disp_avdd";
			regulator-min-microvolt = <4000000>;
			regulator-max-microvolt = <TANGORPRO_AVDD_MICROVOLT>;
			regulator-boot-on;
			enable-gpios = <&gpp23 1 GPIO_ACTIVE_HIGH>;
		};

		tps65132_avee: outn {
			regulator-name = "disp_avee";
			regulator-min-microvolt = <4000000>;
			regulator-max-microvolt = <TANGORPRO_AVEE_MICROVOLT>;
			regulator-boot-on;
		};
	};

	rt4801_bias: lcd-bias@73 {
		/*
		 * If bootloader probed tps65132_bias successfully, it will change
		 * rt4801_bias to status = "disabled"
		 */
		compatible = "richtek,rt4801";
		reg = <0x73>;
		enable-gpios = <&gpp23 1 GPIO_ACTIVE_HIGH>;

		rt4801_avdd: DSVP {
			regulator-name = "disp_avdd";
			regulator-min-microvolt = <4000000>;
			regulator-max-microvolt = <TANGORPRO_AVDD_MICROVOLT>;
			regulator-boot-on;
		};

		rt4801_avee: DSVN {
			regulator-name = "disp_avee";
			regulator-min-microvolt = <4000000>;
			regulator-max-microvolt = <TANGORPRO_AVEE_MICROVOLT>;
			regulator-boot-on;
		};
	};
};

&drmdecon0 {
	override-hibernation;
	memory-region = <&fb_handover>;
	samsung,iommu-identity-map = <0x0 0xFAC00000 0x01400000>;
};

&dsim_modes {
	dsim-modes {
		1600x2560 {
			mode-name = "1600x2560";
			pmsk = <
				0x2 0xA6 0x2 0x2DAB /* p m s k */
				>;
			hs-clk = <1021>;
			esc-clk = <20>;
		};
	};
};

&drmdsim0 {
	status = "ok";
	#address-cells = <1>;
	#size-cells = <0>;

	boe_ts110f5mlg0_m0: panel@0 {
		compatible = "boe,ts110f5mlg0";
		label = "boe-ts110f5mlg0";
		channel = <0>;
		touch = <&spitouch>;
		dual-dsi = "main";
		backlight = <&lp8556_bl>;
		bl-ctrl-dcs;
		#include "gs201-tangorpro-display-common.dtsi"
	};
	boe_ts110f5mlg0_rt4539_m0: panel@1 {
		compatible = "boe,ts110f5mlg0";
		label = "boe-ts110f5mlg0-rt4539";
		channel = <0>;
		touch = <&spitouch>;
		dual-dsi = "main";
		backlight = <&rt4539_bl>;
		#include "gs201-tangorpro-display-common.dtsi"
	};
	csot_ppa957db2d_m0: panel@2 {
		compatible = "csot,ppa957db2d";
		label = "csot-ppa957db2d";
		channel = <0>;
		touch = <&spitouch>;
		dual-dsi = "main";
		backlight = <&lp8556_bl>;
		bl-ctrl-dcs;
		#include "gs201-tangorpro-display-common.dtsi"
	};
	csot_ppa957db2d_rt4539_m0: panel@3 {
		compatible = "csot,ppa957db2d";
		label = "csot-ppa957db2d-rt4539";
		channel = <0>;
		touch = <&spitouch>;
		dual-dsi = "main";
		backlight = <&rt4539_bl>;
		#include "gs201-tangorpro-display-common.dtsi"
	};
	panel@4 {
		compatible = "samsung,emul";
		label = "samsung-emul";
		channel = <0>;

		/* reset, power */
		reset-gpios = <&gpa7 1 GPIO_ACTIVE_HIGH>;
	};
};

&drmdsim1 {
	status = "ok";
	#address-cells = <1>;
	#size-cells = <0>;

	boe_ts110f5mlg0_m1: panel@0 {
		compatible = "boe,ts110f5mlg0";
		label = "boe-ts110f5mlg0";
		channel = <0>;
		touch = <&spitouch>;
		dual-dsi = "sec";
	};
	boe_ts110f5mlg0_rt4539_m1: panel@1 {
		compatible = "boe,ts110f5mlg0";
		label = "boe-ts110f5mlg0-rt4539";
		channel = <0>;
		touch = <&spitouch>;
		dual-dsi = "sec";
	};
	csot_ppa957db2d_m1: panel@2 {
		compatible = "csot,ppa957db2d";
		label = "csot-ppa957db2d";
		channel = <0>;
		touch = <&spitouch>;
		dual-dsi = "sec";
	};
	csot_ppa957db2d_rt4539_m1: panel@3 {
		compatible = "csot,ppa957db2d";
		label = "csot-ppa957db2d-rt4539";
		channel = <0>;
		touch = <&spitouch>;
		dual-dsi = "sec";
	};
};