imx296-overlay: clock-frequency defaults to 54MHz but can be overridden
authorNick Hollinghurst <nick.hollinghurst@raspberrypi.com>
Fri, 11 Nov 2022 13:36:07 +0000 (13:36 +0000)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 11 Nov 2022 14:45:45 +0000 (14:45 +0000)
Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
arch/arm/boot/dts/overlays/README
arch/arm/boot/dts/overlays/imx296-overlay.dts

index 895d0c7..3973fb9 100644 (file)
@@ -2207,6 +2207,9 @@ Params: rotation                Mounting rotation of the camera sensor (0 or
                                 configuring the sensor (default on)
         cam0                    Adopt the default configuration for CAM0 on a
                                 Compute Module (CSI0, i2c_vc, and cam0_reg).
+        clock-frequency         Sets the clock frequency to match that used on
+                                the board, which should be one of 54000000
+                                (the default), 37125000 or 74250000.
 
 
 Name:   imx327
index 85b6f7e..44257b4 100644 (file)
@@ -17,9 +17,9 @@
 
        clk_frag: fragment@1 {
                target = <&cam1_clk>;
-               __overlay__ {
+               clk_over: __overlay__ {
                        status = "okay";
-                       clock-frequency = <37125000>;
+                       clock-frequency = <54000000>;
                };
        };
 
@@ -99,5 +99,6 @@
                       <&clk_frag>, "target:0=",<&cam0_clk>,
                       <&imx296>, "clocks:0=",<&cam0_clk>,
                       <&imx296>, "VANA-supply:0=",<&cam0_reg>;
+               clock-frequency = <&clk_over>, "clock-frequency:0";
        };
 };