1 From 738defbb964c5d2a34b08c24ac0e7fd4afb16173 Mon Sep 17 00:00:00 2001
2 From: Naushir Patuck <naush@raspberrypi.com>
3 Date: Thu, 7 May 2020 15:50:04 +0100
4 Subject: [PATCH] dtoverlays: Add IMX477 sensor overlay
6 Add an overlay for the Sony IMX477 CMOS sensor device.
7 Also update overlay README and Makefile.
9 Signed-off-by: Naushir Patuck <naush@raspberrypi.com>
11 arch/arm/boot/dts/overlays/Makefile | 1 +
12 arch/arm/boot/dts/overlays/README | 8 ++
13 arch/arm/boot/dts/overlays/imx477-overlay.dts | 110 ++++++++++++++++++
14 3 files changed, 119 insertions(+)
15 create mode 100644 arch/arm/boot/dts/overlays/imx477-overlay.dts
17 --- a/arch/arm/boot/dts/overlays/Makefile
18 +++ b/arch/arm/boot/dts/overlays/Makefile
19 @@ -85,6 +85,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 @@ -1390,6 +1390,14 @@ Load: dtoverlay=imx219
34 +Info: Sony IMX477 camera module.
35 + Uses Unicam 1, which is the standard camera connector on most Pi
37 +Load: dtoverlay=imx477
42 Info: Configures the IQaudio Codec audio card
43 Load: dtoverlay=iqaudio-codec
45 +++ b/arch/arm/boot/dts/overlays/imx477-overlay.dts
47 +// SPDX-License-Identifier: GPL-2.0-only
48 +// Definitions for IMX477 camera module on VC I2C bus
52 +#include <dt-bindings/gpio/gpio.h>
55 + compatible = "brcm,bcm2835";
58 + target = <&i2c_csi_dsi>;
60 + #address-cells = <1>;
65 + compatible = "sony,imx477";
69 + clocks = <&imx477_clk>;
70 + clock-names = "xclk";
72 + VANA-supply = <&imx477_vana>; /* 2.8v */
73 + VDIG-supply = <&imx477_vdig>; /* 1.05v */
74 + VDDL-supply = <&imx477_vddl>; /* 1.8v */
77 + imx477_0: endpoint {
78 + remote-endpoint = <&csi1_ep>;
81 + clock-noncontinuous;
83 + /bits/ 64 <450000000>;
97 + remote-endpoint = <&imx477_0>;
104 + target = <&i2c0if>;
113 + imx477_vana: fixedregulator@0 {
114 + compatible = "regulator-fixed";
115 + regulator-name = "imx477_vana";
116 + regulator-min-microvolt = <2800000>;
117 + regulator-max-microvolt = <2800000>;
118 + gpio = <&gpio 41 GPIO_ACTIVE_HIGH>;
119 + enable-active-high;
120 + startup-delay-us = <300000>;
122 + imx477_vdig: fixedregulator@1 {
123 + compatible = "regulator-fixed";
124 + regulator-name = "imx477_vdig";
125 + regulator-min-microvolt = <1050000>;
126 + regulator-max-microvolt = <1050000>;
128 + imx477_vddl: fixedregulator@2 {
129 + compatible = "regulator-fixed";
130 + regulator-name = "imx477_vddl";
131 + regulator-min-microvolt = <1800000>;
132 + regulator-max-microvolt = <1800000>;
134 + imx477_clk: camera-clk {
135 + compatible = "fixed-clock";
136 + #clock-cells = <0>;
137 + clock-frequency = <24000000>;
143 + target = <&i2c0mux>;
150 + target-path="/__overrides__";
152 + cam0-pwdn-ctrl = <&imx477_vana>,"gpio:0";
153 + cam0-pwdn = <&imx477_vana>,"gpio:4";