no-OS
Loading...
Searching...
No Matches
gmsl_cam_ser.h
Go to the documentation of this file.
1/*******************************************************************************
2 * @file gmsl_cam_ser.h
3 * @brief Header file of gmsl camera serializer common interface
4 * @author Automotive Software and Systems team, Bangalore, India
5********************************************************************************
6 * Copyright 2025(c) Analog Devices, Inc.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are met:
10 *
11 * 1. Redistributions of source code must retain the above copyright notice,
12 * this list of conditions and the following disclaimer.
13 *
14 * 2. Redistributions in binary form must reproduce the above copyright notice,
15 * this list of conditions and the following disclaimer in the documentation
16 * and/or other materials provided with the distribution.
17 *
18 * 3. Neither the name of Analog Devices, Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived from this
20 * software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. "AS IS" AND ANY EXPRESS OR
23 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
25 * EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT,
26 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
27 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
28 * OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
29 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
30 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31 * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32******************************************************************************/
33
34#ifndef GMSL_CAM_SER_H
35#define GMSL_CAM_SER_H
36
37#include <stdint.h>
38#include <stdbool.h>
39#include "no_os_i2c.h"
40
41#define GMSL_CAM_SER_CSI2_MAX_MIPI_PHY_PER_PORT (2)
42#define GMSL_CAM_SER_CSI2_MAX_SENSOR_LANES (4)
43#define GMSL_CAM_SER_CSI2_MAX_DATA_LANES (4)
44#define GMSL_CAM_SER_CSI2_MAX_DATA_LANES_PER_MIPI_PHY (2)
45
61
67 unsigned int index;
68 unsigned int
70 unsigned int stream_id;
71 unsigned int
72 *dts;
73 unsigned int
75 unsigned int
77 unsigned int
79 unsigned int
81 bool dbl8;
82 bool dbl10;
83 bool dbl12;
84 bool enabled;
85 bool active;
86};
87
93 unsigned int
97 bool enabled;
98 bool is_master;
99};
100
106 unsigned int
108 unsigned int
110 unsigned int
113 bool en_cphy;
114 bool enabled;
117};
118
130
131#endif /* GMSL_CAM_SER_H */
#define GMSL_CAM_SER_CSI2_MAX_MIPI_PHY_PER_PORT
Definition gmsl_cam_ser.h:41
#define GMSL_CAM_SER_CSI2_MAX_DATA_LANES_PER_MIPI_PHY
Definition gmsl_cam_ser.h:44
Header file of I2C Interface.
Configuration structure for GMSL Camera Serializer MIPI CSI2 interface.
Definition gmsl_cam_ser.h:50
bool lane_polarities[GMSL_CAM_SER_CSI2_MAX_DATA_LANES_PER_MIPI_PHY+1]
Definition gmsl_cam_ser.h:58
unsigned int lane[GMSL_CAM_SER_CSI2_MAX_DATA_LANES_PER_MIPI_PHY]
Definition gmsl_cam_ser.h:52
A structure that contains configuration parameters for a GMSL camera serializer MIPI port.
Definition gmsl_cam_ser.h:105
bool en_deskew
Definition gmsl_cam_ser.h:112
struct gmsl_link_ser_phy_cfg phy[GMSL_CAM_SER_CSI2_MAX_MIPI_PHY_PER_PORT]
Definition gmsl_cam_ser.h:115
bool en_cphy
Definition gmsl_cam_ser.h:113
unsigned int index
Definition gmsl_cam_ser.h:107
unsigned int lane_count
Definition gmsl_cam_ser.h:111
unsigned int ctlr_idx
Definition gmsl_cam_ser.h:109
bool enabled
Definition gmsl_cam_ser.h:114
GMSL Camera Serializer driver initailization structure.
Definition gmsl_cam_ser.h:123
uint8_t index
Definition gmsl_cam_ser.h:125
void * dev_instance_mem
Definition gmsl_cam_ser.h:127
char * dev_name
Definition gmsl_cam_ser.h:124
void * dev_state_mem
Definition gmsl_cam_ser.h:128
A structure that contains configuration parameters for a GMSL camera serializer pipe.
Definition gmsl_cam_ser.h:66
unsigned int soft_bpp
Definition gmsl_cam_ser.h:78
bool dbl8
Definition gmsl_cam_ser.h:81
bool active
Definition gmsl_cam_ser.h:85
unsigned int * dts
Definition gmsl_cam_ser.h:72
bool enabled
Definition gmsl_cam_ser.h:84
unsigned int bpp
Definition gmsl_cam_ser.h:80
unsigned int num_dts
Definition gmsl_cam_ser.h:74
unsigned int index
Definition gmsl_cam_ser.h:67
bool dbl12
Definition gmsl_cam_ser.h:83
bool dbl10
Definition gmsl_cam_ser.h:82
unsigned int vcs
Definition gmsl_cam_ser.h:76
unsigned int stream_id
Definition gmsl_cam_ser.h:70
unsigned int phy_id
Definition gmsl_cam_ser.h:69