xref: /linux/drivers/gpu/drm/tests/drm_kunit_edid.h (revision 9156bf442ee56c0f883aa4c81af9c8471eef6846)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 
3 #ifndef DRM_KUNIT_EDID_H_
4 #define DRM_KUNIT_EDID_H_
5 
6 /*
7  * edid-decode (hex):
8  *
9  * 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00
10  * 00 21 01 03 81 a0 5a 78 0a 00 00 00 00 00 00 00
11  * 00 00 00 00 00 00 01 01 01 01 01 01 01 01 01 01
12  * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
13  * 45 00 40 84 63 00 00 1e 00 00 00 fc 00 54 65 73
14  * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 32
15  * 46 1e 46 0f 00 0a 20 20 20 20 20 20 00 00 00 10
16  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ab
17  *
18  * ----------------
19  *
20  * Block 0, Base EDID:
21  *   EDID Structure Version & Revision: 1.3
22  *   Vendor & Product Identification:
23  *     Manufacturer: LNX
24  *     Model: 42
25  *     Made in: 2023
26  *   Basic Display Parameters & Features:
27  *     Digital display
28  *     DFP 1.x compatible TMDS
29  *     Maximum image size: 160 cm x 90 cm
30  *     Gamma: 2.20
31  *     RGB color display
32  *     First detailed timing is the preferred timing
33  *   Color Characteristics:
34  *     Red  : 0.0000, 0.0000
35  *     Green: 0.0000, 0.0000
36  *     Blue : 0.0000, 0.0000
37  *     White: 0.0000, 0.0000
38  *   Established Timings I & II: none
39  *   Standard Timings: none
40  *   Detailed Timing Descriptors:
41  *     DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (1600 mm x 900 mm)
42  *                  Hfront   88 Hsync  44 Hback  148 Hpol P
43  *                  Vfront    4 Vsync   5 Vback   36 Vpol P
44  *     Display Product Name: 'Test EDID'
45  *     Display Range Limits:
46  *       Monitor ranges (GTF): 50-70 Hz V, 30-70 kHz H, max dotclock 150 MHz
47  *     Dummy Descriptor:
48  * Checksum: 0xab
49  *
50  * ----------------
51  *
52  * edid-decode 1.30.0-5367
53  * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
54  *
55  * EDID conformity: PASS
56  */
57 static const unsigned char test_edid_dvi_1080p[] = {
58 	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
59 	0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78,
60 	0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
61 	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
62 	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38,
63 	0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0x40, 0x84, 0x63, 0x00, 0x00, 0x1e,
64 	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
65 	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x32,
66 	0x46, 0x1e, 0x46, 0x0f, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
67 	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
68 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xab
69 };
70 
71 /*
72  *
73  * This edid is intentionally broken with the 100MHz limit. It's meant
74  * to be used only with tests in unusual situations.
75  *
76  * edid-decode (hex):
77  *
78  * 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00
79  * 00 21 01 03 81 a0 5a 78 02 00 00 00 00 00 00 00
80  * 00 00 00 20 00 00 01 01 01 01 01 01 01 01 01 01
81  * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
82  * 45 00 40 84 63 00 00 1e 00 00 00 fc 00 54 65 73
83  * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 32
84  * 46 1e 46 0f 00 0a 20 20 20 20 20 20 00 00 00 10
85  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 92
86  *
87  * 02 03 15 81 e3 05 00 20 41 10 e2 00 4a 67 03 0c
88  * 00 12 34 00 14 00 00 00 00 00 00 00 00 00 00 00
89  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
91  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
92  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
93  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
94  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 10
95  *
96  * ----------------
97  *
98  * Block 0, Base EDID:
99  *   EDID Structure Version & Revision: 1.3
100  *   Vendor & Product Identification:
101  *     Manufacturer: LNX
102  *     Model: 42
103  *     Made in: 2023
104  *   Basic Display Parameters & Features:
105  *     Digital display
106  *     DFP 1.x compatible TMDS
107  *     Maximum image size: 160 cm x 90 cm
108  *     Gamma: 2.20
109  *     Monochrome or grayscale display
110  *     First detailed timing is the preferred timing
111  *   Color Characteristics:
112  *     Red  : 0.0000, 0.0000
113  *     Green: 0.0000, 0.0000
114  *     Blue : 0.0000, 0.0000
115  *     White: 0.0000, 0.0000
116  *   Established Timings I & II:
117  *     DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
118  *   Standard Timings: none
119  *   Detailed Timing Descriptors:
120  *     DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (1600 mm x 900 mm)
121  *                  Hfront   88 Hsync  44 Hback  148 Hpol P
122  *                  Vfront    4 Vsync   5 Vback   36 Vpol P
123  *     Display Product Name: 'Test EDID'
124  *     Display Range Limits:
125  *       Monitor ranges (GTF): 50-70 Hz V, 30-70 kHz H, max dotclock 150 MHz
126  *     Dummy Descriptor:
127  *   Extension blocks: 1
128  * Checksum: 0x92
129  *
130  * ----------------
131  *
132  * Block 1, CTA-861 Extension Block:
133  *   Revision: 3
134  *   Underscans IT Video Formats by default
135  *   Native detailed modes: 1
136  *   Colorimetry Data Block:
137  *     sRGB
138  *   Video Data Block:
139  *     VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
140  *   Video Capability Data Block:
141  *     YCbCr quantization: No Data
142  *     RGB quantization: Selectable (via AVI Q)
143  *     PT scan behavior: No Data
144  *     IT scan behavior: Always Underscanned
145  *     CE scan behavior: Always Underscanned
146  *   Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
147  *     Source physical address: 1.2.3.4
148  *     Maximum TMDS clock: 100 MHz
149  * Checksum: 0x10  Unused space in Extension Block: 106 bytes
150  *
151  * ----------------
152  *
153  * edid-decode 1.30.0-5367
154  * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
155  *
156  * Failures:
157  *
158  * EDID:
159  *   CTA-861: The maximum HDMI TMDS clock is 100000 kHz, but one or more video timings go up to 148500 kHz.
160  *
161  * EDID conformity: FAIL
162  */
163 static const unsigned char test_edid_hdmi_1080p_rgb_max_100mhz[] = {
164 	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
165 	0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78,
166 	0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
167 	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
168 	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38,
169 	0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0x40, 0x84, 0x63, 0x00, 0x00, 0x1e,
170 	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
171 	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x32,
172 	0x46, 0x1e, 0x46, 0x0f, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
173 	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
174 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x92, 0x02, 0x03, 0x15, 0x81,
175 	0xe3, 0x05, 0x00, 0x20, 0x41, 0x10, 0xe2, 0x00, 0x4a, 0x67, 0x03, 0x0c,
176 	0x00, 0x12, 0x34, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
177 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
178 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
179 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
180 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
181 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
182 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
183 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
184 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
185 	0x00, 0x00, 0x00, 0x10
186 };
187 
188 /*
189  * edid-decode (hex):
190  *
191  * 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00
192  * 00 21 01 03 81 a0 5a 78 02 00 00 00 00 00 00 00
193  * 00 00 00 20 00 00 01 01 01 01 01 01 01 01 01 01
194  * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
195  * 45 00 40 84 63 00 00 1e 00 00 00 fc 00 54 65 73
196  * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 32
197  * 46 1e 46 0f 00 0a 20 20 20 20 20 20 00 00 00 10
198  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 92
199  *
200  * 02 03 15 81 e3 05 00 20 41 10 e2 00 4a 67 03 0c
201  * 00 12 34 00 28 00 00 00 00 00 00 00 00 00 00 00
202  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
203  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
204  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
205  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
206  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
207  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc
208  *
209  * ----------------
210  *
211  * Block 0, Base EDID:
212  *   EDID Structure Version & Revision: 1.3
213  *   Vendor & Product Identification:
214  *     Manufacturer: LNX
215  *     Model: 42
216  *     Made in: 2023
217  *   Basic Display Parameters & Features:
218  *     Digital display
219  *     DFP 1.x compatible TMDS
220  *     Maximum image size: 160 cm x 90 cm
221  *     Gamma: 2.20
222  *     Monochrome or grayscale display
223  *     First detailed timing is the preferred timing
224  *   Color Characteristics:
225  *     Red  : 0.0000, 0.0000
226  *     Green: 0.0000, 0.0000
227  *     Blue : 0.0000, 0.0000
228  *     White: 0.0000, 0.0000
229  *   Established Timings I & II:
230  *     DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
231  *   Standard Timings: none
232  *   Detailed Timing Descriptors:
233  *     DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (1600 mm x 900 mm)
234  *                  Hfront   88 Hsync  44 Hback  148 Hpol P
235  *                  Vfront    4 Vsync   5 Vback   36 Vpol P
236  *     Display Product Name: 'Test EDID'
237  *     Display Range Limits:
238  *       Monitor ranges (GTF): 50-70 Hz V, 30-70 kHz H, max dotclock 150 MHz
239  *     Dummy Descriptor:
240  *   Extension blocks: 1
241  * Checksum: 0x92
242  *
243  * ----------------
244  *
245  * Block 1, CTA-861 Extension Block:
246  *   Revision: 3
247  *   Underscans IT Video Formats by default
248  *   Native detailed modes: 1
249  *   Colorimetry Data Block:
250  *     sRGB
251  *   Video Data Block:
252  *     VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
253  *   Video Capability Data Block:
254  *     YCbCr quantization: No Data
255  *     RGB quantization: Selectable (via AVI Q)
256  *     PT scan behavior: No Data
257  *     IT scan behavior: Always Underscanned
258  *     CE scan behavior: Always Underscanned
259  *   Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
260  *     Source physical address: 1.2.3.4
261  *     Maximum TMDS clock: 200 MHz
262  * Checksum: 0xfc  Unused space in Extension Block: 106 bytes
263  *
264  * ----------------
265  *
266  * edid-decode 1.30.0-5367
267  * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
268  *
269  * EDID conformity: PASS
270  */
271 static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz[] = {
272 	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
273 	0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78,
274 	0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
275 	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
276 	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38,
277 	0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0x40, 0x84, 0x63, 0x00, 0x00, 0x1e,
278 	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
279 	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x32,
280 	0x46, 0x1e, 0x46, 0x0f, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
281 	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
282 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x92, 0x02, 0x03, 0x15, 0x81,
283 	0xe3, 0x05, 0x00, 0x20, 0x41, 0x10, 0xe2, 0x00, 0x4a, 0x67, 0x03, 0x0c,
284 	0x00, 0x12, 0x34, 0x00, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
285 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
286 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
287 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
288 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
289 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
290 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
291 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
292 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
293 	0x00, 0x00, 0x00, 0xfc
294 };
295 
296 /*
297  * edid-decode (hex):
298  *
299  * 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00
300  * 00 21 01 03 81 a0 5a 78 02 00 00 00 00 00 00 00
301  * 00 00 00 20 00 00 01 01 01 01 01 01 01 01 01 01
302  * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
303  * 45 00 40 84 63 00 00 1e 00 00 00 fc 00 54 65 73
304  * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 32
305  * 46 1e 46 0f 00 0a 20 20 20 20 20 20 00 00 00 10
306  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 92
307  *
308  * 02 03 1c 81 e3 05 c0 20 41 10 e2 00 4a 67 03 0c
309  * 00 12 34 00 28 e6 06 05 01 52 52 51 00 00 00 00
310  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
311  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
312  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
313  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
314  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
315  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4e
316  *
317  * ----------------
318  *
319  * Block 0, Base EDID:
320  *   EDID Structure Version & Revision: 1.3
321  *   Vendor & Product Identification:
322  *     Manufacturer: LNX
323  *     Model: 42
324  *     Made in: 2023
325  *   Basic Display Parameters & Features:
326  *     Digital display
327  *     DFP 1.x compatible TMDS
328  *     Maximum image size: 160 cm x 90 cm
329  *     Gamma: 2.20
330  *     Monochrome or grayscale display
331  *     First detailed timing is the preferred timing
332  *   Color Characteristics:
333  *     Red  : 0.0000, 0.0000
334  *     Green: 0.0000, 0.0000
335  *     Blue : 0.0000, 0.0000
336  *     White: 0.0000, 0.0000
337  *   Established Timings I & II:
338  *     DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
339  *   Standard Timings: none
340  *   Detailed Timing Descriptors:
341  *     DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (1600 mm x 900 mm)
342  *                  Hfront   88 Hsync  44 Hback  148 Hpol P
343  *                  Vfront    4 Vsync   5 Vback   36 Vpol P
344  *     Display Product Name: 'Test EDID'
345  *     Display Range Limits:
346  *       Monitor ranges (GTF): 50-70 Hz V, 30-70 kHz H, max dotclock 150 MHz
347  *     Dummy Descriptor:
348  *   Extension blocks: 1
349  * Checksum: 0x92
350  *
351  * ----------------
352  *
353  * Block 1, CTA-861 Extension Block:
354  *   Revision: 3
355  *   Underscans IT Video Formats by default
356  *   Native detailed modes: 1
357  *   Colorimetry Data Block:
358  *     BT2020YCC
359  *     BT2020RGB
360  *     sRGB
361  *   Video Data Block:
362  *     VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
363  *   Video Capability Data Block:
364  *     YCbCr quantization: No Data
365  *     RGB quantization: Selectable (via AVI Q)
366  *     PT scan behavior: No Data
367  *     IT scan behavior: Always Underscanned
368  *     CE scan behavior: Always Underscanned
369  *   Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
370  *     Source physical address: 1.2.3.4
371  *     Maximum TMDS clock: 200 MHz
372  *   HDR Static Metadata Data Block:
373  *     Electro optical transfer functions:
374  *       Traditional gamma - SDR luminance range
375  *       SMPTE ST2084
376  *     Supported static metadata descriptors:
377  *       Static metadata type 1
378  *     Desired content max luminance: 82 (295.365 cd/m^2)
379  *     Desired content max frame-average luminance: 82 (295.365 cd/m^2)
380  *     Desired content min luminance: 81 (0.298 cd/m^2)
381  * Checksum: 0x4e  Unused space in Extension Block: 99 bytes
382  *
383  * ----------------
384  *
385  * edid-decode 1.31.0-5387
386  * edid-decode SHA: 5508bc4301ac 2025-08-25 08:14:22
387  *
388  * EDID conformity: PASS
389  */
390 static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz_hdr[] = {
391 	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
392 	0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78,
393 	0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
394 	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
395 	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38,
396 	0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0x40, 0x84, 0x63, 0x00, 0x00, 0x1e,
397 	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
398 	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x32,
399 	0x46, 0x1e, 0x46, 0x0f, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
400 	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
401 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x92, 0x02, 0x03, 0x1c, 0x81,
402 	0xe3, 0x05, 0xc0, 0x20, 0x41, 0x10, 0xe2, 0x00, 0x4a, 0x67, 0x03, 0x0c,
403 	0x00, 0x12, 0x34, 0x78, 0x28, 0xe6, 0x06, 0x05, 0x01, 0x52, 0x52, 0x51,
404 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
405 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
406 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
407 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
408 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
409 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
410 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
411 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
412 	0x00, 0x00, 0x00, 0xd6,
413 };
414 
415 /*
416  * edid-decode (hex):
417  *
418  * 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00
419  * 00 21 01 03 81 a0 5a 78 02 00 00 00 00 00 00 00
420  * 00 00 00 20 00 00 01 01 01 01 01 01 01 01 01 01
421  * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
422  * 45 00 40 84 63 00 00 1e 00 00 00 fc 00 54 65 73
423  * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 32
424  * 46 1e 46 0f 00 0a 20 20 20 20 20 20 00 00 00 10
425  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 92
426  *
427  * 02 03 15 81 e3 05 00 20 41 10 e2 00 4a 67 03 0c
428  * 00 12 34 00 44 00 00 00 00 00 00 00 00 00 00 00
429  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
430  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
431  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
432  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
433  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
434  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e0
435  *
436  * ----------------
437  *
438  * Block 0, Base EDID:
439  *   EDID Structure Version & Revision: 1.3
440  *   Vendor & Product Identification:
441  *     Manufacturer: LNX
442  *     Model: 42
443  *     Made in: 2023
444  *   Basic Display Parameters & Features:
445  *     Digital display
446  *     DFP 1.x compatible TMDS
447  *     Maximum image size: 160 cm x 90 cm
448  *     Gamma: 2.20
449  *     Monochrome or grayscale display
450  *     First detailed timing is the preferred timing
451  *   Color Characteristics:
452  *     Red  : 0.0000, 0.0000
453  *     Green: 0.0000, 0.0000
454  *     Blue : 0.0000, 0.0000
455  *     White: 0.0000, 0.0000
456  *   Established Timings I & II:
457  *     DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
458  *   Standard Timings: none
459  *   Detailed Timing Descriptors:
460  *     DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (1600 mm x 900 mm)
461  *                  Hfront   88 Hsync  44 Hback  148 Hpol P
462  *                  Vfront    4 Vsync   5 Vback   36 Vpol P
463  *     Display Product Name: 'Test EDID'
464  *     Display Range Limits:
465  *       Monitor ranges (GTF): 50-70 Hz V, 30-70 kHz H, max dotclock 150 MHz
466  *     Dummy Descriptor:
467  *   Extension blocks: 1
468  * Checksum: 0x92
469  *
470  * ----------------
471  *
472  * Block 1, CTA-861 Extension Block:
473  *   Revision: 3
474  *   Underscans IT Video Formats by default
475  *   Native detailed modes: 1
476  *   Colorimetry Data Block:
477  *     sRGB
478  *   Video Data Block:
479  *     VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
480  *   Video Capability Data Block:
481  *     YCbCr quantization: No Data
482  *     RGB quantization: Selectable (via AVI Q)
483  *     PT scan behavior: No Data
484  *     IT scan behavior: Always Underscanned
485  *     CE scan behavior: Always Underscanned
486  *   Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
487  *     Source physical address: 1.2.3.4
488  *     Maximum TMDS clock: 340 MHz
489  * Checksum: 0xe0  Unused space in Extension Block: 106 bytes
490  *
491  * ----------------
492  *
493  * edid-decode 1.30.0-5367
494  * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
495  *
496  * EDID conformity: PASS
497  */
498 static const unsigned char test_edid_hdmi_1080p_rgb_max_340mhz[] = {
499 	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
500 	0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78,
501 	0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
502 	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
503 	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38,
504 	0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0x40, 0x84, 0x63, 0x00, 0x00, 0x1e,
505 	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
506 	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x32,
507 	0x46, 0x1e, 0x46, 0x0f, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
508 	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
509 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x92, 0x02, 0x03, 0x15, 0x81,
510 	0xe3, 0x05, 0x00, 0x20, 0x41, 0x10, 0xe2, 0x00, 0x4a, 0x67, 0x03, 0x0c,
511 	0x00, 0x12, 0x34, 0x00, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
512 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
513 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
514 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
515 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
516 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
517 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
518 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
519 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
520 	0x00, 0x00, 0x00, 0xe0
521 };
522 
523 /*
524  * edid-decode (hex):
525  *
526  * 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00
527  * 00 21 01 03 81 a0 5a 78 1a 00 00 00 00 00 00 00
528  * 00 00 00 20 00 00 01 01 01 01 01 01 01 01 01 01
529  * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
530  * 45 00 40 84 63 00 00 1e 00 00 00 fc 00 54 65 73
531  * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 32
532  * 46 1e 46 0f 00 0a 20 20 20 20 20 20 00 00 00 10
533  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 7a
534  *
535  * 02 03 15 b1 e3 05 00 20 41 10 e2 00 ca 67 03 0c
536  * 00 12 34 78 28 00 00 00 00 00 00 00 00 00 00 00
537  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
538  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
539  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
540  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
541  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
542  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 d4
543  *
544  * ----------------
545  *
546  * Block 0, Base EDID:
547  *   EDID Structure Version & Revision: 1.3
548  *   Vendor & Product Identification:
549  *     Manufacturer: LNX
550  *     Model: 42
551  *     Made in: 2023
552  *   Basic Display Parameters & Features:
553  *     Digital display
554  *     DFP 1.x compatible TMDS
555  *     Maximum image size: 160 cm x 90 cm
556  *     Gamma: 2.20
557  *     Undefined display color type
558  *     First detailed timing is the preferred timing
559  *   Color Characteristics:
560  *     Red  : 0.0000, 0.0000
561  *     Green: 0.0000, 0.0000
562  *     Blue : 0.0000, 0.0000
563  *     White: 0.0000, 0.0000
564  *   Established Timings I & II:
565  *     DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
566  *   Standard Timings: none
567  *   Detailed Timing Descriptors:
568  *     DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (1600 mm x 900 mm)
569  *                  Hfront   88 Hsync  44 Hback  148 Hpol P
570  *                  Vfront    4 Vsync   5 Vback   36 Vpol P
571  *     Display Product Name: 'Test EDID'
572  *     Display Range Limits:
573  *       Monitor ranges (GTF): 50-70 Hz V, 30-70 kHz H, max dotclock 150 MHz
574  *     Dummy Descriptor:
575  *   Extension blocks: 1
576  * Checksum: 0x7a
577  *
578  * ----------------
579  *
580  * Block 1, CTA-861 Extension Block:
581  *   Revision: 3
582  *   Underscans IT Video Formats by default
583  *   Supports YCbCr 4:4:4
584  *   Supports YCbCr 4:2:2
585  *   Native detailed modes: 1
586  *   Colorimetry Data Block:
587  *     sRGB
588  *   Video Data Block:
589  *     VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
590  *   Video Capability Data Block:
591  *     YCbCr quantization: Selectable (via AVI YQ)
592  *     RGB quantization: Selectable (via AVI Q)
593  *     PT scan behavior: No Data
594  *     IT scan behavior: Always Underscanned
595  *     CE scan behavior: Always Underscanned
596  *   Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
597  *     Source physical address: 1.2.3.4
598  *     DC_48bit
599  *     DC_36bit
600  *     DC_30bit
601  *     DC_Y444
602  *     Maximum TMDS clock: 200 MHz
603  * Checksum: 0xd4  Unused space in Extension Block: 106 bytes
604  *
605  * ----------------
606  *
607  * edid-decode 1.30.0-5367
608  * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
609  *
610  * EDID conformity: PASS
611  */
612 static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_200mhz[] = {
613 	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
614 	0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78,
615 	0x1a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
616 	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
617 	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38,
618 	0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0x40, 0x84, 0x63, 0x00, 0x00, 0x1e,
619 	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
620 	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x32,
621 	0x46, 0x1e, 0x46, 0x0f, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
622 	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
623 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x7a, 0x02, 0x03, 0x15, 0xb1,
624 	0xe3, 0x05, 0x00, 0x20, 0x41, 0x10, 0xe2, 0x00, 0xca, 0x67, 0x03, 0x0c,
625 	0x00, 0x12, 0x34, 0x78, 0x28, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
626 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
627 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
628 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
629 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
630 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
631 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
632 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
633 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
634 	0x00, 0x00, 0x00, 0xd4
635 };
636 
637 /*
638  * edid-decode (hex):
639  *
640  * 00 ff ff ff ff ff ff 00 31 d8 2a 00 00 00 00 00
641  * 00 21 01 03 81 a0 5a 78 0a 00 00 00 00 00 00 00
642  * 00 00 00 20 00 00 01 01 01 01 01 01 01 01 01 01
643  * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
644  * 45 00 40 84 63 00 00 1e 00 00 00 fc 00 54 65 73
645  * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 32
646  * 46 1e 46 0f 00 0a 20 20 20 20 20 20 00 00 00 10
647  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 8a
648  *
649  * 02 03 15 b1 e3 05 00 20 41 10 e2 00 ca 67 03 0c
650  * 00 12 34 78 44 00 00 00 00 00 00 00 00 00 00 00
651  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
652  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
653  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
654  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
655  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
656  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 b8
657  *
658  * ----------------
659  *
660  * Block 0, Base EDID:
661  *   EDID Structure Version & Revision: 1.3
662  *   Vendor & Product Identification:
663  *     Manufacturer: LNX
664  *     Model: 42
665  *     Made in: 2023
666  *   Basic Display Parameters & Features:
667  *     Digital display
668  *     DFP 1.x compatible TMDS
669  *     Maximum image size: 160 cm x 90 cm
670  *     Gamma: 2.20
671  *     RGB color display
672  *     First detailed timing is the preferred timing
673  *   Color Characteristics:
674  *     Red  : 0.0000, 0.0000
675  *     Green: 0.0000, 0.0000
676  *     Blue : 0.0000, 0.0000
677  *     White: 0.0000, 0.0000
678  *   Established Timings I & II:
679  *     DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
680  *   Standard Timings: none
681  *   Detailed Timing Descriptors:
682  *     DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (1600 mm x 900 mm)
683  *                  Hfront   88 Hsync  44 Hback  148 Hpol P
684  *                  Vfront    4 Vsync   5 Vback   36 Vpol P
685  *     Display Product Name: 'Test EDID'
686  *     Display Range Limits:
687  *       Monitor ranges (GTF): 50-70 Hz V, 30-70 kHz H, max dotclock 150 MHz
688  *     Dummy Descriptor:
689  *   Extension blocks: 1
690  * Checksum: 0x8a
691  *
692  * ----------------
693  *
694  * Block 1, CTA-861 Extension Block:
695  *   Revision: 3
696  *   Underscans IT Video Formats by default
697  *   Supports YCbCr 4:4:4
698  *   Supports YCbCr 4:2:2
699  *   Native detailed modes: 1
700  *   Colorimetry Data Block:
701  *     sRGB
702  *   Video Data Block:
703  *     VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz
704  *   Video Capability Data Block:
705  *     YCbCr quantization: Selectable (via AVI YQ)
706  *     RGB quantization: Selectable (via AVI Q)
707  *     PT scan behavior: No Data
708  *     IT scan behavior: Always Underscanned
709  *     CE scan behavior: Always Underscanned
710  *   Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
711  *     Source physical address: 1.2.3.4
712  *     DC_48bit
713  *     DC_36bit
714  *     DC_30bit
715  *     DC_Y444
716  *     Maximum TMDS clock: 340 MHz
717  * Checksum: 0xb8  Unused space in Extension Block: 106 bytes
718  *
719  * ----------------
720  *
721  * edid-decode 1.30.0-5367
722  * edid-decode SHA: 41ebf7135691 2025-05-01 10:19:22
723  *
724  * EDID conformity: PASS
725  */
726 static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz[] = {
727 	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x2a, 0x00,
728 	0x00, 0x00, 0x00, 0x00, 0x00, 0x21, 0x01, 0x03, 0x81, 0xa0, 0x5a, 0x78,
729 	0x0a, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x20,
730 	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
731 	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38,
732 	0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0x40, 0x84, 0x63, 0x00, 0x00, 0x1e,
733 	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
734 	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x32,
735 	0x46, 0x1e, 0x46, 0x0f, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
736 	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
737 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x8a, 0x02, 0x03, 0x15, 0xb1,
738 	0xe3, 0x05, 0x00, 0x20, 0x41, 0x10, 0xe2, 0x00, 0xca, 0x67, 0x03, 0x0c,
739 	0x00, 0x12, 0x34, 0x78, 0x44, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
740 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
741 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
742 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
743 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
744 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
745 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
746 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
747 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
748 	0x00, 0x00, 0x00, 0xb8
749 };
750 
751 /*
752  * Max resolution:
753  * - 1920x1080@60Hz with RGB, YUV444, YUV422
754  * - 3840x2160@30Hz with YUV420 only
755  * Max BPC:         16 for all modes
756  * Max TMDS clock:  200 MHz
757  *
758  * edid-decode (hex):
759  *
760  * 00 ff ff ff ff ff ff 00 31 d8 34 00 00 00 00 00
761  * ff 23 01 03 80 60 36 78 0f ee 91 a3 54 4c 99 26
762  * 0f 50 54 20 00 00 01 01 01 01 01 01 01 01 01 01
763  * 01 01 01 01 01 01 02 3a 80 18 71 38 2d 40 58 2c
764  * 45 00 c0 1c 32 00 00 1e 00 00 00 fc 00 54 65 73
765  * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 18
766  * 55 18 5e 11 00 0a 20 20 20 20 20 20 00 00 00 10
767  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 bb
768  *
769  * 02 03 29 31 42 90 5f 6c 03 0c 00 10 00 78 28 20
770  * 00 00 01 03 6d d8 5d c4 01 28 80 07 00 00 00 00
771  * 00 00 e3 0f 00 00 e2 0e 5f 00 00 00 00 00 00 00
772  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
773  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
774  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
775  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
776  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ca
777  *
778  * ----------------
779  *
780  * Block 0, Base EDID:
781  *   EDID Structure Version & Revision: 1.3
782  *   Vendor & Product Identification:
783  *     Manufacturer: LNX
784  *     Model: 52
785  *     Model year: 2025
786  *   Basic Display Parameters & Features:
787  *     Digital display
788  *     Maximum image size: 96 cm x 54 cm
789  *     Gamma: 2.20
790  *     RGB color display
791  *     Default (sRGB) color space is primary color space
792  *     First detailed timing is the preferred timing
793  *     Supports GTF timings within operating range
794  *   Color Characteristics:
795  *     Red  : 0.6396, 0.3300
796  *     Green: 0.2998, 0.5996
797  *     Blue : 0.1503, 0.0595
798  *     White: 0.3125, 0.3291
799  *   Established Timings I & II:
800  *     DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
801  *   Standard Timings: none
802  *   Detailed Timing Descriptors:
803  *     DTD 1:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (960 mm x 540 mm)
804  *                  Hfront   88 Hsync  44 Hback  148 Hpol P
805  *                  Vfront    4 Vsync   5 Vback   36 Vpol P
806  *     Display Product Name: 'Test EDID'
807  *     Display Range Limits:
808  *       Monitor ranges (GTF): 24-85 Hz V, 24-94 kHz H, max dotclock 170 MHz
809  *     Dummy Descriptor:
810  *   Extension blocks: 1
811  * Checksum: 0xbb
812  *
813  * ----------------
814  *
815  * Block 1, CTA-861 Extension Block:
816  *   Revision: 3
817  *   Supports YCbCr 4:4:4
818  *   Supports YCbCr 4:2:2
819  *   Native detailed modes: 1
820  *   Video Data Block:
821  *     VIC  16:  1920x1080   60.000000 Hz  16:9     67.500 kHz    148.500000 MHz (native)
822  *     VIC  95:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz
823  *   Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
824  *     Source physical address: 1.0.0.0
825  *     DC_48bit
826  *     DC_36bit
827  *     DC_30bit
828  *     DC_Y444
829  *     Maximum TMDS clock: 200 MHz
830  *     Extended HDMI video details:
831  *   Vendor-Specific Data Block (HDMI Forum), OUI C4-5D-D8:
832  *     Version: 1
833  *     Maximum TMDS Character Rate: 200 MHz
834  *     SCDC Present
835  *     Supports 16-bits/component Deep Color 4:2:0 Pixel Encoding
836  *     Supports 12-bits/component Deep Color 4:2:0 Pixel Encoding
837  *     Supports 10-bits/component Deep Color 4:2:0 Pixel Encoding
838  *   YCbCr 4:2:0 Capability Map Data Block:
839  *     Empty Capability Map
840  *   YCbCr 4:2:0 Video Data Block:
841  *     VIC  95:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz
842  * Checksum: 0xca
843  */
844 static const unsigned char test_edid_hdmi_1080p_rgb_yuv_4k_yuv420_dc_max_200mhz[] = {
845 	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x34, 0x00,
846 	0x00, 0x00, 0x00, 0x00, 0xff, 0x23, 0x01, 0x03, 0x80, 0x60, 0x36, 0x78,
847 	0x0f, 0xee, 0x91, 0xa3, 0x54, 0x4c, 0x99, 0x26, 0x0f, 0x50, 0x54, 0x20,
848 	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
849 	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x02, 0x3a, 0x80, 0x18, 0x71, 0x38,
850 	0x2d, 0x40, 0x58, 0x2c, 0x45, 0x00, 0xc0, 0x1c, 0x32, 0x00, 0x00, 0x1e,
851 	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
852 	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x18,
853 	0x55, 0x18, 0x5e, 0x11, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
854 	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
855 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xbb, 0x02, 0x03, 0x29, 0x31,
856 	0x42, 0x90, 0x5f, 0x6c, 0x03, 0x0c, 0x00, 0x10, 0x00, 0x78, 0x28, 0x20,
857 	0x00, 0x00, 0x01, 0x03, 0x6d, 0xd8, 0x5d, 0xc4, 0x01, 0x28, 0x80, 0x07,
858 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xe3, 0x0f, 0x00, 0x00, 0xe2, 0x0e,
859 	0x5f, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
860 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
861 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
862 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
863 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
864 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
865 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
866 	0x00, 0x00, 0x00, 0xca
867 };
868 
869 /*
870  * Max resolution: 3840x2160@30Hz with RGB, YUV444, YUV422, YUV420
871  * Max BPC:        16 for all modes
872  * Max TMDS clock: 340 MHz
873  *
874  * edid-decode (hex):
875  *
876  * 00 ff ff ff ff ff ff 00 31 d8 34 00 00 00 00 00
877  * ff 23 01 03 80 60 36 78 0f ee 91 a3 54 4c 99 26
878  * 0f 50 54 20 00 00 01 01 01 01 01 01 01 01 01 01
879  * 01 01 01 01 01 01 04 74 00 30 f2 70 5a 80 b0 58
880  * 8a 00 40 84 63 00 00 1e 00 00 00 fc 00 54 65 73
881  * 74 20 45 44 49 44 0a 20 20 20 00 00 00 fd 00 18
882  * 55 18 5e 22 00 0a 20 20 20 20 20 20 00 00 00 10
883  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 ce
884  *
885  * 02 03 27 31 41 5f 6c 03 0c 00 10 00 78 44 20 00
886  * 00 01 03 6d d8 5d c4 01 44 80 07 00 00 00 00 00
887  * 00 e3 0f 01 00 e1 0e 00 00 00 00 00 00 00 00 00
888  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
889  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
890  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
891  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
892  * 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 84
893  *
894  * ----------------
895  *
896  * Block 0, Base EDID:
897  *   EDID Structure Version & Revision: 1.3
898  *   Vendor & Product Identification:
899  *     Manufacturer: LNX
900  *     Model: 52
901  *     Model year: 2025
902  *   Basic Display Parameters & Features:
903  *     Digital display
904  *     Maximum image size: 96 cm x 54 cm
905  *     Gamma: 2.20
906  *     RGB color display
907  *     Default (sRGB) color space is primary color space
908  *     First detailed timing is the preferred timing
909  *     Supports GTF timings within operating range
910  *   Color Characteristics:
911  *     Red  : 0.6396, 0.3300
912  *     Green: 0.2998, 0.5996
913  *     Blue : 0.1503, 0.0595
914  *     White: 0.3125, 0.3291
915  *   Established Timings I & II:
916  *     DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
917  *   Standard Timings: none
918  *   Detailed Timing Descriptors:
919  *     DTD 1:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz (1600 mm x 900 mm)
920  *                  Hfront  176 Hsync  88 Hback  296 Hpol P
921  *                  Vfront    8 Vsync  10 Vback   72 Vpol P
922  *     Display Product Name: 'Test EDID'
923  *     Display Range Limits:
924  *       Monitor ranges (GTF): 24-85 Hz V, 24-94 kHz H, max dotclock 340 MHz
925  *     Dummy Descriptor:
926  *   Extension blocks: 1
927  * Checksum: 0xce
928  *
929  * ----------------
930  *
931  * Block 1, CTA-861 Extension Block:
932  *   Revision: 3
933  *   Supports YCbCr 4:4:4
934  *   Supports YCbCr 4:2:2
935  *   Native detailed modes: 1
936  *   Video Data Block:
937  *     VIC  95:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz
938  *   Vendor-Specific Data Block (HDMI), OUI 00-0C-03:
939  *     Source physical address: 1.0.0.0
940  *     DC_48bit
941  *     DC_36bit
942  *     DC_30bit
943  *     DC_Y444
944  *     Maximum TMDS clock: 340 MHz
945  *     Extended HDMI video details:
946  *   Vendor-Specific Data Block (HDMI Forum), OUI C4-5D-D8:
947  *     Version: 1
948  *     Maximum TMDS Character Rate: 340 MHz
949  *     SCDC Present
950  *     Supports 16-bits/component Deep Color 4:2:0 Pixel Encoding
951  *     Supports 12-bits/component Deep Color 4:2:0 Pixel Encoding
952  *     Supports 10-bits/component Deep Color 4:2:0 Pixel Encoding
953  *   YCbCr 4:2:0 Capability Map Data Block:
954  *     VIC  95:  3840x2160   30.000000 Hz  16:9     67.500 kHz    297.000000 MHz
955  *   YCbCr 4:2:0 Video Data Block:
956  * Checksum: 0x84
957  */
958 static const unsigned char test_edid_hdmi_4k_rgb_yuv420_dc_max_340mhz[] = {
959 	0x00, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0x00, 0x31, 0xd8, 0x34, 0x00,
960 	0x00, 0x00, 0x00, 0x00, 0xff, 0x23, 0x01, 0x03, 0x80, 0x60, 0x36, 0x78,
961 	0x0f, 0xee, 0x91, 0xa3, 0x54, 0x4c, 0x99, 0x26, 0x0f, 0x50, 0x54, 0x20,
962 	0x00, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
963 	0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x04, 0x74, 0x00, 0x30, 0xf2, 0x70,
964 	0x5a, 0x80, 0xb0, 0x58, 0x8a, 0x00, 0x40, 0x84, 0x63, 0x00, 0x00, 0x1e,
965 	0x00, 0x00, 0x00, 0xfc, 0x00, 0x54, 0x65, 0x73, 0x74, 0x20, 0x45, 0x44,
966 	0x49, 0x44, 0x0a, 0x20, 0x20, 0x20, 0x00, 0x00, 0x00, 0xfd, 0x00, 0x18,
967 	0x55, 0x18, 0x5e, 0x22, 0x00, 0x0a, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
968 	0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
969 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0xce, 0x02, 0x03, 0x27, 0x31,
970 	0x41, 0x5f, 0x6c, 0x03, 0x0c, 0x00, 0x10, 0x00, 0x78, 0x44, 0x20, 0x00,
971 	0x00, 0x01, 0x03, 0x6d, 0xd8, 0x5d, 0xc4, 0x01, 0x44, 0x80, 0x07, 0x00,
972 	0x00, 0x00, 0x00, 0x00, 0x00, 0xe3, 0x0f, 0x01, 0x00, 0xe1, 0x0e, 0x00,
973 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
974 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
975 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
976 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
977 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
978 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
979 	0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
980 	0x00, 0x00, 0x00, 0x84
981 };
982 
983 #endif // DRM_KUNIT_EDID_H_
984