€•h8Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ+/translations/zh_CN/admin-guide/media/rkcif”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ+/translations/zh_TW/admin-guide/media/rkcif”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ+/translations/it_IT/admin-guide/media/rkcif”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ+/translations/ja_JP/admin-guide/media/rkcif”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ+/translations/ko_KR/admin-guide/media/rkcif”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ+/translations/sp_SP/admin-guide/media/rkcif”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒcomment”“”)”}”(hŒ SPDX-License-Identifier: GPL-2.0”h]”hŒ SPDX-License-Identifier: GPL-2.0”…””}”hh£sbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”uh1h¡hhhžhhŸŒE/var/lib/git/docbuild/linux/Documentation/admin-guide/media/rkcif.rst”h KubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒRockchip Camera Interface (CIF)”h]”hŒRockchip Camera Interface (CIF)”…””}”(hh»hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hh¶hžhhŸh³h Kubhµ)”}”(hhh]”(hº)”}”(hŒ Introduction”h]”hŒ Introduction”…””}”(hhÌhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hhÉhžhhŸh³h KubhŒ paragraph”“”)”}”(hŒ§The Rockchip Camera Interface (CIF) is featured in many Rockchip SoCs in different variants. The different variants are combinations of common building blocks, such as”h]”hŒ§The Rockchip Camera Interface (CIF) is featured in many Rockchip SoCs in different variants. The different variants are combinations of common building blocks, such as”…””}”(hhÜhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K hhÉhžhubhŒ bullet_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hŒ™INTERFACE blocks of different types, namely * the Digital Video Port (DVP, a parallel data interface) * the interface block for the MIPI CSI-2 receiver ”h]”(hÛ)”}”(hŒ+INTERFACE blocks of different types, namely”h]”hŒ+INTERFACE blocks of different types, namely”…””}”(hhõhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h Khhñubhë)”}”(hhh]”(hð)”}”(hŒ7the Digital Video Port (DVP, a parallel data interface)”h]”hÛ)”}”(hjh]”hŒ7the Digital Video Port (DVP, a parallel data interface)”…””}”(hj hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhjubhð)”}”(hŒ0the interface block for the MIPI CSI-2 receiver ”h]”hÛ)”}”(hŒ/the interface block for the MIPI CSI-2 receiver”h]”hŒ/the interface block for the MIPI CSI-2 receiver”…””}”(hj!hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhjubeh}”(h]”h ]”h"]”h$]”h&]”Œbullet”Œ*”uh1hêhŸh³h Khhñubeh}”(h]”h ]”h"]”h$]”h&]”uh1hïhhìhžhhŸNh Nubhð)”}”(hŒ CROP units ”h]”hÛ)”}”(hŒ CROP units”h]”hŒ CROP units”…””}”(hjGhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h KhjCubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhhìhžhhŸh³h Nubhð)”}”(hŒïMIPI CSI-2 receiver (not available on all variants): This unit is referred to as MIPI CSI HOST in the Rockchip documentation. Technically, it is a separate hardware block, but it is strongly coupled to the CIF and therefore included here. ”h]”hÛ)”}”(hŒîMIPI CSI-2 receiver (not available on all variants): This unit is referred to as MIPI CSI HOST in the Rockchip documentation. Technically, it is a separate hardware block, but it is strongly coupled to the CIF and therefore included here.”h]”hŒîMIPI CSI-2 receiver (not available on all variants): This unit is referred to as MIPI CSI HOST in the Rockchip documentation. Technically, it is a separate hardware block, but it is strongly coupled to the CIF and therefore included here.”…””}”(hj_hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h Khj[ubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhhìhžhhŸh³h Nubhð)”}”(hŒfMUX units (not available on all variants) that pass the video data to an image signal processor (ISP) ”h]”hÛ)”}”(hŒeMUX units (not available on all variants) that pass the video data to an image signal processor (ISP)”h]”hŒeMUX units (not available on all variants) that pass the video data to an image signal processor (ISP)”…””}”(hjwhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h Khjsubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhhìhžhhŸh³h Nubhð)”}”(hŒ,SCALE units (not available on all variants) ”h]”hÛ)”}”(hŒ+SCALE units (not available on all variants)”h]”hŒ+SCALE units (not available on all variants)”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h Khj‹ubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhhìhžhhŸh³h Nubhð)”}”(hŒqDMA engines that transfer video data into system memory using a double-buffering mechanism called ping-pong mode ”h]”hÛ)”}”(hŒpDMA engines that transfer video data into system memory using a double-buffering mechanism called ping-pong mode”h]”hŒpDMA engines that transfer video data into system memory using a double-buffering mechanism called ping-pong mode”…””}”(hj§hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h Khj£ubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhhìhžhhŸh³h Nubhð)”}”(hŒzSupport for four streams per INTERFACE block (not available on all variants), e.g., for MIPI CSI-2 Virtual Channels (VCs) ”h]”hÛ)”}”(hŒySupport for four streams per INTERFACE block (not available on all variants), e.g., for MIPI CSI-2 Virtual Channels (VCs)”h]”hŒySupport for four streams per INTERFACE block (not available on all variants), e.g., for MIPI CSI-2 Virtual Channels (VCs)”…””}”(hj¿hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K"hj»ubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhhìhžhhŸh³h Nubeh}”(h]”h ]”h"]”h$]”h&]”j;j<uh1hêhŸh³h KhhÉhžhubhÛ)”}”(hŒäThis document describes the different variants of the CIF, their hardware layout, as well as their representation in the media controller centric rkcif device driver, which is located under drivers/media/platform/rockchip/rkcif.”h]”hŒäThis document describes the different variants of the CIF, their hardware layout, as well as their representation in the media controller centric rkcif device driver, which is located under drivers/media/platform/rockchip/rkcif.”…””}”(hjÙhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K%hhÉhžhubeh}”(h]”Œ introduction”ah ]”h"]”Œ introduction”ah$]”h&]”uh1h´hh¶hžhhŸh³h Kubhµ)”}”(hhh]”(hº)”}”(hŒVariants”h]”hŒVariants”…””}”(hjòhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hjïhžhhŸh³h K*ubhµ)”}”(hhh]”(hº)”}”(hŒ)Rockchip PX30 Video Input Processor (VIP)”h]”hŒ)Rockchip PX30 Video Input Processor (VIP)”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hjhžhhŸh³h K-ubhÛ)”}”(hŒøThe PX30 Video Input Processor (VIP) features a digital video port that accepts parallel video data or BT.656. Since these protocols do not feature multiple streams, the VIP has one DMA engine that transfers the input video data into system memory.”h]”hŒøThe PX30 Video Input Processor (VIP) features a digital video port that accepts parallel video data or BT.656. Since these protocols do not feature multiple streams, the VIP has one DMA engine that transfers the input video data into system memory.”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K/hjhžhubhÛ)”}”(hŒ™The rkcif driver represents this hardware variant by exposing one V4L2 subdevice (the DVP INTERFACE/CROP block) and one V4L2 device (the DVP DMA engine).”h]”hŒ™The rkcif driver represents this hardware variant by exposing one V4L2 subdevice (the DVP INTERFACE/CROP block) and one V4L2 device (the DVP DMA engine).”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K4hjhžhubeh}”(h]”Œ'rockchip-px30-video-input-processor-vip”ah ]”h"]”Œ)rockchip px30 video input processor (vip)”ah$]”h&]”uh1h´hjïhžhhŸh³h K-ubhµ)”}”(hhh]”(hº)”}”(hŒ%Rockchip RK3568 Video Capture (VICAP)”h]”hŒ%Rockchip RK3568 Video Capture (VICAP)”…””}”(hj8hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h¹hj5hžhhŸh³h K8ubhÛ)”}”(hXÇThe RK3568 Video Capture (VICAP) unit features a digital video port and a MIPI CSI-2 receiver that can receive video data independently. The DVP accepts parallel video data, BT.656 and BT.1120. Since the BT.1120 protocol may feature more than one stream, the RK3568 VICAP DVP features four DMA engines that can capture different streams. Similarly, the RK3568 VICAP MIPI CSI-2 receiver features four DMA engines to handle different Virtual Channels (VCs).”h]”hXÇThe RK3568 Video Capture (VICAP) unit features a digital video port and a MIPI CSI-2 receiver that can receive video data independently. The DVP accepts parallel video data, BT.656 and BT.1120. Since the BT.1120 protocol may feature more than one stream, the RK3568 VICAP DVP features four DMA engines that can capture different streams. Similarly, the RK3568 VICAP MIPI CSI-2 receiver features four DMA engines to handle different Virtual Channels (VCs).”…””}”(hjFhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h K:hj5hžhubhÛ)”}”(hŒ_The rkcif driver represents this hardware variant by exposing up the following V4L2 subdevices:”h]”hŒ_The rkcif driver represents this hardware variant by exposing up the following V4L2 subdevices:”…””}”(hjThžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h KBhj5hžhubhë)”}”(hhh]”hð)”}”(hŒ-rkcif-dvp0: INTERFACE/CROP block for the DVP ”h]”hÛ)”}”(hŒ,rkcif-dvp0: INTERFACE/CROP block for the DVP”h]”hŒ,rkcif-dvp0: INTERFACE/CROP block for the DVP”…””}”(hjihžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h KEhjeubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhjbhžhhŸh³h Nubah}”(h]”h ]”h"]”h$]”h&]”j;j<uh1hêhŸh³h KEhj5hžhubhÛ)”}”(hŒ and the following video devices:”h]”hŒ and the following video devices:”…””}”(hjƒhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h KGhj5hžhubhë)”}”(hhh]”hð)”}”(hŒÄrkcif-dvp0-id0: The support for multiple streams on the DVP is not yet implemented, as it is hard to find test hardware. Thus, this video device represents the first DMA engine of the RK3568 DVP. ”h]”hÛ)”}”(hŒÃrkcif-dvp0-id0: The support for multiple streams on the DVP is not yet implemented, as it is hard to find test hardware. Thus, this video device represents the first DMA engine of the RK3568 DVP.”h]”hŒÃrkcif-dvp0-id0: The support for multiple streams on the DVP is not yet implemented, as it is hard to find test hardware. Thus, this video device represents the first DMA engine of the RK3568 DVP.”…””}”(hj˜hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hÚhŸh³h KIhj”ubah}”(h]”h ]”h"]”h$]”h&]”uh1hïhj‘hžhhŸh³h Nubah}”(h]”h ]”h"]”h$]”h&]”j;j<uh1hêhŸh³h KIhj5hžhubŒkfigure”Œ kernel_figure”“”)”}”(hhh]”hŒfigure”“”)”}”(hhh]”hŒimage”“”)”}”(hŒz.. kernel-figure:: rkcif-rk3568-vicap.dot :alt: Topology of the RK3568 Video Capture (VICAP) unit :align: center”h]”h}”(h]”h ]”h"]”h$]”h&]”Œalt”Œ1Topology of the RK3568 Video Capture (VICAP) unit”Œuri”Œ(admin-guide/media/rkcif-rk3568-vicap.dot”Œ candidates”}”j<jÌsuh1j½hjºhŸh³h Kubah}”(h]”h ]”h"]”h$]”h&]”Œalign”Œcenter”uh1j¸hjµubah}”(h]”h ]”h"]”h$]”h&]”uh1j³hj5hžhhŸh³h Nubeh}”(h]”Œ#rockchip-rk3568-video-capture-vicap”ah ]”h"]”Œ%rockchip rk3568 video capture (vicap)”ah$]”h&]”uh1h´hjïhžhhŸh³h K8ubeh}”(h]”Œvariants”ah ]”h"]”Œvariants”ah$]”h&]”uh1h´hh¶hžhhŸh³h K*ubeh}”(h]”Œrockchip-camera-interface-cif”ah ]”h"]”Œrockchip camera interface (cif)”ah$]”h&]”uh1h´hhhžhhŸh³h Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”h³uh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(h¹NŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”jŒerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”h³Œ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”(jòjïjìjéjêjçj2j/jâjßuŒ nametypes”}”(jò‰jì‰jê‰j2‰jâ‰uh}”(jïh¶jéhÉjçjïj/jjßj5uŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nhžhub.