Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/kernel/drivers/staging/media/imx/
H A Dimx6-mipi-csi2.c128 static void csi2_enable(struct csi2_dev *csi2, bool enable) in csi2_enable() argument
131 writel(0x1, csi2->base + CSI2_PHY_SHUTDOWNZ); in csi2_enable()
132 writel(0x1, csi2->base + CSI2_DPHY_RSTZ); in csi2_enable()
133 writel(0x1, csi2->base + CSI2_RESETN); in csi2_enable()
135 writel(0x0, csi2->base + CSI2_PHY_SHUTDOWNZ); in csi2_enable()
136 writel(0x0, csi2->base + CSI2_DPHY_RSTZ); in csi2_enable()
137 writel(0x0, csi2->base + CSI2_RESETN); in csi2_enable()
141 static void csi2_set_lanes(struct csi2_dev *csi2) in csi2_set_lanes() argument
143 int lanes = csi2->bus.num_data_lanes; in csi2_set_lanes()
145 writel(lanes - 1, csi2->base + CSI2_N_LANES); in csi2_set_lanes()
[all …]
H A Dimx-media-dev-common.c40 struct v4l2_subdev *sd, *csi2 = NULL; in imx_media_create_csi2_links() local
44 csi2 = sd; in imx_media_create_csi2_links()
48 if (!csi2) in imx_media_create_csi2_links()
58 v4l2_create_fwnode_links(csi2, sd); in imx_media_create_csi2_links()
/OK3568_Linux_fs/kernel/drivers/staging/media/omap4iss/
H A 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 …]
H A 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 …]
H A 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,
/OK3568_Linux_fs/kernel/drivers/media/platform/omap3isp/
H A 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 …]
H A 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,
H A Dispcsiphy.c177 lanes = &buscfg->bus.csi2.lanecfg; in omap3isp_csiphy_config()
178 num_data_lanes = buscfg->bus.csi2.num_data_lanes; in omap3isp_csiphy_config()
276 rval = omap3isp_csi2_reset(phy->csi2); in omap3isp_csiphy_acquire()
332 phy2->csi2 = &isp->isp_csi2a; in omap3isp_csiphy_init()
342 phy1->csi2 = &isp->isp_csi2c; in omap3isp_csiphy_init()
H A Disp.c2077 buscfg->bus.csi2.lanecfg.clk.pos = vep->bus.mipi_csi2.clock_lane; in isp_parse_of_csi2_endpoint()
2078 buscfg->bus.csi2.lanecfg.clk.pol = in isp_parse_of_csi2_endpoint()
2081 buscfg->bus.csi2.lanecfg.clk.pol, in isp_parse_of_csi2_endpoint()
2082 buscfg->bus.csi2.lanecfg.clk.pos); in isp_parse_of_csi2_endpoint()
2084 buscfg->bus.csi2.num_data_lanes = vep->bus.mipi_csi2.num_data_lanes; in isp_parse_of_csi2_endpoint()
2086 for (i = 0; i < buscfg->bus.csi2.num_data_lanes; i++) { in isp_parse_of_csi2_endpoint()
2087 buscfg->bus.csi2.lanecfg.data[i].pos = in isp_parse_of_csi2_endpoint()
2089 buscfg->bus.csi2.lanecfg.data[i].pol = in isp_parse_of_csi2_endpoint()
2093 buscfg->bus.csi2.lanecfg.data[i].pol, in isp_parse_of_csi2_endpoint()
2094 buscfg->bus.csi2.lanecfg.data[i].pos); in isp_parse_of_csi2_endpoint()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/cif/
H A Dmipi-csi2.c48 static struct csi2_sensor_info *sd_to_sensor(struct csi2_dev *csi2, in sd_to_sensor() argument
53 for (i = 0; i < csi2->num_sensors; ++i) in sd_to_sensor()
54 if (csi2->sensors[i].sd == sd) in sd_to_sensor()
55 return &csi2->sensors[i]; in sd_to_sensor()
107 static void csi2_update_sensor_info(struct csi2_dev *csi2) in csi2_update_sensor_info() argument
110 struct csi2_sensor_info *sensor = &csi2->sensors[0]; in csi2_update_sensor_info()
116 v4l2_err(&csi2->sd, "update sensor info failed!\n"); in csi2_update_sensor_info()
120 get_remote_terminal_sensor(&csi2->sd, &terminal_sensor_sd); in csi2_update_sensor_info()
122 RKMODULE_GET_CSI_DSI_INFO, &csi2->dsi_input_en); in csi2_update_sensor_info()
124 v4l2_dbg(1, csi2_debug, &csi2->sd, "get CSI/DSI sel failed, default csi!\n"); in csi2_update_sensor_info()
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/
H A Datomisp_csi2.c27 * csi2, in __csi2_get_format()
34 return v4l2_subdev_get_try_format(&csi2->subdev, cfg, pad); in __csi2_get_format()
36 return &csi2->formats[pad]; in __csi2_get_format()
76 struct atomisp_mipi_csi2_device *csi2 = v4l2_get_subdevdata(sd); in csi2_get_format() local
79 format = __csi2_get_format(csi2, cfg, fmt->which, fmt->pad); in csi2_get_format()
91 struct atomisp_mipi_csi2_device *csi2 = v4l2_get_subdevdata(sd); in atomisp_csi2_set_ffmt() local
92 struct v4l2_mbus_framefmt *actual_ffmt = __csi2_get_format(csi2, cfg, which, pad); in atomisp_csi2_set_ffmt()
118 *actual_ffmt = *ffmt = *__csi2_get_format(csi2, cfg, which, CSI2_PAD_SINK); in atomisp_csi2_set_ffmt()
188 struct atomisp_mipi_csi2_device *csi2 = v4l2_get_subdevdata(sd); in csi2_link_setup() local
198 if (csi2->output & ~CSI2_OUTPUT_ISP_SUBDEV) in csi2_link_setup()
[all …]
H A Datomisp_csi2.h53 struct atomisp_mipi_csi2_device *csi2);
54 int atomisp_mipi_csi2_register_entities(struct atomisp_mipi_csi2_device *csi2,
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/rockchip/
H A Drk3588-vehicle-evb-image-reverse.dtsi93 rockchip,csi2 = <&mipi0_csi2>;
112 rockchip,csi2 = <&mipi1_csi2>;
134 rockchip,csi2-dphy = <&csi2_dphy0_hw>;
135 rockchip,csi2 = <&mipi2_csi2>;
156 rockchip,csi2-dphy = <&csi2_dphy1_hw>;
157 rockchip,csi2 = <&mipi4_csi2>;
H A Drk3562-evb2-image-reverse.dtsi104 rockchip,csi2-dphy = <&csi2_dphy0_hw>;
105 rockchip,csi2 = <&mipi0_csi2>;
120 rockchip,csi2-dphy = <&csi2_dphy1_hw>;
121 rockchip,csi2 = <&mipi2_csi2>;
H A Drk3562.dtsi385 csi2_dphy0: csi2-dphy0 {
386 compatible = "rockchip,rk3562-csi2-dphy";
392 csi2_dphy1: csi2-dphy1 {
393 compatible = "rockchip,rk3562-csi2-dphy";
399 csi2_dphy2: csi2-dphy2 {
400 compatible = "rockchip,rk3562-csi2-dphy";
406 csi2_dphy3: csi2-dphy3 {
407 compatible = "rockchip,rk3562-csi2-dphy";
413 csi2_dphy4: csi2-dphy4 {
414 compatible = "rockchip,rk3562-csi2-dphy";
[all …]
/OK3568_Linux_fs/kernel/drivers/phy/rockchip/
H A DMakefile2 obj-$(CONFIG_PHY_ROCKCHIP_CSI2_DPHY) += phy-rockchip-csi2-dphy-hw.o \
3 phy-rockchip-csi2-dphy.o
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Drv1106.dtsi187 csi2_dphy0: csi2-dphy0 {
188 compatible = "rockchip,rv1106-csi2-dphy";
194 csi2_dphy1: csi2-dphy1 {
195 compatible = "rockchip,rv1106-csi2-dphy";
201 csi2_dphy2: csi2-dphy2 {
202 compatible = "rockchip,rv1106-csi2-dphy";
242 mipi0_csi2: mipi0-csi2 {
243 compatible = "rockchip,rv1106-mipi-csi2";
248 mipi1_csi2: mipi1-csi2 {
249 compatible = "rockchip,rv1106-mipi-csi2";
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/dts/
H A Drk3562.dtsi218 csi2_dphy0: csi2-dphy0 {
219 compatible = "rockchip,rk3562-csi2-dphy";
225 csi2_dphy1: csi2-dphy1 {
226 compatible = "rockchip,rk3562-csi2-dphy";
232 csi2_dphy2: csi2-dphy2 {
233 compatible = "rockchip,rk3562-csi2-dphy";
239 csi2_dphy3: csi2-dphy3 {
240 compatible = "rockchip,rk3562-csi2-dphy";
246 csi2_dphy4: csi2-dphy4 {
247 compatible = "rockchip,rk3562-csi2-dphy";
[all …]
H A Drv1106.dtsi77 csi2_dphy0: csi2-dphy0 {
78 compatible = "rockchip,rv1106-csi2-dphy";
84 csi2_dphy1: csi2-dphy1 {
85 compatible = "rockchip,rv1106-csi2-dphy";
91 csi2_dphy2: csi2-dphy2 {
92 compatible = "rockchip,rv1106-csi2-dphy";
586 csi2_dphy_hw: csi2-dphy-hw@ff3e8000 {
587 compatible = "rockchip,rv1106-csi2-dphy-hw";
979 mipi0_csi2: mipi-csi2@ffa20000 {
980 compatible = "rockchip,rk3588-mipi-csi2";
[all …]
/OK3568_Linux_fs/kernel/drivers/media/pci/intel/ipu3/
H A Dipu3-cio2.c356 u8 lanes, csi2bus = q->csi2.port; in cio2_hw_init()
365 lanes = q->csi2.lanes; in cio2_hw_init()
493 base + CIO2_REG_PXM_FRF_CFG(q->csi2.port)); in cio2_hw_init()
1383 struct csi2_bus_info csi2; member
1397 if (cio2->queue[s_asd->csi2.port].sensor) in cio2_notifier_bound()
1400 q = &cio2->queue[s_asd->csi2.port]; in cio2_notifier_bound()
1402 q->csi2 = s_asd->csi2; in cio2_notifier_bound()
1404 q->csi_rx_base = cio2->base + CIO2_REG_PIPE_BASE(q->csi2.port); in cio2_notifier_bound()
1419 cio2->queue[s_asd->csi2.port].sensor = NULL; in cio2_notifier_unbind()
1435 q = &cio2->queue[s_asd->csi2.port]; in cio2_notifier_complete()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/qcom/camss/
H A Dcamss-csiphy-2ph-1-0.c88 struct csiphy_lanes_cfg *c = &cfg->csi2->lane_cfg; in csiphy_lanes_enable()
128 struct csiphy_lanes_cfg *c = &cfg->csi2->lane_cfg; in csiphy_lanes_disable()
/OK3568_Linux_fs/kernel/Documentation/admin-guide/media/
H A Dimx.rst137 imx6-mipi-csi2
167 MIPI CSI-2 virtual channels from imx6-mipi-csi2 entity. They have a
360 sensor -> imx6-mipi-csi2 -> (ipuX_csiY_mux) -> ...
362 for mipi csi-2 sensors. The imx6-mipi-csi2 receiver may need to route
435 imx6-mipi-csi2 pad 2), is routed to ipu1_csi1. Both sensors are
446 media-ctl -l "'ov5640 1-0040':0 -> 'imx6-mipi-csi2':0[1]"
447 media-ctl -l "'imx6-mipi-csi2':2 -> 'ipu1_csi1':0[1]"
455 media-ctl -V "'imx6-mipi-csi2':2 [fmt:UYVY2X8/640x480 field:none]"
598 media-ctl -l "'ov5640 1-003c':0 -> 'imx6-mipi-csi2':0[1]"
599 media-ctl -l "'imx6-mipi-csi2':1 -> 'ipu1_csi0_mux':0[1]"
[all …]
/OK3568_Linux_fs/kernel/drivers/media/i2c/adv748x/
H A DMakefile5 adv748x-csi2.o \
/OK3568_Linux_fs/kernel/drivers/media/platform/rcar-vin/
H A DMakefile4 obj-$(CONFIG_VIDEO_RCAR_CSI2) += rcar-csi2.o
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/media/
H A Dimx7-mipi-csi2.txt12 - compatible : "fsl,imx7-mipi-csi2";
60 compatible = "fsl,imx7-mipi-csi2";

1234