当前位置:   article > 正文

RK3576 Camera:资源介绍

rk3576

RK3576是RK今年上市的中高端旗舰芯片,定位弱于RK3588。这篇文章主要分享一下RK3576这颗主控芯片的camera资源。

(1)RK3576 camera资源

①RK3576 camera硬件框图

RK3576的camera硬件框图如图所示,拥有一路4lane的DCPHY,2路4lane的DPHY,可以拆分成4路2lane的模式,还有一路DVP并口,可以支持BT1120/BT656/BT601接口视频数据。有一个ISP控制器。

②MIPI-CSI资源

RK3576 MIPI-CSI资源如下,有1路DCPHY,2路DPHY,其中2路DPHY都可以拆成2lane+2lane的模式使用,共计5个MIPI-CSI HOST,可支持接入5个MIPI camera设备,2lane的场景,最大带宽为5G/bps,4lane场景,最大带宽为10Gbps,YUV422的图像输入的话,例如HDMIIN转接芯片,可以支持到4K60。DCPHY可以作为DPHY 4lane输入也可以作为CPHY 3trios输入,CPHY的场景带宽可达到17Gbps。

typeMAX bandwidthnummode
DPHYDPHY-v1.22.5Gbps/lane24lane or 2lane+2lane
DCPHYDPHY-v2.0 or CPHY-v1.1

2.5Gbps/lane

2.5Gsps/trios

1DPHY or CPHY
③VICAP资源
接口数量输入输出
vicap

5个MIPI

1个DVP

MIPI CSI: RAW8/10/12/14/16, RGB888, YUV422 8bit, YUV422 8bit interlaced, YUV420 8bit, Legacy YUV420 8bit

DVP:BT.601 RAW8/10/12 YCbCr 422 8-bit input

BT.656 YCbCr 422 8-bit progressive/interlaced input

BT.1120 YCbCr 422 8-bit progressive/interlaced input

NV16/NV12/YUV400/YUYV

紧凑/非紧凑 RAW

RGB888

④ISP资源
工作模式吞吐率最大分辨率输入格式
单cis

16M@30fps

48M@10fps

4672x3504

8064x6048

VICAP: raw8/raw10/raw12
⑤VPSS

看RK3576的描述,在ISP后级应该还有VPSS模块,可以做图像处理,但是目前RK官方似乎也没有描述RK3576该模块的功能以及使用方法。以下是网上海思VPSS模块的描述。

根据网上对海思VPSS模块的描述:VPSS(Video Process Sub-System)支持对一幅输入图像进行统一预处理,如去噪、去隔行等,然后再对各通道分别进行缩放、锐化等处理,最后输出多种不同分辨率的图像。

根据RK的描述,应该是可以支持旋转镜像裁减多路输出等功能。

⑥最多支持camera数量

RK3576最多可以支持5个MIPIcamera,一个DVP的camera,对应链接框图如下,两路DPHY分别使用2lane+2lane的方式,如果是YUV的sensor,仅需要链接到rkcif_mipi_lvds节点即可,不需要接到stdif虚拟节点。

若采用4lane的方式链接如下:

(2)dts配置

根据上述,RK3576至多可以同时接入5路 MIPI摄像头,下篇文章再介绍。可参考如下:

  1. &csi2_dcphy0 {
  2. status = "okay";
  3. ports {
  4. #address-cells = <1>;
  5. #size-cells = <0>;
  6. port@0 {
  7. reg = <0>;
  8. #address-cells = <1>;
  9. #size-cells = <0>;
  10. mipi_in_gc05a2: endpoint@1 {
  11. reg = <1>;
  12. remote-endpoint = <&gc05a2_out0>;
  13. data-lanes = <1 2 3 4>;
  14. };
  15. };
  16. port@1 {
  17. reg = <1>;
  18. #address-cells = <1>;
  19. #size-cells = <0>;
  20. csidcphy0_out: endpoint@0 {
  21. reg = <0>;
  22. remote-endpoint = <&mipi0_csi2_input>;
  23. };
  24. };
  25. };
  26. };
  27. &csi2_dphy3 {
  28. status = "okay";
  29. ports {
  30. #address-cells = <1>;
  31. #size-cells = <0>;
  32. port@0 {
  33. reg = <0>;
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. mipi_in_s5k3l8xx: endpoint@1 {
  37. reg = <1>;
  38. remote-endpoint = <&s5k3l8xx_out0>;
  39. data-lanes = <1 2 3 4>;
  40. };
  41. mipi_in_ov16880: endpoint@2 {
  42. reg = <2>;
  43. remote-endpoint = <&ov16880_out0>;
  44. data-lanes = <1 2 3 4>;
  45. };
  46. };
  47. port@1 {
  48. reg = <1>;
  49. #address-cells = <1>;
  50. #size-cells = <0>;
  51. csidphy3_out: endpoint@0 {
  52. reg = <0>;
  53. remote-endpoint = <&mipi3_csi2_input>;
  54. };
  55. };
  56. };
  57. };
  58. &csi2_dphy0_hw {
  59. status = "okay";
  60. };
  61. &csi2_dphy1_hw {
  62. status = "okay";
  63. };
  64. &i2c4 {
  65. status = "okay";
  66. pinctrl-0 = <&i2c4m3_xfer>;
  67. gc05a2: gc05a2@37 {
  68. compatible = "galaxycore,gc05a2";
  69. status = "okay";
  70. reg = <0x37>;
  71. clocks = <&cru CLK_MIPI_CAMERAOUT_M0>;
  72. clock-names = "xvclk";
  73. pinctrl-names = "default";
  74. pinctrl-0 = <&cam_clk0m0_clk0>;
  75. pwdn-gpios = <&gpio3 RK_PC7 GPIO_ACTIVE_HIGH>;
  76. reset-gpios = <&gpio3 RK_PA6 GPIO_ACTIVE_HIGH>;
  77. avdd-supply = <&vcc_mipipwr>;
  78. dovdd-supply = <&vcc_1v8_cam>;
  79. //dvdd-supply = <&vcc1v2_dvp>;
  80. rockchip,camera-module-index = <1>;
  81. rockchip,camera-module-facing = "front";
  82. rockchip,camera-module-name = "KYT-11210-V2";
  83. rockchip,camera-module-lens-name = "default";
  84. port {
  85. gc05a2_out0: endpoint {
  86. remote-endpoint = <&mipi_in_gc05a2>;
  87. data-lanes = <1 2>;
  88. };
  89. };
  90. };
  91. };
  92. &i2c5 {
  93. status = "okay";
  94. pinctrl-names = "default";
  95. pinctrl-0 = <&i2c5m3_xfer>;
  96. ces6301: ces6301@c {
  97. compatible = "chipextra,ces6301";
  98. status = "okay";
  99. reg = <0x0c>;
  100. avdd-supply = <&vcc_mipipwr>;
  101. rockchip,vcm-max-current = <120>;
  102. rockchip,vcm-start-current = <10>;
  103. rockchip,vcm-rated-current = <85>;
  104. rockchip,vcm-step-mode = <9>;
  105. rockchip,camera-module-index = <0>;
  106. rockchip,camera-module-facing = "back";
  107. };
  108. s5k3l8xx: s5k3l8xx@10 {
  109. status = "okay";
  110. compatible = "samsung,s5k3l8xx";
  111. reg = <0x10>;
  112. clocks = <&cru CLK_MIPI_CAMERAOUT_M2>;
  113. clock-names = "xvclk";
  114. pinctrl-names = "default";
  115. pinctrl-0 = <&cam_clk2m0_clk2>;
  116. pwdn-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
  117. reset-gpios = <&gpio3 RK_PA7 GPIO_ACTIVE_HIGH>;
  118. avdd-supply = <&vcc_mipipwr>;
  119. dovdd-supply = <&vcc_1v8_cam>;
  120. //dvdd-supply = <&vcc1v2_dvp>;
  121. rockchip,camera-module-index = <0>;
  122. rockchip,camera-module-facing = "back";
  123. rockchip,camera-module-name = "KYT-11097-B-V1";
  124. rockchip,camera-module-lens-name = "default";
  125. lens-focus = <&ces6301>;
  126. flash-leds = <&flash_rgb13h>;
  127. port {
  128. s5k3l8xx_out0: endpoint {
  129. remote-endpoint = <&mipi_in_s5k3l8xx>;
  130. data-lanes = <1 2 3 4>;
  131. };
  132. };
  133. };
  134. ov16880: ov16880@36 {
  135. status = "okay";
  136. compatible = "ovti,ov16880";
  137. reg = <0x36>;
  138. clocks = <&cru CLK_MIPI_CAMERAOUT_M2>;
  139. clock-names = "xvclk";
  140. pinctrl-names = "default";
  141. pinctrl-0 = <&cam_clk2m0_clk2>;
  142. pwdn-gpios = <&gpio3 RK_PD5 GPIO_ACTIVE_HIGH>;
  143. reset-gpios = <&gpio3 RK_PA7 GPIO_ACTIVE_HIGH>;
  144. avdd-supply = <&vcc_mipipwr>;
  145. dovdd-supply = <&vcc_1v8_cam>;
  146. //dvdd-supply = <&vcc1v2_dvp>;
  147. rockchip,camera-module-index = <0>;
  148. rockchip,camera-module-facing = "back";
  149. rockchip,camera-module-name = "KYT-11379-V1";
  150. rockchip,camera-module-lens-name = "default";
  151. lens-focus = <&ces6301>;
  152. flash-leds = <&flash_rgb13h>;
  153. port {
  154. ov16880_out0: endpoint {
  155. remote-endpoint = <&mipi_in_ov16880>;
  156. data-lanes = <1 2 3 4>;
  157. };
  158. };
  159. };
  160. };
  161. &mipi0_csi2 {
  162. status = "okay";
  163. ports {
  164. #address-cells = <1>;
  165. #size-cells = <0>;
  166. port@0 {
  167. reg = <0>;
  168. #address-cells = <1>;
  169. #size-cells = <0>;
  170. mipi0_csi2_input: endpoint@1 {
  171. reg = <1>;
  172. remote-endpoint = <&csidcphy0_out>;
  173. };
  174. };
  175. port@1 {
  176. reg = <1>;
  177. #address-cells = <1>;
  178. #size-cells = <0>;
  179. mipi0_csi2_output: endpoint@0 {
  180. reg = <0>;
  181. remote-endpoint = <&cif_mipi_in0>;
  182. };
  183. };
  184. };
  185. };
  186. &mipi3_csi2 {
  187. status = "okay";
  188. ports {
  189. #address-cells = <1>;
  190. #size-cells = <0>;
  191. port@0 {
  192. reg = <0>;
  193. #address-cells = <1>;
  194. #size-cells = <0>;
  195. mipi3_csi2_input: endpoint@1 {
  196. reg = <1>;
  197. remote-endpoint = <&csidphy3_out>;
  198. };
  199. };
  200. port@1 {
  201. reg = <1>;
  202. #address-cells = <1>;
  203. #size-cells = <0>;
  204. mipi3_csi2_output: endpoint@0 {
  205. reg = <0>;
  206. remote-endpoint = <&cif_mipi3_in0>;
  207. };
  208. };
  209. };
  210. };
  211. &pinctrl {
  212. cam {
  213. mipicam_pwr: mipicam-pwr {
  214. rockchip,pins =
  215. /* camera power en */
  216. <3 RK_PC6 RK_FUNC_GPIO &pcfg_pull_none>;
  217. };
  218. flash_led_gpios: flash-led {
  219. rockchip,pins =
  220. /* flash led enable */
  221. <2 RK_PD5 RK_FUNC_GPIO &pcfg_pull_none>;
  222. };
  223. };
  224. };
  225. &rkcif {
  226. status = "okay";
  227. };
  228. &rkcif_mipi_lvds {
  229. status = "okay";
  230. port {
  231. cif_mipi_in0: endpoint {
  232. remote-endpoint = <&mipi0_csi2_output>;
  233. };
  234. };
  235. };
  236. &rkcif_mipi_lvds_sditf {
  237. status = "okay";
  238. port {
  239. mipi_lvds_sditf: endpoint {
  240. remote-endpoint = <&isp_vir0_in0>;
  241. };
  242. };
  243. };
  244. &rkcif_mipi_lvds3 {
  245. status = "okay";
  246. port {
  247. cif_mipi3_in0: endpoint {
  248. remote-endpoint = <&mipi3_csi2_output>;
  249. };
  250. };
  251. };
  252. &rkcif_mipi_lvds3_sditf {
  253. status = "okay";
  254. port {
  255. mipi_lvds3_sditf: endpoint {
  256. remote-endpoint = <&isp_vir0_in1>;
  257. };
  258. };
  259. };
  260. &rkcif_mmu {
  261. status = "okay";
  262. };
  263. &rkisp {
  264. status = "okay";
  265. };
  266. &rkisp_mmu {
  267. status = "okay";
  268. };
  269. &rkisp_vir0 {
  270. status = "okay";
  271. port {
  272. #address-cells = <1>;
  273. #size-cells = <0>;
  274. isp_vir0_in0: endpoint@0 {
  275. reg = <0>;
  276. remote-endpoint = <&mipi_lvds_sditf>;
  277. };
  278. isp_vir0_in1: endpoint@1 {
  279. reg = <1>;
  280. remote-endpoint = <&mipi_lvds3_sditf>;
  281. };
  282. };
  283. };

(3)总结

后续继续介绍详细的dts配置以及调试经验。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/代码探险家/article/detail/889831
推荐阅读
相关标签
  

闽ICP备14008679号