pine64,pinephone-pro.conf 6.9 KB

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