|
| 1 | +// SPDX-License-Identifier: GPL-2.0+ OR MIT |
| 2 | +/* |
| 3 | + * ISP configuration for platforms with IMX558 sensor in |
| 4 | + * config #0 mode. |
| 5 | + * |
| 6 | + * These platforms enable MLVNR for all configs except |
| 7 | + * #0, which we don't support. Config #0 is an uncropped |
| 8 | + * square 1920x1920 sensor, with dark corners. |
| 9 | + * Therefore, we synthesize common resolutions by using |
| 10 | + * crop/scale while always choosing config #0. |
| 11 | + * |
| 12 | + * Copyright The Asahi Linux Contributors |
| 13 | + */ |
| 14 | + |
| 15 | +#include "isp-common.dtsi" |
| 16 | + |
| 17 | +&isp { |
| 18 | + apple,temporal-filter = <0>; |
| 19 | + |
| 20 | + sensor-presets { |
| 21 | + /* 1920x1080 */ |
| 22 | + preset0 { |
| 23 | + apple,config-index = <0>; |
| 24 | + apple,input-size = <1920 1920>; |
| 25 | + apple,output-size = <1920 1080>; |
| 26 | + apple,crop = <0 420 1920 1080>; |
| 27 | + }; |
| 28 | + /* 1080x1920 */ |
| 29 | + preset1 { |
| 30 | + apple,config-index = <0>; |
| 31 | + apple,input-size = <1920 1920>; |
| 32 | + apple,output-size = <1080 1920>; |
| 33 | + apple,crop = <420 0 1080 1920>; |
| 34 | + }; |
| 35 | + /* 1920x1440 */ |
| 36 | + preset2 { |
| 37 | + apple,config-index = <0>; |
| 38 | + apple,input-size = <1920 1920>; |
| 39 | + apple,output-size = <1920 1440>; |
| 40 | + apple,crop = <0 240 1920 1440>; |
| 41 | + }; |
| 42 | + /* 1440x1920 */ |
| 43 | + preset3 { |
| 44 | + apple,config-index = <0>; |
| 45 | + apple,input-size = <1920 1920>; |
| 46 | + apple,output-size = <1440 1920>; |
| 47 | + apple,crop = <240 0 1440 1920>; |
| 48 | + }; |
| 49 | + /* 1280x720 */ |
| 50 | + preset4 { |
| 51 | + apple,config-index = <0>; |
| 52 | + apple,input-size = <1920 1920>; |
| 53 | + apple,output-size = <1280 720>; |
| 54 | + apple,crop = <0 420 1920 1080>; |
| 55 | + }; |
| 56 | + /* 720x1280 */ |
| 57 | + preset5 { |
| 58 | + apple,config-index = <0>; |
| 59 | + apple,input-size = <1920 1920>; |
| 60 | + apple,output-size = <720 1280>; |
| 61 | + apple,crop = <420 0 1080 1920>; |
| 62 | + }; |
| 63 | + /* 1280x960 */ |
| 64 | + preset6 { |
| 65 | + apple,config-index = <0>; |
| 66 | + apple,input-size = <1920 1920>; |
| 67 | + apple,output-size = <1280 960>; |
| 68 | + apple,crop = <0 240 1920 1440>; |
| 69 | + }; |
| 70 | + /* 960x1280 */ |
| 71 | + preset7 { |
| 72 | + apple,config-index = <0>; |
| 73 | + apple,input-size = <1920 1920>; |
| 74 | + apple,output-size = <960 1280>; |
| 75 | + apple,crop = <240 0 1440 1920>; |
| 76 | + }; |
| 77 | + /* 640x480 */ |
| 78 | + preset8 { |
| 79 | + apple,config-index = <0>; |
| 80 | + apple,input-size = <1920 1920>; |
| 81 | + apple,output-size = <640 480>; |
| 82 | + apple,crop = <0 240 1920 1440>; |
| 83 | + }; |
| 84 | + /* 480x640 */ |
| 85 | + preset9 { |
| 86 | + apple,config-index = <0>; |
| 87 | + apple,input-size = <1920 1920>; |
| 88 | + apple,output-size = <480 640>; |
| 89 | + apple,crop = <240 0 1440 1920>; |
| 90 | + }; |
| 91 | + }; |
| 92 | +}; |
0 commit comments