09518df7 | 13-Jan-2025 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: dcmipp: add has_csi2 & needs_mclk in match data
Introduce two variable has_csi and has_mclk within the match data of the driver in order to know, depending on the compatible if CSI-2 i
media: stm32: dcmipp: add has_csi2 & needs_mclk in match data
Introduce two variable has_csi and has_mclk within the match data of the driver in order to know, depending on the compatible if CSI-2 interface is available and if the mclk clk should be retrieved.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
052b228f | 13-Jan-2025 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: csi: correct unsigned or useless variable settings
Correct several missing unsigned type missing for loop variables and also remove useless initialization of variables.
Signed-off-by:
media: stm32: csi: correct unsigned or useless variable settings
Correct several missing unsigned type missing for loop variables and also remove useless initialization of variables.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
1ec16c33 | 13-Jan-2025 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: csi: remove useless fwnode_graph_get_endpoint call
The endpoint is already retrieved at the beginning of the function stm32_csi_parse_dt hence keep the endpoint pointer until the end i
media: stm32: csi: remove useless fwnode_graph_get_endpoint call
The endpoint is already retrieved at the beginning of the function stm32_csi_parse_dt hence keep the endpoint pointer until the end instead of getting a new one.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
e0c20812 | 13-Jan-2025 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: csi: simplify enable_streams error handling
Put all error handling for VC stop and CSI stop together to avoid duplication of code.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.co
media: stm32: csi: simplify enable_streams error handling
Put all error handling for VC stop and CSI stop together to avoid duplication of code.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
a3a91b6e | 13-Jan-2025 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: csi: use ARRAY_SIZE to search D-PHY table
Within stm32_csi_start, use ARRAY_SIZE loop in order to search for the right setting. Avoid useless init of lanes_ie / lanes_en.
Signed-off-b
media: stm32: csi: use ARRAY_SIZE to search D-PHY table
Within stm32_csi_start, use ARRAY_SIZE loop in order to search for the right setting. Avoid useless init of lanes_ie / lanes_en.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
c631dc74 | 13-Jan-2025 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: csi: register subdev only at end of probe
Call v4l2_async_register_subdev only whenever all initialization are completed at the end of the probe function. Remove as well useless err_fr
media: stm32: csi: register subdev only at end of probe
Call v4l2_async_register_subdev only whenever all initialization are completed at the end of the probe function. Remove as well useless err_free_priv label by returning directly upon error.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
f7cd9c94 | 13-Jan-2025 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: csi: add missing pm_runtime_put on error
Within the stm32_csi_start function, pm_runtime_put should be called upon error following pm_runtime_get_sync. Rework the function error handli
media: stm32: csi: add missing pm_runtime_put on error
Within the stm32_csi_start function, pm_runtime_put should be called upon error following pm_runtime_get_sync. Rework the function error handling by putting a label in order to have common error handling for all calls requiring pm_runtime_put.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
686f27f7 | 12-Dec-2024 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: dcmipp: add core support for the stm32mp25
The stm32mp25 supports both parallel & csi inputs. An additional clock control is necessary. Skeleton of the subdev structures for the stm32m
media: stm32: dcmipp: add core support for the stm32mp25
The stm32mp25 supports both parallel & csi inputs. An additional clock control is necessary. Skeleton of the subdev structures for the stm32mp25 is added, identical for the time being to the stm32mp13 however more subdeves will be added in further commits.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
4a58f7ec | 12-Dec-2024 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: dcmipp: fill media ctl hw_revision field
Add hw_revision field information of the media controller so that application can distinguish between variants of DCMIPP implementations.
Sign
media: stm32: dcmipp: fill media ctl hw_revision field
Add hw_revision field information of the media controller so that application can distinguish between variants of DCMIPP implementations.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
58d0201e | 12-Dec-2024 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: dcmipp: avoid duplicated format on enum in bytecap
Avoid duplication of enumerated pixelformat on the bytecap video capture device. Indeed, since the bytecap format list contains both
media: stm32: dcmipp: avoid duplicated format on enum in bytecap
Avoid duplication of enumerated pixelformat on the bytecap video capture device. Indeed, since the bytecap format list contains both CSI & parallel 16bits formats, ensure that same pixelformat are not reported twice when performing enumeration of supported formats.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
e2650231 | 12-Dec-2024 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: dcmipp: add 1X16 RGB / YUV formats support
Add 1X16 RGB & YUV formats support within bytecap & byteproc. Slightly change the link_validate function to be able to validate against eithe
media: stm32: dcmipp: add 1X16 RGB / YUV formats support
Add 1X16 RGB & YUV formats support within bytecap & byteproc. Slightly change the link_validate function to be able to validate against either 1X16 or 2X8 variant of a format.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
03abfb7b | 12-Dec-2024 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: dcmipp: add support for csi input into dcmipp-input
On stm32mp25, the dcmipp can accept data coming from a CSI bus in addition to the parallel interface. Add this support into dcmipp-
media: stm32: dcmipp: add support for csi input into dcmipp-input
On stm32mp25, the dcmipp can accept data coming from a CSI bus in addition to the parallel interface. Add this support into dcmipp-input subdev.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
d64685e1 | 12-Dec-2024 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: dcmipp: rename dcmipp_parallel into dcmipp_input
In preparation of the introduction of dcmipp csi input support, rename the dcmipp_parallel subdev into a generic dcmipp_input which wil
media: stm32: dcmipp: rename dcmipp_parallel into dcmipp_input
In preparation of the introduction of dcmipp csi input support, rename the dcmipp_parallel subdev into a generic dcmipp_input which will be in charge of handling both parallel input & csi input. Only structures / variables / functions and file naming are changed without any functional modifications.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
b0f3cc70 | 12-Dec-2024 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: dcmipp: replace s_stream with enable/disable_streams
Replace s_stream ops with enable_streams and disable_streams. At the same time, use v4l2_subdev_enable_streams and v4l2_subdev_disa
media: stm32: dcmipp: replace s_stream with enable/disable_streams
Replace s_stream ops with enable_streams and disable_streams. At the same time, use v4l2_subdev_enable_streams and v4l2_subdev_disable_streams functions instead of direct s_stream calls.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
255e0cc6 | 12-Dec-2024 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: dcmipp: use v4l2_subdev_is_streaming
Rely on v4l2_subdev_is_streaming in order to know if the subdev is streaming or not instead of relying on a local variable.
Signed-off-by: Alain V
media: stm32: dcmipp: use v4l2_subdev_is_streaming
Rely on v4l2_subdev_is_streaming in order to know if the subdev is streaming or not instead of relying on a local variable.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|
dcb0f4c1 | 12-Dec-2024 |
Alain Volmat <alain.volmat@foss.st.com> |
media: stm32: csi: addition of the STM32 CSI driver
The STM32 CSI controller is tightly coupled with the DCMIPP and act as an input stage to receive data coming from the sensor and transferring them
media: stm32: csi: addition of the STM32 CSI driver
The STM32 CSI controller is tightly coupled with the DCMIPP and act as an input stage to receive data coming from the sensor and transferring them into the DCMIPP.
Signed-off-by: Alain Volmat <alain.volmat@foss.st.com> Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
show more ...
|