47. Camera subsystem

47.1 Introduction

The camera subsystem is built around a double path:

When plugging a camera sensor, it is recommended to use the DCMIPP that supports more features and provides higher throughput than the DCMI.

The DCMI is recommended only in two noticeable cases:

Note: The DCMIPP inputs pixels from one sensor via the CSI-2 interface, while the DCMI gets pixels from the second sensor via the parallel interface.

The DCMI path offers the following summarized maximum features:

The DCMIPP path offers the following summarized maximum features:

Some over-target use cases are possible, but with specific constraints:

47.2 Camera path main features

47.2.1 DCMI path main features

The DCMI path shows the following features:

See Section 48: Digital camera interface (DCMI) for more details.

47.2.2 DCMIPP path main features

The DCMIPP path groups the DCMIPP pixel pipeline block, its included parallel interface, and the abutted CSI-2-Host and PHY.

The parallel interface shows the following features:

See Section 49: Digital camera interface pixel pipeline (DCMIPP) for more details.

The CSI-2 serial interface shows the following features:

See Section 50: CSI-2 Host (CSI) for more details.

DCMIPP sizings and limitations

The DCMIPP provides three different pipes to process data:

DCMIPP ISP capabilities common to pipe1 and 2, are the following:

The DCMIPP application capabilities, replicated for pipe1 and 2, are listed below:

Output pixel format:

The full features are detailed in Section 48: Digital camera interface (DCMI).

47.3 Camera subsystem implementation

47.3.1 Hardware settings

The camera subsystem is implemented with the following specific settings:

47.4 Camera subsystem functional description

47.4.1 Camera subsystem block diagram

The figure below shows the involved blocks in the camera subsystem.

Figure 413. Camera subsystem block diagram

Block diagram of the Camera subsystem showing internal components (DCMI, PSSI, DCMIPP, CSI_Host, CSI2-DPHY) and external interfaces (Parallel GPIO, LowRes // Sensor, LowPerf // Device, HighRes // Sensor, HighRes CSI Sensor).

The diagram illustrates the Camera subsystem architecture. A central dashed box labeled 'Camera subsystem' contains several blocks:

To the right of the main subsystem box, there are two groups of external sensors:The diagram is labeled 'MSv67464V1' in the bottom right corner.

Block diagram of the Camera subsystem showing internal components (DCMI, PSSI, DCMIPP, CSI_Host, CSI2-DPHY) and external interfaces (Parallel GPIO, LowRes // Sensor, LowPerf // Device, HighRes // Sensor, HighRes CSI Sensor).

Note: The PSSI is not used for camera purpose but rather for general-purpose parallel input (not described in this section).

47.4.2 Camera subsystem pins and external signal interface

Details about the pins can be found in the respective block sections.

47.4.3 Camera subsystem reset and clocks

The clock diagram of the camera subsystem is shown in the figure below.

Figure 414. Camera subsystem clock diagram

Figure 414: Camera subsystem clock diagram

Diagram showing clock interconnects among DCMI, DCMIPP, CSI2-Host, and CSI2-DPHY modules. Signals include input clocks: ck_icn_p_cci, ck_ker_csi2_txesc, ck_icn_p_csi2, ck_icn_p_dcmipp, ck_icn_m_dcmipp, ck_ker_csi2, ck_ker_csiphy; internal connections: hclk_cci, pixck_pdck_cci, pclk, aclk, clk_proc, clk_pix, csi2_rx_byte_clk_hs_dl0, csi2_rx_byte_clk_hs_dl1, i_TxClkEsc, o_RxByteClkHS, io_Cn, io_Cp, cn_rx_dphy, cp_rx_dphy, o_RxClkEsc_lane0, o_RxClkEsc_lane1, i_cfg_clk. Reference MSv67465V1 at the bottom right.

Figure 414: Camera subsystem clock diagram

The above camera subsystem has been implemented with the following clock max frequencies:

47.4.4 Camera subsystem security

The security of the camera subsystem is based on the protection of its register map, and of its master access to the system interconnect, based on default RISUP and RIMU respectively.

More information can be found in Section 6.2: Resource isolation framework (RIF).

The RISUP differentiates the access right of accesses performed toward the following RIF protected peripheral ID (indexes refer to Table 38: Indexes for non-RIF-aware peripherals (RISUP)):

The RIMU (RIMU_AXI_DCMIPP) gives the access right to the DCMIPP AXI master:

By default, the camera subsystem is expected to work in a non-secure mode:

For secure applications, the user can put the camera subsystem in S, P, or S-and-P mode, with the following impacts:

The above recommended non-protected settings are shown in Table 432: Camera subsystem RIF peripheral ID.

The table below lists vertically all camera subsystem blocks, and horizontally the associated RIF peripheral ID.

Table color legend for the recommended settings: gray for a permanently non-protected setting, blue for a temporarily protected versus non-protected, and pink for a permanently protected state: by default, all the settings are non-protected.

Table 432. Camera subsystem RIF peripheral ID

SubsystemBlockAddress rangeStart addressRISUP - slave
888786
DCMI_PSSIDCMIPPCSI2H
Camera low resolutionDCMIConfiguration0x0000Y--
Pixel Rx0x0A00Y--
Configuration0x0B00Y--
Data in/out0x0C00Y--

Table 432. Camera subsystem RIF peripheral ID (continued)

SubsystemBlockAddress rangeStart addressRISUP - slave
888786
DCMI_PSSIDCMIPPCSI2H
Camera high resolutionDCMIPPCommon configuration0x0-Y-
P1 configuration0x0-Y-
P2 configuration0x0-Y-
P3 configuration0x0-Y-
CSIConfiguration control0x0000--Y
Configuration wrap0x1000--Y
CSI DPHY-Rx (no register)----

47.5 Camera subsystem programmable parameters

This section describes the configuration of the various main use cases supported by the camera subsystem. Its purpose is to provide the settings that are global to the camera subsystem, and not provided by the local relevant blocks.

The use cases supported by default are the following:

Some over-target use cases are possible, but with specific constraints:

47.5.1 Low-resolution parallel camera and DCMI

This use case is recommended only for backward compatibility, or to grab pictures simultaneously from two sensors (a low and a high resolution).

The steps to setup this path are the following:

47.5.2 High-resolution parallel camera and DCMIPP

This is the default use case to grab a picture from a parallel camera (up to the target 5 Mpixels @30fps). Any RGB or RawBayer picture can be grabbed.

The steps to setup this path are the following:

47.5.3 High-resolution CSI2 camera and DCMIPP

This is the default use-case to grab a picture from a CSI2 camera (up to the target 5 Mpixels @30 fps). Any RGB or RawBayer picture can be grabbed.

The steps to setup this path are the following:

47.5.4 Sensors over target resolution

The sensors over the target resolution (5 Mpixels) are supported with the following restrictions:

After taking into account these restrictions, the configuration itself is the same as for the default high-resolution CSI2 camera, described in previous section.

47.5.5 Sensors over target pixel rate

The sensors over the target pixel rate (150 Mpixel/s average, ~200 Mpixel/s peak) are supported with the following restrictions:

After taking into account these restrictions, the configuration itself is the same as for the default high-resolution CSI2 camera, described in Section 47.5.3.

47.5.6 Double sensors

Two sensors are simultaneously and independently supported with the following restriction:

The configuration of the double sensors is the same as for the default low-resolution and default high-resolution sensors, described in previous sections.

47.6 Camera subsystem interrupts

Sections for each peripheral describe in details the provided interrupts.

47.7 Camera subsystem registers

All the registers are described in sections for each peripheral.