pine64,pinephone-pro.conf 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. Version = 1;
  2. Make: "PINE64";
  3. Model: "PinePhone Pro";
  4. Rear: {
  5. SensorDriver: "imx258";
  6. BridgeDriver: "rkisp1";
  7. Modes: (
  8. {
  9. Width: 4208;
  10. Height: 3120;
  11. Rate: 30;
  12. Format: "RGGB8";
  13. Rotate: 270;
  14. FocalLength: 3.33;
  15. FNumber: 3.0;
  16. Pipeline: (
  17. {Type: "Link", From: "imx258", FromPad: 0, To: "rkisp1_csi", ToPad: 0},
  18. {Type: "Link", From: "rkisp1_csi", FromPad: 1, To: "rkisp1_isp", ToPad: 0},
  19. {Type: "Link", From: "rkisp1_isp", FromPad: 2, To: "rkisp1_resizer_mainpath", ToPad: 0},
  20. {Type: "Mode", Entity: "imx258", Format: "RGGB10P"},
  21. {Type: "Mode", Entity: "rkisp1_csi"},
  22. {Type: "Mode", Entity: "rkisp1_isp"},
  23. {Type: "Mode", Entity: "rkisp1_isp", Pad: 2, Format: "RGGB8"},
  24. {Type: "Crop", Entity: "rkisp1_isp"}, # Cropped by default
  25. {Type: "Crop", Entity: "rkisp1_isp", Pad: 2}, # Cropped by default
  26. {Type: "Mode", Entity: "rkisp1_resizer_mainpath"},
  27. {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1}
  28. );
  29. },
  30. # { # Doesn't work in megapixels yet
  31. # Width: 4208;
  32. # Height: 3120;
  33. # Rate: 30;
  34. # Format: "RGGB10";
  35. # Rotate: 270;
  36. # FocalLength: 3.33;
  37. # FNumber: 3.0;
  38. # Pipeline: (
  39. # {Type: "Link", From: "imx258", FromPad: 0, To: "rkisp1_csi", ToPad: 0},
  40. # {Type: "Link", From: "rkisp1_csi", FromPad: 1, To: "rkisp1_isp", ToPad: 0},
  41. # {Type: "Link", From: "rkisp1_isp", FromPad: 2, To: "rkisp1_resizer_mainpath", ToPad: 0},
  42. # {Type: "Mode", Entity: "imx258", Format: "RGGB10P"},
  43. # {Type: "Mode", Entity: "rkisp1_csi"},
  44. # {Type: "Mode", Entity: "rkisp1_isp"},
  45. # {Type: "Mode", Entity: "rkisp1_isp", Pad: 2, Format: "RGGB10"},
  46. # {Type: "Crop", Entity: "rkisp1_isp"}, # Cropped by default
  47. # {Type: "Crop", Entity: "rkisp1_isp", Pad: 2}, # Cropped by default
  48. # {Type: "Mode", Entity: "rkisp1_resizer_mainpath"},
  49. # {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1}
  50. # );
  51. # },
  52. {
  53. Width: 1048;
  54. Height: 780;
  55. Rate: 30;
  56. Format: "RGGB8";
  57. Rotate: 270;
  58. FocalLength: 3.33;
  59. FNumber: 3.0;
  60. Pipeline: (
  61. {Type: "Link", From: "imx258", FromPad: 0, To: "rkisp1_csi", ToPad: 0},
  62. {Type: "Link", From: "rkisp1_csi", FromPad: 1, To: "rkisp1_isp", ToPad: 0},
  63. {Type: "Link", From: "rkisp1_isp", FromPad: 2, To: "rkisp1_resizer_mainpath", ToPad: 0},
  64. {Type: "Mode", Entity: "imx258", Format: "RGGB10P"},
  65. {Type: "Mode", Entity: "rkisp1_csi", Pad: 0},
  66. {Type: "Mode", Entity: "rkisp1_isp", Pad: 0},
  67. {Type: "Mode", Entity: "rkisp1_isp", Pad: 2, Format: "RGGB8"},
  68. {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 0},
  69. {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1},
  70. {Type: "Crop", Entity: "rkisp1_isp", Pad: 0},
  71. {Type: "Crop", Entity: "rkisp1_isp", Pad: 2},
  72. {Type: "Crop", Entity: "rkisp1_resizer_mainpath", Pad: 0},
  73. );
  74. },
  75. );
  76. };
  77. Front: {
  78. SensorDriver: "ov8858";
  79. BridgeDriver: "rkisp1";
  80. Modes: (
  81. {
  82. Width: 3264;
  83. Height: 2448;
  84. Rate: 30;
  85. Format: "BGGR8";
  86. Rotate: 90;
  87. FocalLength: 3.33;
  88. FNumber: 3.0;
  89. Pipeline: (
  90. {Type: "Link", From: "ov8858", FromPad: 0, To: "rkisp1_csi", ToPad: 0},
  91. {Type: "Link", From: "rkisp1_csi", FromPad: 1, To: "rkisp1_isp", ToPad: 0},
  92. {Type: "Link", From: "rkisp1_isp", FromPad: 2, To: "rkisp1_resizer_mainpath", ToPad: 0},
  93. {Type: "Mode", Entity: "ov8858", Format: "BGGR10"},
  94. {Type: "Mode", Entity: "rkisp1_csi"},
  95. {Type: "Mode", Entity: "rkisp1_isp"},
  96. {Type: "Mode", Entity: "rkisp1_isp", Pad: 2, Format: "BGGR8"},
  97. {Type: "Crop", Entity: "rkisp1_isp"}, # Cropped by default
  98. {Type: "Crop", Entity: "rkisp1_isp", Pad: 2}, # Cropped by default
  99. {Type: "Mode", Entity: "rkisp1_resizer_mainpath"},
  100. {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1}
  101. );
  102. },
  103. # { # Doesn't work in megapixels yet
  104. # Width: 3264;
  105. # Height: 2448;
  106. # Rate: 30;
  107. # Format: "BGGR10";
  108. # Rotate: 270;
  109. # FocalLength: 3.33;
  110. # FNumber: 3.0;
  111. # Pipeline: (
  112. # {Type: "Link", From: "ov8858", FromPad: 0, To: "rkisp1_csi", ToPad: 0},
  113. # {Type: "Link", From: "rkisp1_csi", FromPad: 1, To: "rkisp1_isp", ToPad: 0},
  114. # {Type: "Link", From: "rkisp1_isp", FromPad: 2, To: "rkisp1_resizer_mainpath", ToPad: 0},
  115. # {Type: "Mode", Entity: "ov8858", Format: "BGGR10"},
  116. # {Type: "Mode", Entity: "rkisp1_csi"},
  117. # {Type: "Mode", Entity: "rkisp1_isp"},
  118. # {Type: "Mode", Entity: "rkisp1_isp", Pad: 2},
  119. # {Type: "Crop", Entity: "rkisp1_isp"}, # Cropped by default
  120. # {Type: "Crop", Entity: "rkisp1_isp", Pad: 2}, # Cropped by default
  121. # {Type: "Mode", Entity: "rkisp1_resizer_mainpath"},
  122. # {Type: "Mode", Entity: "rkisp1_resizer_mainpath", Pad: 1}
  123. # );
  124. # },
  125. # { # Doesn't work in megapixels yet
  126. # Width: 1632;
  127. # Height: 1224;
  128. # Rate: 30;
  129. # Format: "YUYV";
  130. # Rotate: 270;
  131. # FocalLength: 3.33;
  132. # FNumber: 3.0;
  133. # Pipeline: (
  134. # {Type: "Link", From: "ov8858", FromPad: 0, To: "rkisp1_csi", ToPad: 0},
  135. # {Type: "Link", From: "rkisp1_csi", FromPad: 1, To: "rkisp1_isp", ToPad: 0},
  136. # {Type: "Link", From: "rkisp1_isp", FromPad: 2, To: "rkisp1_resizer_selfpath", ToPad: 0},
  137. # {Type: "Mode", Entity: "ov8858", Format: "BGGR10"},
  138. # {Type: "Mode", Entity: "rkisp1_csi"},
  139. # {Type: "Mode", Entity: "rkisp1_isp"},
  140. # {Type: "Mode", Entity: "rkisp1_isp", Pad: 2, Format: "YUYV"},
  141. # {Type: "Crop", Entity: "rkisp1_isp"}, # Cropped by default
  142. # {Type: "Crop", Entity: "rkisp1_isp", Pad: 2}, # Cropped by default
  143. # {Type: "Mode", Entity: "rkisp1_resizer_selfpath"},
  144. # {Type: "Mode", Entity: "rkisp1_resizer_selfpath", Pad: 1}
  145. # );
  146. # }
  147. );
  148. };