-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlays: Add overlay for the OV64A40 Arducam Camera Module
Arducam have integrated an Omnivision OV64A40 with a ROHM BU64754 VCM with a Raspberry Pi compatible cable pinout. Provide an overlay to support the module. Also add support to the camera mux overlays. Signed-off-by: Jacopo Mondi <[email protected]> Signed-off-by: Kieran Bingham <[email protected]>
- Loading branch information
Jacopo Mondi
committed
Dec 6, 2023
1 parent
aeb4981
commit 07926d8
Showing
6 changed files
with
247 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
// SPDX-License-Identifier: GPL-2.0-only | ||
// Definitions for OV64A40 camera module on VC I2C bus | ||
/dts-v1/; | ||
/plugin/; | ||
|
||
/{ | ||
compatible = "brcm,bcm2835"; | ||
|
||
i2c_frag: fragment@0 { | ||
target = <&i2c_csi_dsi>; | ||
__overlay__ { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
status = "okay"; | ||
|
||
#include "ov64a40.dtsi" | ||
}; | ||
}; | ||
|
||
csi_frag: fragment@1 { | ||
target = <&csi1>; | ||
csi: __overlay__ { | ||
status = "okay"; | ||
brcm,media-controller; | ||
|
||
port{ | ||
csi_ep: endpoint{ | ||
remote-endpoint = <&cam_endpoint>; | ||
clock-lanes = <0>; | ||
data-lanes = <1 2>; | ||
}; | ||
}; | ||
}; | ||
}; | ||
|
||
fragment@2 { | ||
target = <&i2c0if>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
clk_frag: fragment@3 { | ||
target = <&cam1_clk>; | ||
__overlay__ { | ||
clock-frequency = <24000000>; | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@4 { | ||
target = <&i2c0mux>; | ||
__overlay__ { | ||
status = "okay"; | ||
}; | ||
}; | ||
|
||
fragment@5 { | ||
target = <&cam_node>; | ||
__overlay__ { | ||
lens-focus = <&vcm_node>; | ||
}; | ||
}; | ||
|
||
__overrides__ { | ||
rotation = <&cam_node>,"rotation:0"; | ||
orientation = <&cam_node>,"orientation:0"; | ||
media-controller = <&csi>,"brcm,media-controller?"; | ||
cam0 = <&i2c_frag>, "target:0=",<&i2c_csi_dsi0>, | ||
<&csi_frag>, "target:0=",<&csi0>, | ||
<&clk_frag>, "target:0=",<&cam0_clk>, | ||
<&cam_node>, "clocks:0=",<&cam0_clk>, | ||
<&cam_node>, "avdd-supply:0=",<&cam0_reg>, | ||
<&vcm_node>, "vdd-supply:0=",<&cam0_reg>; | ||
vcm = <&vcm_node>, "status", | ||
<0>, "=5"; | ||
link-frequency = <&cam_endpoint>,"link-frequencies#0"; | ||
}; | ||
}; | ||
|
||
&cam_node { | ||
status = "okay"; | ||
}; | ||
|
||
&cam_endpoint { | ||
remote-endpoint = <&csi_ep>; | ||
}; | ||
|
||
&vcm_node { | ||
status = "okay"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Fragment that configures an OV64A40 | ||
|
||
cam_node: ov64a40@36 { | ||
compatible = "ovti,ov64a40"; | ||
reg = <0x36>; | ||
status = "disabled"; | ||
|
||
clocks = <&cam1_clk>; | ||
clock-names = "xclk"; | ||
|
||
avdd-supply = <&cam1_reg>; /* 2.8v */ | ||
dovdd-supply = <&cam_dummy_reg>;/* 1.8v */ | ||
dvdd-supply = <&cam_dummy_reg>; /* 1.1v */ | ||
|
||
rotation = <180>; | ||
orientation = <2>; | ||
|
||
port { | ||
cam_endpoint: endpoint { | ||
bus-type = <4>; | ||
clock-lanes = <0>; | ||
data-lanes = <1 2>; | ||
link-frequencies = | ||
/bits/ 64 <456000000>; | ||
}; | ||
}; | ||
}; | ||
|
||
vcm_node: bu64754@76 { | ||
compatible = "rohm,bu64754"; | ||
reg = <0x76>; | ||
status = "disabled"; | ||
vdd-supply = <&cam1_reg>; | ||
}; |