Skip to content

Commit ae0bdcd

Browse files
6by9popcornmix
authored andcommitted
dtoverlays: imx415: Add an override for 37.125MHz clock
Changing clock source also requires changing the link frequency. Add a single override that does both for Waveshare modules that are now using 37.125MHz clocks instead of 24MHz. Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
1 parent 3e22e97 commit ae0bdcd

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2873,6 +2873,9 @@ Params: addr Set I2C address of sensor. Valid values are
28732873
cam0 Adopt the default configuration for CAM0 on a
28742874
Compute Module (CSI0, i2c_vc, and cam0_reg).
28752875
vcm Enable ad5398 VCM associated with the sensor.
2876+
clk-37125 Alternative to clock-frequency=37125000 and
2877+
link-frequency=445500000 for Waveshare modules
2878+
with 37.125MHz clock sources.
28762879

28772880

28782881
Name: imx462

arch/arm/boot/dts/overlays/imx415-overlay.dts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@
103103
<&cam_node>,"lens-focus:0=", <&vcm>;
104104
clock-frequency = <&cam_clk>, "clock-frequency:0";
105105
link-frequency = <&cam_endpoint>,"link-frequencies#0";
106+
clk-37125 = <&cam_endpoint>,"link-frequencies#0=445500000",
107+
<&cam_clk>, "clock-frequency:0=37125000";
106108
4lane = <0>, "+201+202";
107109
};
108110
};

0 commit comments

Comments
 (0)