drivers: video: mipi_csi2rx: Set clocks according to pixel rate

Instead of fixing csi2rx clock frequencies, set them according to the
pixel rate got from the camera sensor.

Signed-off-by: Trung Hieu Le <trunghieu.le@nxp.com>
Signed-off-by: Phi Bang Nguyen <phibang.nguyen@nxp.com>
This commit is contained in:
Trung Hieu Le 2024-07-24 21:38:08 +02:00 committed by Henrik Brix Andersen
commit a182394725
7 changed files with 184 additions and 96 deletions

View file

@ -60,6 +60,9 @@
compatible = "nxp,mipi-csi2rx";
reg = <0x33334444 0x200>;
status = "okay";
clocks = <&ccm IMX_CCM_MIPI_CSI2RX_ROOT_CLK 0 0>,
<&ccm IMX_CCM_MIPI_CSI2RX_UI_CLK 0 0>,
<&ccm IMX_CCM_MIPI_CSI2RX_ESC_CLK 0 0>;
ports {
#address-cells = <1>;