Skip to content

Commit add8c28

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 4ea1e0b commit add8c28

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
@@ -2524,6 +2524,8 @@ Params: rotation Mounting rotation of the camera sensor (0 or
25242524
clock-frequency Sets the clock frequency to match that used on
25252525
the board, which should be one of 54000000
25262526
(the default), 37125000 or 74250000.
2527+
always-on Leave the regulator powered up, to stop the
2528+
camera clamping I/Os such as XTRIG to 0V.
25272529

25282530

25292531
Name: imx327
@@ -2562,6 +2564,8 @@ Params: rotation Mounting rotation of the camera sensor (0 or
25622564
configuring the sensor (default on)
25632565
cam0 Adopt the default configuration for CAM0 on a
25642566
Compute Module (CSI0, i2c_vc, and cam0_reg).
2567+
always-on Leave the regulator powered up, to stop the
2568+
camera clamping I/Os such as XVS to 0V.
25652569

25662570

25672571
Name: imx462
@@ -2600,6 +2604,8 @@ Params: rotation Mounting rotation of the camera sensor (0 or
26002604
configuring the sensor (default on)
26012605
cam0 Adopt the default configuration for CAM0 on a
26022606
Compute Module (CSI0, i2c_vc, and cam0_reg).
2607+
always-on Leave the regulator powered up, to stop the
2608+
camera clamping I/Os such as XVS to 0V.
26032609

26042610

26052611
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)