arm64: dts: rockchip: rv1126b-evb: Add camera support under csi0
Change-Id: Ie47099a73051ba32d5b08c62c9ba6b07906e04af Signed-off-by: Zefa Chen <zefa.chen@rock-chips.com> Signed-off-by: Ziyuan Xu <xzy.xu@rock-chips.com>
This commit is contained in:
199
arch/arm64/boot/dts/rockchip/rv1126b-evb-cam-csi0.dtsi
Normal file
199
arch/arm64/boot/dts/rockchip/rv1126b-evb-cam-csi0.dtsi
Normal file
@@ -0,0 +1,199 @@
|
|||||||
|
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
||||||
|
/*
|
||||||
|
* Copyright (c) 2025 Rockchip Electronics Co., Ltd.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
&csi2_dphy0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
ports {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
port@0 {
|
||||||
|
reg = <0>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
csi_dphy_input0: endpoint@1 {
|
||||||
|
reg = <1>;
|
||||||
|
remote-endpoint = <&sc450ai_out>;
|
||||||
|
data-lanes = <1 2>;
|
||||||
|
};
|
||||||
|
|
||||||
|
csi_dphy_input1: endpoint@2 {
|
||||||
|
reg = <2>;
|
||||||
|
remote-endpoint = <&imx415_out>;
|
||||||
|
data-lanes = <1 2 3 4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
csi_dphy_input2: endpoint@3 {
|
||||||
|
reg = <3>;
|
||||||
|
remote-endpoint = <&sc850sl_out>;
|
||||||
|
data-lanes = <1 2 3 4>;
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
port@1 {
|
||||||
|
reg = <1>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
csidphy0_out: endpoint@0 {
|
||||||
|
reg = <0>;
|
||||||
|
remote-endpoint = <&mipi0_csi2_input>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&i2c3 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-0 = <&i2c3m1_pins>;
|
||||||
|
|
||||||
|
imx415: imx415@1a {
|
||||||
|
compatible = "sony,imx415";
|
||||||
|
reg = <0x1a>;
|
||||||
|
clocks = <&cru CLK_MIPI0_OUT2IO>;
|
||||||
|
clock-names = "xvclk";
|
||||||
|
reset-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&cam_clk0_pins>;
|
||||||
|
rockchip,camera-module-index = <0>;
|
||||||
|
rockchip,camera-module-facing = "back";
|
||||||
|
rockchip,camera-module-name = "CMK-OT2022-PX1";
|
||||||
|
rockchip,camera-module-lens-name = "IR0147-50IRC-8M-F20";
|
||||||
|
port {
|
||||||
|
imx415_out: endpoint {
|
||||||
|
remote-endpoint = <&csi_dphy_input1>;
|
||||||
|
data-lanes = <1 2 3 4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sc450ai: sc450ai@30 {
|
||||||
|
compatible = "smartsens,sc450ai";
|
||||||
|
status = "okay";
|
||||||
|
reg = <0x30>;
|
||||||
|
clocks = <&cru CLK_MIPI0_OUT2IO>;
|
||||||
|
clock-names = "xvclk";
|
||||||
|
reset-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
|
||||||
|
pwdn-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&cam_clk0_pins>;
|
||||||
|
rockchip,camera-module-index = <0>;
|
||||||
|
rockchip,camera-module-facing = "back";
|
||||||
|
rockchip,camera-module-name = "CMK-OT2119-PC1";
|
||||||
|
rockchip,camera-module-lens-name = "30IRC-F16";
|
||||||
|
port {
|
||||||
|
sc450ai_out: endpoint {
|
||||||
|
remote-endpoint = <&csi_dphy_input0>;
|
||||||
|
data-lanes = <1 2>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
sc850sl: sc850sl@30 {
|
||||||
|
compatible = "smartsens,sc850sl";
|
||||||
|
status = "okay";
|
||||||
|
reg = <0x30>;
|
||||||
|
clocks = <&cru CLK_MIPI0_OUT2IO>;
|
||||||
|
clock-names = "xvclk";
|
||||||
|
reset-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>;
|
||||||
|
pwdn-gpios = <&gpio4 RK_PA2 GPIO_ACTIVE_HIGH>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
pinctrl-0 = <&cam_clk0_pins>;
|
||||||
|
rockchip,camera-module-index = <0>;
|
||||||
|
rockchip,camera-module-facing = "back";
|
||||||
|
rockchip,camera-module-name = "CMK-OT2115-PC1";
|
||||||
|
rockchip,camera-module-lens-name = "30IRC-F16";
|
||||||
|
port {
|
||||||
|
sc850sl_out: endpoint {
|
||||||
|
remote-endpoint = <&csi_dphy_input2>;
|
||||||
|
data-lanes = <1 2 3 4>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&mipi0_csi2 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
ports {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
port@0 {
|
||||||
|
reg = <0>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
mipi0_csi2_input: endpoint@1 {
|
||||||
|
reg = <1>;
|
||||||
|
remote-endpoint = <&csidphy0_out>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
port@1 {
|
||||||
|
reg = <1>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
mipi0_csi2_output: endpoint@0 {
|
||||||
|
reg = <0>;
|
||||||
|
remote-endpoint = <&cif_mipi_in0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&rkcif {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&rkcif_mipi_lvds {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
port {
|
||||||
|
cif_mipi_in0: endpoint {
|
||||||
|
remote-endpoint = <&mipi0_csi2_output>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&rkcif_mipi_lvds_sditf {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
port {
|
||||||
|
mipi_lvds_sditf: endpoint {
|
||||||
|
remote-endpoint = <&isp_vir0>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&rkcif_mmu {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&rkisp {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&rkisp_mmu {
|
||||||
|
status = "okay";
|
||||||
|
};
|
||||||
|
|
||||||
|
&rkisp_vir0 {
|
||||||
|
status = "okay";
|
||||||
|
|
||||||
|
port {
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <0>;
|
||||||
|
|
||||||
|
isp_vir0: endpoint@0 {
|
||||||
|
reg = <0>;
|
||||||
|
remote-endpoint = <&mipi_lvds_sditf>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
@@ -6,6 +6,7 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#include "rv1126b.dtsi"
|
#include "rv1126b.dtsi"
|
||||||
#include "rv1126b-evb.dtsi"
|
#include "rv1126b-evb.dtsi"
|
||||||
|
#include "rv1126b-evb-cam-csi0.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Rockchip RV1126B EVB1 V10 Board";
|
model = "Rockchip RV1126B EVB1 V10 Board";
|
||||||
|
|||||||
@@ -6,6 +6,7 @@
|
|||||||
/dts-v1/;
|
/dts-v1/;
|
||||||
#include "rv1126b.dtsi"
|
#include "rv1126b.dtsi"
|
||||||
#include "rv1126b-evb.dtsi"
|
#include "rv1126b-evb.dtsi"
|
||||||
|
#include "rv1126b-evb-cam-csi0.dtsi"
|
||||||
|
|
||||||
/ {
|
/ {
|
||||||
model = "Rockchip RV1126B EVB2 V10 Board";
|
model = "Rockchip RV1126B EVB2 V10 Board";
|
||||||
@@ -181,6 +182,10 @@
|
|||||||
cpu-supply = <&vdd_cpu>;
|
cpu-supply = <&vdd_cpu>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&imx415 {
|
||||||
|
reset-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
|
||||||
|
};
|
||||||
|
|
||||||
&rknpu {
|
&rknpu {
|
||||||
rknpu-supply = <&vdd_npu>;
|
rknpu-supply = <&vdd_npu>;
|
||||||
};
|
};
|
||||||
@@ -209,6 +214,14 @@
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
&sc450ai {
|
||||||
|
reset-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
|
&sc850sl {
|
||||||
|
reset-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_LOW>;
|
||||||
|
};
|
||||||
|
|
||||||
&usb2phy_host {
|
&usb2phy_host {
|
||||||
phy-supply = <&vcc5v0_host>;
|
phy-supply = <&vcc5v0_host>;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user