1 From f76b8590a1808ae27ce687b2ab5eedb3cd4b3149 Mon Sep 17 00:00:00 2001
2 From: Dave Stevenson <dave.stevenson@raspberrypi.com>
3 Date: Fri, 25 Feb 2022 18:16:26 +0000
4 Subject: [PATCH] dtoverlays: Add overlay for Omnivision OV2311 image
7 Adds an overlay for the OV2311 1600x1300 monochrome global
10 Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
12 arch/arm/boot/dts/overlays/Makefile | 1 +
13 arch/arm/boot/dts/overlays/README | 15 +++
14 arch/arm/boot/dts/overlays/ov2311-overlay.dts | 93 +++++++++++++++++++
15 3 files changed, 109 insertions(+)
16 create mode 100644 arch/arm/boot/dts/overlays/ov2311-overlay.dts
18 --- a/arch/arm/boot/dts/overlays/Makefile
19 +++ b/arch/arm/boot/dts/overlays/Makefile
20 @@ -139,6 +139,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
28 --- a/arch/arm/boot/dts/overlays/README
29 +++ b/arch/arm/boot/dts/overlays/README
30 @@ -2421,6 +2421,21 @@ Params: speed Display
31 xohms Touchpanel sensitivity (X-plate resistance)
35 +Info: Omnivision OV2311 camera module.
36 + Uses Unicam 1, which is the standard camera connector on most Pi
38 +Load: dtoverlay=ov2311,<param>=<val>
39 +Params: rotation Mounting rotation of the camera sensor (0 or
41 + orientation Sensor orientation (0 = front, 1 = rear,
42 + 2 = external, default external)
43 + media-controller Configure use of Media Controller API for
44 + configuring the sensor (default on)
45 + cam0 Adopt the default configuration for CAM0 on a
46 + Compute Module (CSI0, i2c_vc, and cam0_reg).
50 Info: Omnivision OV5647 camera module.
51 Uses Unicam 1, which is the standard camera connector on most Pi
53 +++ b/arch/arm/boot/dts/overlays/ov2311-overlay.dts
55 +// SPDX-License-Identifier: GPL-2.0-only
56 +// Definitions for OV2311 camera module on VC I2C bus
60 +#include <dt-bindings/gpio/gpio.h>
63 + compatible = "brcm,bcm2835";
65 + i2c_frag: fragment@0 {
66 + target = <&i2c_csi_dsi>;
68 + #address-cells = <1>;
73 + compatible = "ovti,ov2311";
77 + clocks = <&cam1_clk>;
78 + clock-names = "xvclk";
80 + avdd-supply = <&cam1_reg>;
81 + dovdd-supply = <&cam_dummy_reg>;
82 + dvdd-supply = <&cam_dummy_reg>;
88 + ov2311_0: endpoint {
89 + remote-endpoint = <&csi1_ep>;
93 + /bits/ 64 <400000000>;
100 + csi_frag: fragment@1 {
104 + brcm,media-controller;
107 + csi1_ep: endpoint {
108 + remote-endpoint = <&ov2311_0>;
109 + data-lanes = <1 2>;
116 + target = <&i2c0if>;
123 + target = <&i2c0mux>;
129 + clk_frag: fragment@4 {
130 + target = <&cam1_clk>;
133 + clock-frequency = <24000000>;
138 + rotation = <&ov2311>,"rotation:0";
139 + orientation = <&ov2311>,"orientation:0";
140 + media-controller = <&csi>,"brcm,media-controller?";
141 + cam0 = <&i2c_frag>, "target:0=",<&i2c_vc>,
142 + <&csi_frag>, "target:0=",<&csi0>,
143 + <&clk_frag>, "target:0=",<&cam0_clk>,
144 + <&ov2311>, "clocks:0=",<&cam0_clk>,
145 + <&ov2311>, "avdd-supply:0=",<&cam0_reg>;