/linux-6.1.9/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-dev.c | 127 struct rkisp1_device *rkisp1 = in rkisp1_subdev_notifier_bound() local 139 dev_err(rkisp1->dev, "failed to find source pad for %s\n", in rkisp1_subdev_notifier_bound() 145 return rkisp1_csi_link_sensor(rkisp1, sd, s_asd, source_pad); in rkisp1_subdev_notifier_bound() 148 &rkisp1->isp.sd.entity, in rkisp1_subdev_notifier_bound() 152 dev_err(rkisp1->dev, "failed to link source pad of %s\n", in rkisp1_subdev_notifier_bound() 162 struct rkisp1_device *rkisp1 = in rkisp1_subdev_notifier_complete() local 165 return v4l2_device_register_subdev_nodes(&rkisp1->v4l2_dev); in rkisp1_subdev_notifier_complete() 182 static int rkisp1_subdev_notifier_register(struct rkisp1_device *rkisp1) in rkisp1_subdev_notifier_register() argument 184 struct v4l2_async_notifier *ntf = &rkisp1->notifier; in rkisp1_subdev_notifier_register() 185 struct fwnode_handle *fwnode = dev_fwnode(rkisp1->dev); in rkisp1_subdev_notifier_register() [all …]
|
D | rkisp1-csi.c | 50 int rkisp1_csi_link_sensor(struct rkisp1_device *rkisp1, struct v4l2_subdev *sd, in rkisp1_csi_link_sensor() argument 54 struct rkisp1_csi *csi = &rkisp1->csi; in rkisp1_csi_link_sensor() 60 dev_err(rkisp1->dev, "No pixel rate control in subdev %s\n", in rkisp1_csi_link_sensor() 70 dev_err(csi->rkisp1->dev, "failed to link src pad of %s\n", in rkisp1_csi_link_sensor() 81 struct rkisp1_device *rkisp1 = csi->rkisp1; in rkisp1_csi_config() local 93 rkisp1_write(rkisp1, RKISP1_CIF_MIPI_CTRL, mipi_ctrl); in rkisp1_csi_config() 96 if (rkisp1->info->isp_ver == RKISP1_V12) in rkisp1_csi_config() 97 rkisp1_write(rkisp1, RKISP1_CIF_ISP_CSI0_CTRL0, 0); in rkisp1_csi_config() 100 rkisp1_write(rkisp1, RKISP1_CIF_MIPI_IMG_DATA_SEL, in rkisp1_csi_config() 105 rkisp1_write(rkisp1, RKISP1_CIF_MIPI_ICR, ~0); in rkisp1_csi_config() [all …]
|
D | rkisp1-params.c | 41 val = rkisp1_read(params->rkisp1, reg); in rkisp1_param_set_bits() 42 rkisp1_write(params->rkisp1, reg, val | bit_mask); in rkisp1_param_set_bits() 50 val = rkisp1_read(params->rkisp1, reg); in rkisp1_param_clear_bits() 51 rkisp1_write(params->rkisp1, reg, val & ~bit_mask); in rkisp1_param_clear_bits() 67 mode = rkisp1_read(params->rkisp1, RKISP1_CIF_ISP_DPCC_MODE); in rkisp1_dpcc_config() 70 rkisp1_write(params->rkisp1, RKISP1_CIF_ISP_DPCC_MODE, mode); in rkisp1_dpcc_config() 72 rkisp1_write(params->rkisp1, RKISP1_CIF_ISP_DPCC_OUTPUT_MODE, in rkisp1_dpcc_config() 74 rkisp1_write(params->rkisp1, RKISP1_CIF_ISP_DPCC_SET_USE, in rkisp1_dpcc_config() 78 rkisp1_write(params->rkisp1, RKISP1_ISP_DPCC_METHODS_SET(i), in rkisp1_dpcc_config() 81 rkisp1_write(params->rkisp1, RKISP1_ISP_DPCC_LINE_THRESH(i), in rkisp1_dpcc_config() [all …]
|
D | rkisp1-stats.c | 181 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_awb_meas_v10() local 185 reg_val = rkisp1_read(rkisp1, RKISP1_CIF_ISP_AWB_WHITE_CNT_V10); in rkisp1_stats_get_awb_meas_v10() 188 reg_val = rkisp1_read(rkisp1, RKISP1_CIF_ISP_AWB_MEAN_V10); in rkisp1_stats_get_awb_meas_v10() 202 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_awb_meas_v12() local 206 reg_val = rkisp1_read(rkisp1, RKISP1_CIF_ISP_AWB_WHITE_CNT_V12); in rkisp1_stats_get_awb_meas_v12() 209 reg_val = rkisp1_read(rkisp1, RKISP1_CIF_ISP_AWB_MEAN_V12); in rkisp1_stats_get_awb_meas_v12() 222 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_aec_meas_v10() local 228 (u8)rkisp1_read(rkisp1, in rkisp1_stats_get_aec_meas_v10() 235 struct rkisp1_device *rkisp1 = stats->rkisp1; in rkisp1_stats_get_aec_meas_v12() local 241 value = rkisp1_read(rkisp1, RKISP1_CIF_ISP_EXP_MEAN_V12 + i * 4); in rkisp1_stats_get_aec_meas_v12() [all …]
|
D | rkisp1-isp.c | 105 struct rkisp1_device *rkisp1 = isp->rkisp1; in rkisp1_config_ism() local 108 rkisp1_write(rkisp1, RKISP1_CIF_ISP_IS_RECENTER, 0); in rkisp1_config_ism() 109 rkisp1_write(rkisp1, RKISP1_CIF_ISP_IS_MAX_DX, 0); in rkisp1_config_ism() 110 rkisp1_write(rkisp1, RKISP1_CIF_ISP_IS_MAX_DY, 0); in rkisp1_config_ism() 111 rkisp1_write(rkisp1, RKISP1_CIF_ISP_IS_DISPLACE, 0); in rkisp1_config_ism() 112 rkisp1_write(rkisp1, RKISP1_CIF_ISP_IS_H_OFFS, src_crop->left); in rkisp1_config_ism() 113 rkisp1_write(rkisp1, RKISP1_CIF_ISP_IS_V_OFFS, src_crop->top); in rkisp1_config_ism() 114 rkisp1_write(rkisp1, RKISP1_CIF_ISP_IS_H_SIZE, src_crop->width); in rkisp1_config_ism() 115 rkisp1_write(rkisp1, RKISP1_CIF_ISP_IS_V_SIZE, src_crop->height); in rkisp1_config_ism() 118 rkisp1_write(rkisp1, RKISP1_CIF_ISP_IS_CTRL, 1); in rkisp1_config_ism() [all …]
|
D | rkisp1-debug.c | 36 static int rkisp1_debug_dump_regs(struct rkisp1_device *rkisp1, in rkisp1_debug_dump_regs() argument 44 ret = pm_runtime_get_if_in_use(rkisp1->dev); in rkisp1_debug_dump_regs() 49 val = rkisp1_read(rkisp1, offset + regs->reg); in rkisp1_debug_dump_regs() 52 shd = rkisp1_read(rkisp1, offset + regs->shd); in rkisp1_debug_dump_regs() 60 pm_runtime_put(rkisp1->dev); in rkisp1_debug_dump_regs() 81 struct rkisp1_device *rkisp1 = m->private; in rkisp1_debug_dump_core_regs_show() local 83 return rkisp1_debug_dump_regs(rkisp1, m, 0, registers); in rkisp1_debug_dump_core_regs_show() 97 struct rkisp1_device *rkisp1 = m->private; in rkisp1_debug_dump_isp_regs_show() local 99 return rkisp1_debug_dump_regs(rkisp1, m, 0, registers); in rkisp1_debug_dump_isp_regs_show() 120 return rkisp1_debug_dump_regs(rsz->rkisp1, m, rsz->regs_base, registers); in rkisp1_debug_dump_rsz_regs_show() [all …]
|
D | rkisp1-capture.c | 375 u32 mi_ctrl = rkisp1_read(cap->rkisp1, RKISP1_CIF_MI_CTRL); in rkisp1_mi_config_ctrl() 386 rkisp1_write(cap->rkisp1, RKISP1_CIF_MI_CTRL, mi_ctrl); in rkisp1_mi_config_ctrl() 404 u32 mi_imsc = rkisp1_read(cap->rkisp1, RKISP1_CIF_MI_IMSC); in rkisp1_irq_frame_end_enable() 407 rkisp1_write(cap->rkisp1, RKISP1_CIF_MI_IMSC, mi_imsc); in rkisp1_irq_frame_end_enable() 413 struct rkisp1_device *rkisp1 = cap->rkisp1; in rkisp1_mp_config() local 416 rkisp1_write(rkisp1, cap->config->mi.y_size_init, in rkisp1_mp_config() 418 rkisp1_write(rkisp1, cap->config->mi.cb_size_init, in rkisp1_mp_config() 420 rkisp1_write(rkisp1, cap->config->mi.cr_size_init, in rkisp1_mp_config() 427 reg = rkisp1_read(rkisp1, RKISP1_CIF_MI_XTD_FORMAT_CTRL); in rkisp1_mp_config() 432 rkisp1_write(rkisp1, RKISP1_CIF_MI_XTD_FORMAT_CTRL, reg); in rkisp1_mp_config() [all …]
|
D | rkisp1-common.h | 176 struct rkisp1_device *rkisp1; member 201 struct rkisp1_device *rkisp1; member 284 struct rkisp1_device *rkisp1; member 328 struct rkisp1_device *rkisp1; member 373 struct rkisp1_device *rkisp1; member 402 struct rkisp1_device *rkisp1; member 507 rkisp1_write(struct rkisp1_device *rkisp1, unsigned int addr, u32 val) in rkisp1_write() argument 509 writel(val, rkisp1->base_addr + addr); in rkisp1_write() 512 static inline u32 rkisp1_read(struct rkisp1_device *rkisp1, unsigned int addr) in rkisp1_read() argument 514 return readl(rkisp1->base_addr + addr); in rkisp1_read() [all …]
|
D | Makefile | 3 rockchip-isp1-y := rkisp1-capture.o \ 4 rkisp1-common.o \ 5 rkisp1-csi.o \ 6 rkisp1-dev.o \ 7 rkisp1-isp.o \ 8 rkisp1-resizer.o \ 9 rkisp1-stats.o \ 10 rkisp1-params.o 12 rockchip-isp1-$(CONFIG_DEBUG_FS) += rkisp1-debug.o
|
D | rkisp1-resizer.c | 111 return rkisp1_read(rsz->rkisp1, rsz->regs_base + offset); in rkisp1_rsz_read() 117 rkisp1_write(rsz->rkisp1, rsz->regs_base + offset, value); in rkisp1_rsz_write() 155 u32 dc_ctrl = rkisp1_read(rsz->rkisp1, rsz->config->dual_crop.ctrl); in rkisp1_dcrop_disable() 164 rkisp1_write(rsz->rkisp1, rsz->config->dual_crop.ctrl, dc_ctrl); in rkisp1_dcrop_disable() 170 struct rkisp1_device *rkisp1 = rsz->rkisp1; in rkisp1_dcrop_config() local 184 dev_dbg(rkisp1->dev, "capture %d crop disabled\n", rsz->id); in rkisp1_dcrop_config() 188 dc_ctrl = rkisp1_read(rkisp1, rsz->config->dual_crop.ctrl); in rkisp1_dcrop_config() 189 rkisp1_write(rkisp1, rsz->config->dual_crop.h_offset, sink_crop->left); in rkisp1_dcrop_config() 190 rkisp1_write(rkisp1, rsz->config->dual_crop.v_offset, sink_crop->top); in rkisp1_dcrop_config() 191 rkisp1_write(rkisp1, rsz->config->dual_crop.h_size, sink_crop->width); in rkisp1_dcrop_config() [all …]
|
D | rkisp1-csi.h | 18 int rkisp1_csi_init(struct rkisp1_device *rkisp1); 19 void rkisp1_csi_cleanup(struct rkisp1_device *rkisp1); 21 int rkisp1_csi_register(struct rkisp1_device *rkisp1); 22 void rkisp1_csi_unregister(struct rkisp1_device *rkisp1); 24 int rkisp1_csi_link_sensor(struct rkisp1_device *rkisp1, struct v4l2_subdev *sd,
|
/linux-6.1.9/Documentation/admin-guide/media/ |
D | rkisp1.rst | 6 Rockchip Image Signal Processor (rkisp1) 13 and RK3399 SoCs. The driver is located under drivers/staging/media/rkisp1 36 .. kernel-figure:: rkisp1.dot 99 are being processed by the rkisp1 to userspace applications. 136 "media-ctl" "-d" "platform:rkisp1" "-r" 137 "media-ctl" "-d" "platform:rkisp1" "-l" "'imx219 4-0010':0 -> 'rkisp1_isp':0 [1]" 138 "media-ctl" "-d" "platform:rkisp1" "-l" "'rkisp1_isp':2 -> 'rkisp1_resizer_selfpath':0 [1]" 139 "media-ctl" "-d" "platform:rkisp1" "-l" "'rkisp1_isp':2 -> 'rkisp1_resizer_mainpath':0 [0]" 142 "media-ctl" "-d" "platform:rkisp1" "--set-v4l2" '"imx219 4-0010":0 [fmt:SRGGB10_1X10/1640x1232]' 145 …"media-ctl" "-d" "platform:rkisp1" "--set-v4l2" '"rkisp1_isp":0 [fmt:SRGGB10_1X10/1640x1232 crop: … [all …]
|
D | v4l-drivers.rst | 28 rkisp1
|
/linux-6.1.9/Documentation/userspace-api/media/v4l/ |
D | pixfmt-meta-rkisp1.rst | 18 ``rkisp1-config.h``. So the structure can be obtained from the buffer by: 34 ``rkisp1-config.h``. So the structure can be obtained from the buffer by: 47 rkisp1 uAPI data types 50 .. kernel-doc:: include/uapi/linux/rkisp1-config.h
|
D | meta-formats.rst | 17 pixfmt-meta-rkisp1
|
/linux-6.1.9/Documentation/driver-api/media/drivers/ |
D | rkisp1.rst | 3 The Rockchip Image Signal Processor Driver (rkisp1) 9 The rkisp1 block underwent some changes between SoC implementations. 18 Right now the kernel supports rkisp1 implementations based
|
D | index.rst | 24 rkisp1
|
/linux-6.1.9/drivers/media/platform/rockchip/ |
D | Makefile | 3 obj-y += rkisp1/
|
D | Kconfig | 6 source "drivers/media/platform/rockchip/rkisp1/Kconfig"
|
/linux-6.1.9/arch/arm64/boot/dts/rockchip/ |
D | px30.dtsi | 1215 compatible = "rockchip,px30-cif-isp"; /*rk3326-rkisp1*/
|
/linux-6.1.9/ |
D | MAINTAINERS | 17798 F: Documentation/admin-guide/media/rkisp1.rst 17800 F: Documentation/userspace-api/media/v4l/pixfmt-meta-rkisp1.rst 17801 F: drivers/media/platform/rockchip/rkisp1 17802 F: include/uapi/linux/rkisp1-config.h
|