Skip to content

Commit ec2949a

Browse files
njhollinghurstpelwell
authored andcommitted
overlays: Add "always-on" parameter to imx477 and imx296
Leave the camera's power supplies up, to prevent the camera clamping its 1.8V digital I/Os to ground. This may be useful when synchronizing multiple camera systems using XVS or XTRIG. Signed-off-by: Nick Hollinghurst <[email protected]>
1 parent c615c29 commit ec2949a

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2520,6 +2520,8 @@ Params: rotation Mounting rotation of the camera sensor (0 or
25202520
clock-frequency Sets the clock frequency to match that used on
25212521
the board, which should be one of 54000000
25222522
(the default), 37125000 or 74250000.
2523+
always-on Leave the regulator powered up, to stop the
2524+
camera clamping I/Os such as XTRIG to 0V.
25232525

25242526

25252527
Name: imx327
@@ -2558,6 +2560,8 @@ Params: rotation Mounting rotation of the camera sensor (0 or
25582560
configuring the sensor (default on)
25592561
cam0 Adopt the default configuration for CAM0 on a
25602562
Compute Module (CSI0, i2c_vc, and cam0_reg).
2563+
always-on Leave the regulator powered up, to stop the
2564+
camera clamping I/Os such as XVS to 0V.
25612565

25622566

25632567
Name: imx462
@@ -2596,6 +2600,8 @@ Params: rotation Mounting rotation of the camera sensor (0 or
25962600
configuring the sensor (default on)
25972601
cam0 Adopt the default configuration for CAM0 on a
25982602
Compute Module (CSI0, i2c_vc, and cam0_reg).
2603+
always-on Leave the regulator powered up, to stop the
2604+
camera clamping I/Os such as XVS to 0V.
25992605

26002606

26012607
Name: imx519

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@
3737
};
3838
};
3939

40+
reg_alwayson_frag: fragment@99 {
41+
target = <&cam1_reg>;
42+
__dormant__ {
43+
regulator-always-on;
44+
};
45+
};
46+
4047
i2c_frag: fragment@100 {
4148
target = <&i2c_csi_dsi>;
4249
__overlay__ {
@@ -98,8 +105,10 @@
98105
<&csi_frag>, "target:0=",<&csi0>,
99106
<&clk_frag>, "target:0=",<&cam0_clk>,
100107
<&reg_frag>, "target:0=",<&cam0_reg>,
108+
<&reg_alwayson_frag>, "target:0=",<&cam0_reg>,
101109
<&imx296>, "clocks:0=",<&cam0_clk>,
102110
<&imx296>, "avdd-supply:0=",<&cam0_reg>;
103111
clock-frequency = <&clk_over>, "clock-frequency:0";
112+
always-on = <0>, "+99";
104113
};
105114
};

arch/arm/boot/dts/overlays/imx477_378-overlay.dtsi

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333
};
3434
};
3535

36+
reg_alwayson_frag: fragment@99 {
37+
target = <&cam1_reg>;
38+
__dormant__ {
39+
regulator-always-on;
40+
};
41+
};
42+
3643
i2c_frag: fragment@100 {
3744
target = <&i2c_csi_dsi>;
3845
__overlay__ {
@@ -69,8 +76,10 @@
6976
<&csi_frag>, "target:0=",<&csi0>,
7077
<&clk_frag>, "target:0=",<&cam0_clk>,
7178
<&reg_frag>, "target:0=",<&cam0_reg>,
79+
<&reg_alwayson_frag>, "target:0=",<&cam0_reg>,
7280
<&cam_node>, "clocks:0=",<&cam0_clk>,
7381
<&cam_node>, "VANA-supply:0=",<&cam0_reg>;
82+
always-on = <0>, "+99";
7483
};
7584
};
7685

0 commit comments

Comments
 (0)