157 lines
2.4 KiB
Plaintext
157 lines
2.4 KiB
Plaintext
/dts-v1/;
|
|
/plugin/;
|
|
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/pinctrl/rockchip.h>
|
|
|
|
|
|
/ {
|
|
metadata {
|
|
title = "Enable Raspberry Pi Camera v1.3";
|
|
compatible = "radxa,zero3";
|
|
category = "camera";
|
|
exclusive = "csi2_dphy0";
|
|
description = "Enable Raspberry Pi Camera v1.3.";
|
|
};
|
|
|
|
fragment@0 {
|
|
target-path = "/";
|
|
|
|
__overlay__ {
|
|
clk_cam_25m: external-camera-clock-25m {
|
|
status = "okay";
|
|
compatible = "fixed-clock";
|
|
clock-frequency = <25000000>;
|
|
clock-output-names = "clk_cam_25m";
|
|
#clock-cells = <0>;
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@1 {
|
|
target = <&i2c2>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&i2c2m1_xfer>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
camera_ov5647: camera-ov5647@36 {
|
|
status = "okay";
|
|
compatible = "ovti,ov5647";
|
|
reg = <0x36>;
|
|
clocks = <&clk_cam_25m>;
|
|
clock-names = "xvclk";
|
|
pwdn-gpios = <&gpio3 RK_PC6 GPIO_ACTIVE_LOW>;
|
|
rockchip,camera-module-index = <0>;
|
|
rockchip,camera-module-facing = "back";
|
|
rockchip,camera-module-name = "rpi-camera-v1p3";
|
|
rockchip,camera-module-lens-name = "default";
|
|
|
|
port {
|
|
ucam_out0: endpoint {
|
|
remote-endpoint = <&mipi_in_ucam0>;
|
|
data-lanes = <1 2>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@2 {
|
|
target = <&csi2_dphy_hw>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
fragment@3 {
|
|
target = <&csi2_dphy0>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
mipi_in_ucam0: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&ucam_out0>;
|
|
data-lanes = <1 2>;
|
|
};
|
|
};
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
dphy0_out: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&isp0_in>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@4 {
|
|
target = <&rkisp_vir0>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
|
|
port {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
isp0_in: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&dphy0_out>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
fragment@5 {
|
|
target = <&rkisp>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
fragment@6 {
|
|
target = <&rkisp_mmu>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
fragment@7 {
|
|
target = <&rkcif_mmu>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
};
|
|
};
|
|
|
|
fragment@8 {
|
|
target = <&rkcif>;
|
|
|
|
__overlay__ {
|
|
status = "okay";
|
|
};
|
|
};
|
|
};
|