202 lines
3.6 KiB
Plaintext
202 lines
3.6 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
|
|
*
|
|
*/
|
|
/dts-v1/;
|
|
|
|
#include "rk3588-evb7-v11.dtsi"
|
|
#include "rk3588-android.dtsi"
|
|
|
|
/ {
|
|
model = "Rockchip RK3588 EVB7 V11 Board + Rockchip RK628 HDMI to MIPI Extboard";
|
|
compatible = "rockchip,rk3588-evb7-v11", "rockchip,rk3588";
|
|
|
|
rk628_dc: rk628-dc {
|
|
compatible = "rockchip,dummy-codec";
|
|
#sound-dai-cells = <0>;
|
|
};
|
|
|
|
rk628-sound {
|
|
compatible = "simple-audio-card";
|
|
simple-audio-card,format = "i2s";
|
|
simple-audio-card,name = "rockchip,rk628hdmiin";
|
|
simple-audio-card,bitclock-master = <&dailink0_master>;
|
|
simple-audio-card,frame-master = <&dailink0_master>;
|
|
status = "okay";
|
|
simple-audio-card,cpu {
|
|
sound-dai = <&i2s3_2ch>;
|
|
};
|
|
dailink0_master: simple-audio-card,codec {
|
|
sound-dai = <&rk628_dc>;
|
|
};
|
|
};
|
|
|
|
vcc_mipicsi0: vcc-mipicsi0-regulator {
|
|
/delete-property/ gpio;
|
|
/delete-property/ pinctrl-0;
|
|
};
|
|
|
|
vcc_mipicsi1: vcc-mipicsi1-regulator {
|
|
/delete-property/ gpio;
|
|
/delete-property/ pinctrl-0;
|
|
};
|
|
|
|
vcc_mipidcphy0: vcc-mipidcphy0-regulator {
|
|
/delete-property/ gpio;
|
|
/delete-property/ pinctrl-0;
|
|
};
|
|
};
|
|
|
|
&csi2_dphy0 {
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
hdmi_mipi2_in: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&hdmiin_out1>;
|
|
data-lanes = <1 2 3 4>;
|
|
};
|
|
};
|
|
port@1 {
|
|
reg = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
csidphy0_out: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&mipi2_csi2_input>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&csi2_dphy0_hw {
|
|
status = "okay";
|
|
};
|
|
|
|
&csi2_dphy1_hw {
|
|
status = "okay";
|
|
};
|
|
|
|
&i2c3 {
|
|
status = "okay";
|
|
clock-frequency = <400000>;
|
|
|
|
rk628_csi: rk628_csi@50 {
|
|
reg = <0x50>;
|
|
compatible = "rockchip,rk628-csi-v4l2";
|
|
status = "okay";
|
|
power-domains = <&power RK3588_PD_VI>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&rk628_pin>;
|
|
interrupt-parent = <&gpio1>;
|
|
interrupts = <RK_PB2 IRQ_TYPE_LEVEL_HIGH>;
|
|
enable-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>;
|
|
reset-gpios = <&gpio1 RK_PB1 GPIO_ACTIVE_HIGH>;
|
|
plugin-det-gpios = <&gpio2 RK_PB6 GPIO_ACTIVE_LOW>;
|
|
continues-clk = <1>;
|
|
|
|
rockchip,camera-module-index = <0>;
|
|
rockchip,camera-module-facing = "back";
|
|
rockchip,camera-module-name = "HDMI-MIPI2";
|
|
rockchip,camera-module-lens-name = "RK628-CSI";
|
|
|
|
multi-dev-info {
|
|
dev-idx-l = <2>;
|
|
dev-idx-r = <4>;
|
|
combine-idx = <2>;
|
|
pixel-offset = <0>;
|
|
dev-num = <2>;
|
|
};
|
|
|
|
port {
|
|
hdmiin_out1: endpoint {
|
|
remote-endpoint = <&hdmi_mipi2_in>;
|
|
data-lanes = <1 2 3 4>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&i2s3_2ch {
|
|
rockchip,capture-only;
|
|
rockchip,i2s-rx-wait-time-ms = <50>;
|
|
status = "okay";
|
|
};
|
|
|
|
&mipi_dcphy0 {
|
|
status = "okay";
|
|
};
|
|
|
|
&mipi_dcphy1 {
|
|
status = "okay";
|
|
};
|
|
|
|
&mipi2_csi2 {
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
mipi2_csi2_input: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&csidphy0_out>;
|
|
};
|
|
};
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
mipi2_csi2_output: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&cif_mipi_in2>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&rkcif {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkcif_mipi_lvds2 {
|
|
status = "okay";
|
|
|
|
port {
|
|
cif_mipi_in2: endpoint {
|
|
remote-endpoint = <&mipi2_csi2_output>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&rkcif_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&pinctrl {
|
|
hdmiin {
|
|
rk628_pin: rk628-pin {
|
|
rockchip,pins = <1 RK_PB2 RK_FUNC_GPIO &pcfg_pull_none>,
|
|
<1 RK_PA7 RK_FUNC_GPIO &pcfg_pull_none>,
|
|
<1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>,
|
|
<2 RK_PB6 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|