Skip to content

Commit

Permalink
Update rk3588s-orangepi-5-camera2.dtsi, add imx477 support
Browse files Browse the repository at this point in the history
  • Loading branch information
Monstrofil committed Aug 6, 2023
1 parent c5f6a4f commit 1e28e13
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk3588s-orangepi-5-camera2.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
remote-endpoint = <&ov13855_out>;
data-lanes = <1 2>;
};

mipi_in_cam2: endpoint@2 {
reg = <2>;
remote-endpoint = <&imx477_out>;
data-lanes = <1 2>;
};
};

port@1 {
Expand Down Expand Up @@ -114,6 +120,30 @@
};
};
};

imx477_2: imx477-2@1a {
compatible = "sony,imx477";
status = "disabled";
reg = <0x1a>;
clocks = <&cru CLK_MIPI_CAMARAOUT_M4>;
clock-names = "xvclk";
power-domains = <&power RK3588_PD_VI>;
pinctrl-names = "default";
pinctrl-0 = <&mipim0_camera4_clk>;
rockchip,grf = <&sys_grf>;
reset-gpios = <&gpio1 RK_PB2 GPIO_ACTIVE_HIGH>;
pwdn-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>;
rockchip,camera-module-index = <0>;
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "CMK-CT0116";
rockchip,camera-module-lens-name = "default";
port {
imx477_out: endpoint {
remote-endpoint = <&mipi_in_cam2>;
data-lanes = <1 2>;
};
};
};
};

&mipi0_csi2 {
Expand Down

1 comment on commit 1e28e13

@Abhra121
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After this 2 files are created camera2.dtsi and imx447-c2.dts how to compile them into the build as I was trying for imx415 its throwing Unable to parse the device tree

Please sign in to comment.