arm64: dts: rockchip: rk3588s-evb1: add camera sensor configuration

Add lt7911d type-c/DP to MIPI CSI-2 bridge dts configuration as an example

Signed-off-by: Jianwei Fan <jianwei.fan@rock-chips.com>
Change-Id: I54c20593358f2632ae9a5006d822664a5972676a
This commit is contained in:
Jianwei Fan 2021-12-24 10:10:13 +08:00 committed by Tao Huang
parent 28eb6929be
commit a454f56b96
2 changed files with 123 additions and 0 deletions

View File

@ -0,0 +1,122 @@
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
*
*/
&csi2_dcphy0 {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
dp_mipi_in: endpoint@1 {
reg = <1>;
remote-endpoint = <&lt7911d_out>;
data-lanes = <1 2 3 4>;
};
};
port@1 {
reg = <1>;
#address-cells = <1>;
#size-cells = <0>;
csidcphy0_out: endpoint@0 {
reg = <0>;
remote-endpoint = <&mipi0_csi2_input>;
};
};
};
};
&csi2_dcphy0_hw {
status = "okay";
};
&i2c6 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&i2c6m4_xfer>;
lt7911d: lt7911d@2b {
compatible = "lontium,lt7911d";
status = "okay";
reg = <0x2b>;
clocks = <&cru CLK_MIPI_CAMARAOUT_M1>;
clock-names = "xvclk";
interrupt-parent = <&gpio3>;
interrupts = <RK_PD4 IRQ_TYPE_EDGE_RISING>;
power-domains = <&power RK3588_PD_VI>;
pinctrl-names = "default";
pinctrl-0 = <&mipim1_camera1_clk>;
reset-gpios = <&gpio3 RK_PC4 GPIO_ACTIVE_LOW>;
power-gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>;
// hpd-ctl-gpios = <&gpio3 RK_PC5 GPIO_ACTIVE_HIGH>;
// plugin-det-gpios = <&gpio0 RK_PD6 GPIO_ACTIVE_LOW>;
rockchip,camera-module-index = <0>;
rockchip,camera-module-facing = "back";
rockchip,camera-module-name = "LT7911D";
rockchip,camera-module-lens-name = "NC";
port {
lt7911d_out: endpoint {
remote-endpoint = <&dp_mipi_in>;
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 = <&csidcphy0_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_mmu {
status = "okay";
};

View File

@ -7,6 +7,7 @@
/dts-v1/;
#include "rk3588s-evb1-lp4x.dtsi"
#include "rk3588s-evb1-lp4x-v10-camera.dtsi"
#include "rk3588-android.dtsi"
/ {