Ver Fonte

Add more device support

Martijn Braam há 11 meses atrás
pai
commit
e34190e6e9
2 ficheiros alterados com 108 adições e 0 exclusões
  1. 62 0
      config/pine64,pinetab.conf
  2. 46 0
      config/purism,librem5.conf

+ 62 - 0
config/pine64,pinetab.conf

@@ -0,0 +1,62 @@
+Version = 1;
+Make: "PINE64";
+Model: "PinePhone";
+
+Rear: {
+    SensorDriver: "ov5640";
+    BridgeDriver: "sun6i-csi";
+    FlashPath: "/sys/class/leds/white:flash";
+    IsoMin: 100;
+    IsoMax: 64000;
+
+    Modes: (
+        {
+            Width: 2592;
+            Height: 1944;
+            Rate: 15;
+            Format: "BGGR8";
+            Rotate: 270;
+            FocalLength: 3.33;
+            FNumber: 3.0;
+
+            Pipeline: (
+                {Type: "Link", From: "ov5640", FromPad: 0, To: "sun6i-csi", ToPad: 0},
+                {Type: "Mode", Entity: "ov5640", Width: 2592, Height: 1944, Format: "BGGR8"},
+            );
+        },
+        {
+            Width: 1280;
+            Height: 720;
+            Rate: 30;
+            Format: "BGGR8";
+            FocalLength: 3.33;
+            FNumber: 3.0;
+
+            Pipeline: (
+                {Type: "Link", From: "ov5640", FromPad: 0, To: "sun6i-csi", ToPad: 0},
+            );
+
+        }
+    );
+};
+
+Front: {
+    SensorDriver: "gc2145";
+    BridgeDriver: "sun6i-csi";
+    FlashDisplay: true;
+
+    Modes: (
+        {
+            Width: 1280;
+            Height: 960;
+            Rate: 60;
+            Format: "BGGR8";
+            Rotate: 90;
+            Mirror: true;
+
+            Pipeline: (
+                {Type: "Link", From: "gc2145", FromPad: 0, To: "sun6i-csi", ToPad: 0},
+            );
+        }
+    );
+};

+ 46 - 0
config/purism,librem5.conf

@@ -0,0 +1,46 @@
+Version = 1;
+Make: "Purism";
+Model: "Librem 5";
+
+Rear: {
+    SensorDriver: "s5k3l6xx";
+    BridgeDriver: "imx7-csi";
+
+    Modes: (
+        {
+            Width: 4208;
+            Height: 3120;
+            Rate: 15;
+            Format: "GRBG8";
+            Rotate: 0;
+
+            # All the links on this platform are immutable
+            Pipeline: (
+                {Type: "Mode", Entity: "imx8mq-mipi-csi2"},
+                {Type: "Mode", Entity: "csi"},
+            );
+        },
+    );
+};
+
+Front: {
+    SensorDriver: "hi846";
+    BridgeDriver: "imx7-csi";
+    FlashDisplay: true;
+
+    Modes: (
+        {
+            Width: 1280;
+            Height: 960;
+            Rate: 60;
+            Format: "BGGR8";
+            Rotate: 90;
+            Mirror: true;
+
+            Pipeline: (
+                {Type: "Mode", Entity: "imx8mq-mipi-csi2"},
+                {Type: "Mode", Entity: "csi"},
+            );
+        }
+    );
+};