1 From d8faff7e7581ee3417675e2f64da18ffb831751a Mon Sep 17 00:00:00 2001
2 From: Lee Jackson <info@arducam.com>
3 Date: Fri, 27 Aug 2021 14:45:43 +0800
4 Subject: [PATCH] overlays: Add imx519-overlay.dts
6 Added overlays for enabling IMX519 and add the
7 relevant information to the README.
9 Signed-off-by: Lee Jackson <info@arducam.com>
11 arch/arm/boot/dts/overlays/Makefile | 1 +
12 arch/arm/boot/dts/overlays/README | 11 ++
13 arch/arm/boot/dts/overlays/imx519-overlay.dts | 115 ++++++++++++++++++
14 3 files changed, 127 insertions(+)
15 create mode 100644 arch/arm/boot/dts/overlays/imx519-overlay.dts
17 --- a/arch/arm/boot/dts/overlays/Makefile
18 +++ b/arch/arm/boot/dts/overlays/Makefile
19 @@ -98,6 +98,7 @@ dtbo-$(CONFIG_ARCH_BCM2835) += \
26 iqaudio-dacplus.dtbo \
27 --- a/arch/arm/boot/dts/overlays/README
28 +++ b/arch/arm/boot/dts/overlays/README
29 @@ -1738,6 +1738,17 @@ Params: rotation Mounting
30 2 = external, default external)
34 +Info: Sony IMX519 camera module.
35 + Uses Unicam 1, which is the standard camera connector on most Pi
37 +Load: dtoverlay=imx519,<param>=<val>
38 +Params: rotation Mounting rotation of the camera sensor (0 or
40 + orientation Sensor orientation (0 = front, 1 = rear,
41 + 2 = external, default external)
45 Info: Configures the IQaudio Codec audio card
46 Load: dtoverlay=iqaudio-codec
48 +++ b/arch/arm/boot/dts/overlays/imx519-overlay.dts
50 +// SPDX-License-Identifier: GPL-2.0-only
51 +// Definitions for imx519 camera module on VC I2C bus
55 +#include <dt-bindings/gpio/gpio.h>
58 + compatible = "brcm,bcm2835";
61 + target = <&i2c_csi_dsi>;
63 + #address-cells = <1>;
68 + compatible = "sony,imx519";
72 + clocks = <&imx519_clk>;
73 + clock-names = "xclk";
75 + VANA-supply = <&cam1_reg>; /* 2.8v */
76 + VDIG-supply = <&imx519_vdig>; /* 1.8v */
77 + VDDL-supply = <&imx519_vddl>; /* 1.2v */
83 + imx519_0: endpoint {
84 + remote-endpoint = <&csi1_ep>;
87 + clock-noncontinuous;
89 + /bits/ 64 <493500000>;
103 + remote-endpoint = <&imx519_0>;
105 + data-lanes = <1 2>;
106 + clock-noncontinuous;
113 + target = <&i2c0if>;
122 + imx519_vdig: fixedregulator@1 {
123 + compatible = "regulator-fixed";
124 + regulator-name = "imx519_vdig";
125 + regulator-min-microvolt = <1800000>;
126 + regulator-max-microvolt = <1800000>;
128 + imx519_vddl: fixedregulator@2 {
129 + compatible = "regulator-fixed";
130 + regulator-name = "imx519_vddl";
131 + regulator-min-microvolt = <1200000>;
132 + regulator-max-microvolt = <1200000>;
135 + imx519_clk: camera-clk {
136 + compatible = "fixed-clock";
137 + #clock-cells = <0>;
138 + clock-frequency = <24000000>;
144 + target = <&i2c0mux>;
151 + target = <&cam1_reg>;
154 + regulator-name = "imx519_vana";
155 + regulator-min-microvolt = <2800000>;
156 + regulator-max-microvolt = <2800000>;
161 + rotation = <&imx519>,"rotation:0";
162 + orientation = <&imx519>,"orientation:0";