media: v4l2-core: add pixel clock max frequency parallel port property
Add pclk-max-frequency property in parallel port endpoint in order to inform sensor of the maximum pixel clock frequency admissible by camera interface that is connected on. Signed-off-by: Hugues Fruchet <hugues.fruchet@st.com> Change-Id: I7bb7f8c5d95af6b19ace97a434ade2dae5d29dd6 Reviewed-on: https://gerrit.st.com/c/mpu/oe/st/linux-stm32/+/299249 ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com> ACI: CIBUILD <MDG-smet-aci-builds@list.st.com> Tested-by: Alain VOLMAT <alain.volmat@foss.st.com> Reviewed-by: Alain VOLMAT <alain.volmat@foss.st.com> Reviewed-by: Philippe CORNU <philippe.cornu@foss.st.com> Domain-Review: Philippe CORNU <philippe.cornu@foss.st.com>
This commit is contained in:
committed by
Eric Fourmont
parent
cc54460399
commit
edef9eb9d5
@ -347,6 +347,9 @@ v4l2_fwnode_endpoint_parse_parallel_bus(struct fwnode_handle *fwnode,
|
||||
pr_debug("data-enable-active %s\n", v ? "high" : "low");
|
||||
}
|
||||
|
||||
if (!fwnode_property_read_u32(fwnode, "pclk-max-frequency", &v))
|
||||
bus->pclk_max_frequency = v;
|
||||
|
||||
switch (bus_type) {
|
||||
default:
|
||||
bus->flags = flags;
|
||||
|
||||
@ -94,11 +94,13 @@ struct v4l2_mbus_config_mipi_csi2 {
|
||||
* @flags: media bus (V4L2_MBUS_*) flags
|
||||
* @bus_width: bus width in bits
|
||||
* @data_shift: data shift in bits
|
||||
* @pclk_max_frequency: maximum pixel clock in hertz
|
||||
*/
|
||||
struct v4l2_mbus_config_parallel {
|
||||
unsigned int flags;
|
||||
unsigned char bus_width;
|
||||
unsigned char data_shift;
|
||||
unsigned int pclk_max_frequency;
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user