forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 86
/
isp-imx558-cfg0.dtsi
108 lines (102 loc) · 2.26 KB
/
isp-imx558-cfg0.dtsi
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
// SPDX-License-Identifier: GPL-2.0+ OR MIT
/*
* ISP configuration for platforms with IMX558 sensor in
* config #0 mode.
*
* These platforms enable MLVNR for all configs except
* #0, which we don't support. Config #0 is an uncropped
* square 1920x1920 sensor, with dark corners.
* Therefore, we synthesize common resolutions by using
* crop/scale while always choosing config #0.
*
* Copyright The Asahi Linux Contributors
*/
/ {
aliases {
isp = &isp;
};
};
&isp_dart0 {
status = "okay";
};
&isp_dart1 {
status = "okay";
};
&isp_dart2 {
status = "okay";
};
&isp {
status = "okay";
sensor-presets {
/* 1920x1080 */
preset0 {
apple,config-index = <0>;
apple,input-size = <1920 1920>;
apple,output-size = <1920 1080>;
apple,crop = <0 420 1920 1080>;
};
/* 1080x1920 */
preset1 {
apple,config-index = <0>;
apple,input-size = <1920 1920>;
apple,output-size = <1080 1920>;
apple,crop = <420 0 1080 1920>;
};
/* 1920x1440 */
preset2 {
apple,config-index = <0>;
apple,input-size = <1920 1920>;
apple,output-size = <1920 1440>;
apple,crop = <0 240 1920 1440>;
};
/* 1440x1920 */
preset3 {
apple,config-index = <0>;
apple,input-size = <1920 1920>;
apple,output-size = <1440 1920>;
apple,crop = <240 0 1440 1920>;
};
/* 1280x720 */
preset4 {
apple,config-index = <0>;
apple,input-size = <1920 1920>;
apple,output-size = <1280 720>;
apple,crop = <0 420 1920 1080>;
};
/* 720x1280 */
preset5 {
apple,config-index = <0>;
apple,input-size = <1920 1920>;
apple,output-size = <720 1280>;
apple,crop = <420 0 1080 1920>;
};
/* 1280x960 */
preset6 {
apple,config-index = <0>;
apple,input-size = <1920 1920>;
apple,output-size = <1280 960>;
apple,crop = <0 240 1920 1440>;
};
/* 960x1280 */
preset7 {
apple,config-index = <0>;
apple,input-size = <1920 1920>;
apple,output-size = <960 1280>;
apple,crop = <240 0 1440 1920>;
};
/* 640x480 */
preset8 {
apple,config-index = <0>;
apple,input-size = <1920 1920>;
apple,output-size = <640 480>;
apple,crop = <0 240 1920 1440>;
};
/* 480x640 */
preset9 {
apple,config-index = <0>;
apple,input-size = <1920 1920>;
apple,output-size = <480 640>;
apple,crop = <240 0 1440 1920>;
};
};
};