Pārlūkot izejas kodu

Convert msm8953 Xiaomis config

Convert msm8953 xiaomis configurations from megpixels legacy.
Barnabás Czémán 5 mēneši atpakaļ
vecāks
revīzija
73418a6c1b

+ 30 - 0
config/xiaomi,daisy.conf

@@ -0,0 +1,30 @@
+Version = 1;
+Make: "Xiaomi";
+Model: "Mi A2 Lite";
+
+Front: {
+    SensorDriver: "ov5675";
+    BridgeDriver: "qcom-camss";
+
+    Modes: (
+        {
+            Width: 2592;
+            Height: 1944;
+            Rate: 30;
+            Format: "GRBG10p";
+            Rotate: 270;
+            Mirror: true;
+
+            Pipeline: (
+                {Type: "Link", From: "msm_csiphy2", FromPad: 1, To: "msm_csid0", ToPad: 0},
+                {Type: "Link", From: "msm_csid0", FromPad: 1, To: "msm_ispif0", ToPad: 0},
+                {Type: "Link", From: "msm_ispif0", FromPad: 1, To: "msm_vfe0_rdi0", ToPad: 0},
+                {Type: "Mode", Entity: "ov5675"},
+                {Type: "Mode", Entity: "msm_csiphy2"},
+                {Type: "Mode", Entity: "msm_csid0"},
+                {Type: "Mode", Entity: "msm_ispif0"},
+                {Type: "Mode", Entity: "msm_vfe0_rdi0"}
+            );
+        }
+    );
+};

+ 74 - 0
config/xiaomi,markw.conf

@@ -0,0 +1,74 @@
+Version = 1;
+Make: "Xiaomi";
+Model: "Redmi 4 Prime";
+
+Front: {
+    SensorDriver: "ov5670";
+    BridgeDriver: "qcom-camss";
+
+    Modes: (
+        {
+            Width: 2592;
+            Height: 1944;
+            Rate: 30;
+            Format: "GRBG10p";
+            Rotate: 90;
+            Mirror: true;
+
+            Pipeline: (
+                {Type: "Link", From: "msm_csiphy2", FromPad: 1, To: "msm_csid0", ToPad: 0},
+                {Type: "Link", From: "msm_csid0", FromPad: 1, To: "msm_ispif0", ToPad: 0},
+                {Type: "Link", From: "msm_ispif0", FromPad: 1, To: "msm_vfe0_rdi0", ToPad: 0},
+                {Type: "Mode", Entity: "ov5670"},
+                {Type: "Mode", Entity: "msm_csiphy2"},
+                {Type: "Mode", Entity: "msm_csid0"},
+                {Type: "Mode", Entity: "msm_ispif0"},
+                {Type: "Mode", Entity: "msm_vfe0_rdi0"}
+            );
+        }
+    );
+};
+
+Rear: {
+    SensorDriver: "s5k3l8";
+    BridgeDriver: "qcom-camss";
+
+    Modes: (
+        {
+            Width: 4208;
+            Height: 3120;
+            Rate: 30;
+            Format: "GRBG10p";
+            Rotate: 270;
+
+            Pipeline: (
+                {Type: "Link", From: "msm_csiphy0", FromPad: 1, To: "msm_csid0", ToPad: 0},
+                {Type: "Link", From: "msm_csid0", FromPad: 1, To: "msm_ispif0", ToPad: 0},
+                {Type: "Link", From: "msm_ispif0", FromPad: 1, To: "msm_vfe0_rdi0", ToPad: 0},
+                {Type: "Mode", Entity: "s5k3l8"},
+                {Type: "Mode", Entity: "msm_csiphy0"},
+                {Type: "Mode", Entity: "msm_csid0"},
+                {Type: "Mode", Entity: "msm_ispif0"},
+                {Type: "Mode", Entity: "msm_vfe0_rdi0"}
+            );
+        },
+        {
+            Width: 1280;
+            Height: 720;
+            Rate: 120;
+            Format: "GRBG10p";
+            Rotate: 270;
+
+            Pipeline: (
+                {Type: "Link", From: "msm_csiphy0", FromPad: 1, To: "msm_csid0", ToPad: 0},
+                {Type: "Link", From: "msm_csid0", FromPad: 1, To: "msm_ispif0", ToPad: 0},
+                {Type: "Link", From: "msm_ispif0", FromPad: 1, To: "msm_vfe0_rdi0", ToPad: 0},
+                {Type: "Mode", Entity: "s5k3l8"},
+                {Type: "Mode", Entity: "msm_csiphy0"},
+                {Type: "Mode", Entity: "msm_csid0"},
+                {Type: "Mode", Entity: "msm_ispif0"},
+                {Type: "Mode", Entity: "msm_vfe0_rdi0"}
+            );
+        }
+    );
+};

+ 47 - 0
config/xiaomi,mido.conf

@@ -0,0 +1,47 @@
+Version = 1;
+Make: "Xiaomi";
+Model: "Redmi Note 4";
+
+Rear: {
+    SensorDriver: "s5k3l8";
+    BridgeDriver: "qcom-camss";
+
+    Modes: (
+        {
+            Width: 4208;
+            Height: 3120;
+            Rate: 30;
+            Format: "GRBG10p";
+            Rotate: 270;
+
+            Pipeline: (
+                {Type: "Link", From: "msm_csiphy0", FromPad: 1, To: "msm_csid0", ToPad: 0},
+                {Type: "Link", From: "msm_csid0", FromPad: 1, To: "msm_ispif0", ToPad: 0},
+                {Type: "Link", From: "msm_ispif0", FromPad: 1, To: "msm_vfe0_rdi0", ToPad: 0},
+                {Type: "Mode", Entity: "s5k3l8"},
+                {Type: "Mode", Entity: "msm_csiphy0"},
+                {Type: "Mode", Entity: "msm_csid0"},
+                {Type: "Mode", Entity: "msm_ispif0"},
+                {Type: "Mode", Entity: "msm_vfe0_rdi0"}
+            );
+        },
+        {
+            Width: 1280;
+            Height: 720;
+            Rate: 120;
+            Format: "GRBG10p";
+            Rotate: 270;
+
+            Pipeline: (
+                {Type: "Link", From: "msm_csiphy0", FromPad: 1, To: "msm_csid0", ToPad: 0},
+                {Type: "Link", From: "msm_csid0", FromPad: 1, To: "msm_ispif0", ToPad: 0},
+                {Type: "Link", From: "msm_ispif0", FromPad: 1, To: "msm_vfe0_rdi0", ToPad: 0},
+                {Type: "Mode", Entity: "s5k3l8"},
+                {Type: "Mode", Entity: "msm_csiphy0"},
+                {Type: "Mode", Entity: "msm_csid0"},
+                {Type: "Mode", Entity: "msm_ispif0"},
+                {Type: "Mode", Entity: "msm_vfe0_rdi0"}
+            );
+        }
+    );
+};

+ 30 - 0
config/xiaomi,rosy.conf

@@ -0,0 +1,30 @@
+Version = 1;
+Make: "Xiaomi";
+Model: "Redmi 5";
+
+Front: {
+    SensorDriver: "ov5675";
+    BridgeDriver: "qcom-camss";
+
+    Modes: (
+        {
+            Width: 2592;
+            Height: 1944;
+            Rate: 30;
+            Format: "GRBG10p";
+            Rotate: 270;
+            Mirror: true;
+
+            Pipeline: (
+                {Type: "Link", From: "msm_csiphy2", FromPad: 1, To: "msm_csid0", ToPad: 0},
+                {Type: "Link", From: "msm_csid0", FromPad: 1, To: "msm_ispif0", ToPad: 0},
+                {Type: "Link", From: "msm_ispif0", FromPad: 1, To: "msm_vfe0_rdi0", ToPad: 0},
+                {Type: "Mode", Entity: "ov5675"},
+                {Type: "Mode", Entity: "msm_csiphy2"},
+                {Type: "Mode", Entity: "msm_csid0"},
+                {Type: "Mode", Entity: "msm_ispif0"},
+                {Type: "Mode", Entity: "msm_vfe0_rdi0"}
+            );
+        }
+    );
+};

+ 30 - 0
config/xiaomi,vince.conf

@@ -0,0 +1,30 @@
+Version = 1;
+Make: "Xiaomi";
+Model: "Redmi 5 Plus";
+
+Front: {
+    SensorDriver: "ov5675";
+    BridgeDriver: "qcom-camss";
+
+    Modes: (
+        {
+            Width: 2592;
+            Height: 1944;
+            Rate: 30;
+            Format: "GRBG10p";
+            Rotate: 90;
+            Mirror: true;
+
+            Pipeline: (
+                {Type: "Link", From: "msm_csiphy2", FromPad: 1, To: "msm_csid0", ToPad: 0},
+                {Type: "Link", From: "msm_csid0", FromPad: 1, To: "msm_ispif0", ToPad: 0},
+                {Type: "Link", From: "msm_ispif0", FromPad: 1, To: "msm_vfe0_rdi0", ToPad: 0},
+                {Type: "Mode", Entity: "ov5675"},
+                {Type: "Mode", Entity: "msm_csiphy2"},
+                {Type: "Mode", Entity: "msm_csid0"},
+                {Type: "Mode", Entity: "msm_ispif0"},
+                {Type: "Mode", Entity: "msm_vfe0_rdi0"}
+            );
+        }
+    );
+};

+ 6 - 1
meson.build

@@ -87,9 +87,14 @@ install_data(
         'config/pine64,pinephone-pro.conf',
         'config/pine64,pinetab.conf',
         'config/purism,librem5.conf',
+        'config/xiaomi,daisy.conf',
+        'config/xiaomi,markw.conf',
+        'config/xiaomi,mido.conf',
+        'config/xiaomi,rosy.conf',
         'config/xiaomi,scorpio.conf',
+        'config/xiaomi,vince.conf',
     ],
     install_dir: get_option('datadir') / 'megapixels/config/'
 )
 
-subdir('tests')
+subdir('tests')