30178c8f4cde8408c1cca5edb827d629dd6f2193
[openwrt/staging/ansuel.git] /
1 From 55eafc594a9ec1aaa8b01207c5361e79d6b52fe7 Mon Sep 17 00:00:00 2001
2 From: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
3 Date: Fri, 11 Nov 2022 13:36:07 +0000
4 Subject: [PATCH] imx296-overlay: clock-frequency defaults to 54MHz but
5 can be overridden
6
7 Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
8 ---
9 arch/arm/boot/dts/overlays/README | 3 +++
10 arch/arm/boot/dts/overlays/imx296-overlay.dts | 5 +++--
11 2 files changed, 6 insertions(+), 2 deletions(-)
12
13 --- a/arch/arm/boot/dts/overlays/README
14 +++ b/arch/arm/boot/dts/overlays/README
15 @@ -2207,6 +2207,9 @@ Params: rotation Mounting
16 configuring the sensor (default on)
17 cam0 Adopt the default configuration for CAM0 on a
18 Compute Module (CSI0, i2c_vc, and cam0_reg).
19 + clock-frequency Sets the clock frequency to match that used on
20 + the board, which should be one of 54000000
21 + (the default), 37125000 or 74250000.
22
23
24 Name: imx327
25 --- a/arch/arm/boot/dts/overlays/imx296-overlay.dts
26 +++ b/arch/arm/boot/dts/overlays/imx296-overlay.dts
27 @@ -17,9 +17,9 @@
28
29 clk_frag: fragment@1 {
30 target = <&cam1_clk>;
31 - __overlay__ {
32 + clk_over: __overlay__ {
33 status = "okay";
34 - clock-frequency = <37125000>;
35 + clock-frequency = <54000000>;
36 };
37 };
38
39 @@ -99,5 +99,6 @@
40 <&clk_frag>, "target:0=",<&cam0_clk>,
41 <&imx296>, "clocks:0=",<&cam0_clk>,
42 <&imx296>, "VANA-supply:0=",<&cam0_reg>;
43 + clock-frequency = <&clk_over>, "clock-frequency:0";
44 };
45 };