Home
last modified time | relevance | path

Searched refs:csi2 (Results 1 – 25 of 92) sorted by relevance

1234

/linux-6.6.21/drivers/staging/media/imx/
Dimx6-mipi-csi2.c132 static void csi2_enable(struct csi2_dev *csi2, bool enable) in csi2_enable() argument
135 writel(0x1, csi2->base + CSI2_PHY_SHUTDOWNZ); in csi2_enable()
136 writel(0x1, csi2->base + CSI2_DPHY_RSTZ); in csi2_enable()
137 writel(0x1, csi2->base + CSI2_RESETN); in csi2_enable()
139 writel(0x0, csi2->base + CSI2_PHY_SHUTDOWNZ); in csi2_enable()
140 writel(0x0, csi2->base + CSI2_DPHY_RSTZ); in csi2_enable()
141 writel(0x0, csi2->base + CSI2_RESETN); in csi2_enable()
145 static void csi2_set_lanes(struct csi2_dev *csi2, unsigned int lanes) in csi2_set_lanes() argument
147 writel(lanes - 1, csi2->base + CSI2_N_LANES); in csi2_set_lanes()
150 static void dw_mipi_csi2_phy_write(struct csi2_dev *csi2, in dw_mipi_csi2_phy_write() argument
[all …]
Dimx-media-dev-common.c26 struct v4l2_subdev *sd, *csi2 = NULL; in imx_media_create_csi2_links() local
30 csi2 = sd; in imx_media_create_csi2_links()
34 if (!csi2) in imx_media_create_csi2_links()
43 v4l2_create_fwnode_links(csi2, sd); in imx_media_create_csi2_links()
/linux-6.6.21/drivers/staging/media/omap4iss/
Diss_csi2.c24 static void csi2_if_enable(struct iss_csi2_device *csi2, u8 enable) in csi2_if_enable() argument
26 struct iss_csi2_ctrl_cfg *currctrl = &csi2->ctrl; in csi2_if_enable()
28 iss_reg_update(csi2->iss, csi2->regs1, CSI2_CTRL, CSI2_CTRL_IF_EN, in csi2_if_enable()
39 static void csi2_recv_config(struct iss_csi2_device *csi2, in csi2_recv_config() argument
88 iss_reg_write(csi2->iss, csi2->regs1, CSI2_CTRL, reg); in csi2_recv_config()
194 static u16 csi2_ctx_map_format(struct iss_csi2_device *csi2) in csi2_ctx_map_format() argument
196 const struct v4l2_mbus_framefmt *fmt = &csi2->formats[CSI2_PAD_SINK]; in csi2_ctx_map_format()
228 if (!(csi2->output & CSI2_OUTPUT_IPIPEIF) && in csi2_ctx_map_format()
229 !(csi2->output & CSI2_OUTPUT_MEMORY)) { in csi2_ctx_map_format()
237 destidx = csi2->frame_skip ? 0 : !!(csi2->output & CSI2_OUTPUT_IPIPEIF); in csi2_ctx_map_format()
[all …]
Diss_csiphy.c118 struct iss_csi2_device *csi2 = v4l2_get_subdevdata(csi2_subdev); in omap4iss_csiphy_config() local
128 lanes = &subdevs->bus.csi2.lanecfg; in omap4iss_csiphy_config()
171 csi2->phy->used_data_lanes = 0; in omap4iss_csiphy_config()
174 for (i = 0; i < csi2->phy->max_data_lanes; i++) { in omap4iss_csiphy_config()
179 lanes->data[i].pos > (csi2->phy->max_data_lanes + 1)) in omap4iss_csiphy_config()
186 csi2->phy->used_data_lanes++; in omap4iss_csiphy_config()
190 lanes->clk.pos > (csi2->phy->max_data_lanes + 1)) in omap4iss_csiphy_config()
197 / (2 * csi2->phy->used_data_lanes) in omap4iss_csiphy_config()
210 mutex_lock(&csi2->phy->mutex); in omap4iss_csiphy_config()
211 csi2->phy->dphy = csi2phy; in omap4iss_csiphy_config()
[all …]
Diss_csi2.h147 void omap4iss_csi2_isr(struct iss_csi2_device *csi2);
148 int omap4iss_csi2_reset(struct iss_csi2_device *csi2);
152 void omap4iss_csi2_unregister_entities(struct iss_csi2_device *csi2);
153 int omap4iss_csi2_register_entities(struct iss_csi2_device *csi2,
/linux-6.6.21/drivers/media/platform/ti/omap3isp/
Dispcsi2.c28 struct isp_csi2_device *csi2, u8 enable) in csi2_if_enable() argument
30 struct isp_csi2_ctrl_cfg *currctrl = &csi2->ctrl; in csi2_if_enable()
32 isp_reg_clr_set(isp, csi2->regs1, ISPCSI2_CTRL, ISPCSI2_CTRL_IF_EN, in csi2_if_enable()
44 struct isp_csi2_device *csi2, in csi2_recv_config() argument
49 reg = isp_reg_readl(isp, csi2->regs1, ISPCSI2_CTRL); in csi2_recv_config()
74 isp_reg_writel(isp, reg, csi2->regs1, ISPCSI2_CTRL); in csi2_recv_config()
165 static u16 csi2_ctx_map_format(struct isp_csi2_device *csi2) in csi2_ctx_map_format() argument
167 const struct v4l2_mbus_framefmt *fmt = &csi2->formats[CSI2_PAD_SINK]; in csi2_ctx_map_format()
192 if (!(csi2->output & CSI2_OUTPUT_CCDC) && in csi2_ctx_map_format()
193 !(csi2->output & CSI2_OUTPUT_MEMORY)) { in csi2_ctx_map_format()
[all …]
Dispcsi2.h145 void omap3isp_csi2_isr(struct isp_csi2_device *csi2);
146 int omap3isp_csi2_reset(struct isp_csi2_device *csi2);
149 void omap3isp_csi2_unregister_entities(struct isp_csi2_device *csi2);
150 int omap3isp_csi2_register_entities(struct isp_csi2_device *csi2,
Dispcsiphy.c182 lanes = &buscfg->bus.csi2.lanecfg; in omap3isp_csiphy_config()
183 num_data_lanes = buscfg->bus.csi2.num_data_lanes; in omap3isp_csiphy_config()
281 rval = omap3isp_csi2_reset(phy->csi2); in omap3isp_csiphy_acquire()
342 phy2->csi2 = &isp->isp_csi2a; in omap3isp_csiphy_init()
352 phy1->csi2 = &isp->isp_csi2c; in omap3isp_csiphy_init()
/linux-6.6.21/drivers/media/platform/renesas/rzg2l-cru/
Drzg2l-csi2.c214 static u32 rzg2l_csi2_read(struct rzg2l_csi2 *csi2, unsigned int reg) in rzg2l_csi2_read() argument
216 return ioread32(csi2->base + reg); in rzg2l_csi2_read()
219 static void rzg2l_csi2_write(struct rzg2l_csi2 *csi2, unsigned int reg, in rzg2l_csi2_write() argument
222 iowrite32(data, csi2->base + reg); in rzg2l_csi2_write()
225 static void rzg2l_csi2_set(struct rzg2l_csi2 *csi2, unsigned int reg, u32 set) in rzg2l_csi2_set() argument
227 rzg2l_csi2_write(csi2, reg, rzg2l_csi2_read(csi2, reg) | set); in rzg2l_csi2_set()
230 static void rzg2l_csi2_clr(struct rzg2l_csi2 *csi2, unsigned int reg, u32 clr) in rzg2l_csi2_clr() argument
232 rzg2l_csi2_write(csi2, reg, rzg2l_csi2_read(csi2, reg) & ~clr); in rzg2l_csi2_clr()
235 static int rzg2l_csi2_calc_mbps(struct rzg2l_csi2 *csi2) in rzg2l_csi2_calc_mbps() argument
237 struct v4l2_subdev *source = csi2->remote_source; in rzg2l_csi2_calc_mbps()
[all …]
/linux-6.6.21/drivers/staging/media/atomisp/pci/
Datomisp_csi2.c26 v4l2_mbus_framefmt *__csi2_get_format(struct atomisp_mipi_csi2_device *csi2, in __csi2_get_format() argument
32 return v4l2_subdev_get_try_format(&csi2->subdev, sd_state, in __csi2_get_format()
35 return &csi2->formats[pad]; in __csi2_get_format()
75 struct atomisp_mipi_csi2_device *csi2 = v4l2_get_subdevdata(sd); in csi2_get_format() local
78 format = __csi2_get_format(csi2, sd_state, fmt->which, fmt->pad); in csi2_get_format()
90 struct atomisp_mipi_csi2_device *csi2 = v4l2_get_subdevdata(sd); in atomisp_csi2_set_ffmt() local
91 struct v4l2_mbus_framefmt *actual_ffmt = __csi2_get_format(csi2, in atomisp_csi2_set_ffmt()
120 *actual_ffmt = *ffmt = *__csi2_get_format(csi2, sd_state, which, in atomisp_csi2_set_ffmt()
188 static int mipi_csi2_init_entities(struct atomisp_mipi_csi2_device *csi2, in mipi_csi2_init_entities() argument
191 struct v4l2_subdev *sd = &csi2->subdev; in mipi_csi2_init_entities()
[all …]
Datomisp_csi2.h71 struct atomisp_mipi_csi2_device *csi2);
72 int atomisp_mipi_csi2_register_entities(struct atomisp_mipi_csi2_device *csi2,
/linux-6.6.21/Documentation/devicetree/bindings/media/
Drenesas,csi2.yaml5 $id: http://devicetree.org/schemas/media/renesas,csi2.yaml#
22 - renesas,r8a774a1-csi2 # RZ/G2M
23 - renesas,r8a774b1-csi2 # RZ/G2N
24 - renesas,r8a774c0-csi2 # RZ/G2E
25 - renesas,r8a774e1-csi2 # RZ/G2H
26 - renesas,r8a7795-csi2 # R-Car H3
27 - renesas,r8a7796-csi2 # R-Car M3-W
28 - renesas,r8a77961-csi2 # R-Car M3-W+
29 - renesas,r8a77965-csi2 # R-Car M3-N
30 - renesas,r8a77970-csi2 # R-Car V3M
[all …]
Dallwinner,sun6i-a31-mipi-csi2.yaml4 $id: http://devicetree.org/schemas/media/allwinner,sun6i-a31-mipi-csi2.yaml#
15 - const: allwinner,sun6i-a31-mipi-csi2
17 - const: allwinner,sun8i-v3s-mipi-csi2
18 - const: allwinner,sun6i-a31-mipi-csi2
101 compatible = "allwinner,sun8i-v3s-mipi-csi2",
102 "allwinner,sun6i-a31-mipi-csi2";
Dnxp,imx-mipi-csi2.yaml4 $id: http://devicetree.org/schemas/media/nxp,imx-mipi-csi2.yaml#
27 - fsl,imx7-mipi-csi2
28 - fsl,imx8mm-mipi-csi2
31 - fsl,imx8mp-mipi-csi2
32 - const: fsl,imx8mm-mipi-csi2
88 Note that 'fsl,imx7-mipi-csi2' only supports up to 2 data lines.
120 const: fsl,imx7-mipi-csi2
142 compatible = "fsl,imx7-mipi-csi2";
185 compatible = "fsl,imx8mm-mipi-csi2";
Drenesas,rzg2l-csi2.yaml5 $id: http://devicetree.org/schemas/media/renesas,rzg2l-csi2.yaml#
22 - renesas,r9a07g044-csi2 # RZ/G2{L,LC}
23 - renesas,r9a07g054-csi2 # RZ/V2L
24 - const: renesas,rzg2l-csi2
111 compatible = "renesas,r9a07g044-csi2", "renesas,rzg2l-csi2";
Dallwinner,sun8i-a83t-mipi-csi2.yaml4 $id: http://devicetree.org/schemas/media/allwinner,sun8i-a83t-mipi-csi2.yaml#
14 const: allwinner,sun8i-a83t-mipi-csi2
91 compatible = "allwinner,sun8i-a83t-mipi-csi2";
Dnxp,imx8mq-mipi-csi2.yaml4 $id: http://devicetree.org/schemas/media/nxp,imx8mq-mipi-csi2.yaml#
20 - fsl,imx8mq-mipi-csi2
128 compatible = "fsl,imx8mq-mipi-csi2";
/linux-6.6.21/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-gasket.c37 val = GASKET_CTRL_DATA_TYPE(fd->entry[0].bus.csi2.dt); in mxc_imx8_gasket_enable()
38 if (fd->entry[0].bus.csi2.dt == MIPI_CSI2_DT_YUV422_8B) in mxc_imx8_gasket_enable()
71 val = DISP_MIX_CAMERA_MUX_DATA_TYPE(fd->entry[0].bus.csi2.dt); in mxc_imx93_gasket_enable()
/linux-6.6.21/drivers/media/platform/sunxi/sun6i-mipi-csi2/
DMakefile2 sun6i-mipi-csi2-y += sun6i_mipi_csi2.o
4 obj-$(CONFIG_VIDEO_SUN6I_MIPI_CSI2) += sun6i-mipi-csi2.o
/linux-6.6.21/Documentation/devicetree/bindings/display/bridge/
Drenesas,dsi-csi2-tx.yaml4 $id: http://devicetree.org/schemas/display/bridge/renesas,dsi-csi2-tx.yaml#
20 - renesas,r8a779a0-dsi-csi2-tx # for V3U
21 - renesas,r8a779g0-dsi-csi2-tx # for V4H
90 compatible = "renesas,r8a779a0-dsi-csi2-tx";
/linux-6.6.21/drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/
DMakefile2 sun8i-a83t-mipi-csi2-y += sun8i_a83t_mipi_csi2.o sun8i_a83t_dphy.o
4 obj-$(CONFIG_VIDEO_SUN8I_A83T_MIPI_CSI2) += sun8i-a83t-mipi-csi2.o
/linux-6.6.21/drivers/media/platform/sunxi/
DMakefile5 obj-y += sun6i-mipi-csi2/
6 obj-y += sun8i-a83t-mipi-csi2/
DKconfig7 source "drivers/media/platform/sunxi/sun6i-mipi-csi2/Kconfig"
8 source "drivers/media/platform/sunxi/sun8i-a83t-mipi-csi2/Kconfig"
/linux-6.6.21/drivers/media/i2c/adv748x/
DMakefile5 adv748x-csi2.o \
/linux-6.6.21/drivers/media/platform/renesas/rcar-vin/
DMakefile4 obj-$(CONFIG_VIDEO_RCAR_CSI2) += rcar-csi2.o

1234