173 lines
3.1 KiB
Plaintext
173 lines
3.1 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
/*
|
|
* Copyright (c) 2021 Rockchip Electronics Co., Ltd.
|
|
*
|
|
*/
|
|
|
|
/ {
|
|
cam_ircut0: cam_ircut {
|
|
status = "disabled";
|
|
compatible = "rockchip,ircut";
|
|
ircut-open-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>;
|
|
ircut-close-gpios = <&gpio4 RK_PA7 GPIO_ACTIVE_HIGH>;
|
|
rockchip,camera-module-index = <0>;
|
|
rockchip,camera-module-facing = "back";
|
|
};
|
|
};
|
|
|
|
&csi2_dphy0 {
|
|
status = "okay";
|
|
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
port@0 {
|
|
reg = <0>;
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
mipidphy0_in_ucam0: endpoint@1 {
|
|
reg = <1>;
|
|
remote-endpoint = <&xc7160_out0>;
|
|
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";
|
|
};
|
|
|
|
&i2c3 {
|
|
status = "okay";
|
|
|
|
XC7160: XC7160b@1b{
|
|
compatible = "firefly,xc7160";
|
|
reg = <0x1b>;
|
|
clocks = <&cru CLK_MIPI_CAMARAOUT_M3>;
|
|
clock-names = "xvclk";
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&mipim0_camera3_clk>;
|
|
power-domains = <&power RK3588_PD_VI>;
|
|
|
|
reset-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_HIGH>;
|
|
pwdn-gpios = <&gpio1 RK_PA7 GPIO_ACTIVE_HIGH>;
|
|
|
|
firefly,clkout-enabled-index = <0>;
|
|
rockchip,camera-module-index = <0>;
|
|
rockchip,camera-module-facing = "back";
|
|
rockchip,camera-module-name = "NC";
|
|
rockchip,camera-module-lens-name = "NC";
|
|
port {
|
|
xc7160_out0: endpoint {
|
|
remote-endpoint = <&mipidphy0_in_ucam0>;
|
|
data-lanes = <1 2 3 4>;
|
|
};
|
|
};
|
|
};
|
|
|
|
};
|
|
|
|
&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_mipi2_in0>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&pinctrl {
|
|
cam {
|
|
mipidphy0_pwr: mipidphy0-pwr {
|
|
rockchip,pins =
|
|
/* camera power en */
|
|
<1 RK_PB1 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&rkcif {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkcif_mipi_lvds2 {
|
|
status = "okay";
|
|
firefly,yuv_camera;
|
|
|
|
port {
|
|
cif_mipi2_in0: endpoint {
|
|
remote-endpoint = <&mipi2_csi2_output>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&rkcif_mipi_lvds2_sditf {
|
|
status = "disabled";
|
|
|
|
port {
|
|
mipi_lvds2_sditf: endpoint {
|
|
remote-endpoint = <&isp0_vir0>;
|
|
};
|
|
};
|
|
};
|
|
|
|
&rkcif_mmu {
|
|
status = "okay";
|
|
};
|
|
|
|
&rkisp0 {
|
|
status = "disabled";
|
|
};
|
|
|
|
&isp0_mmu {
|
|
status = "disabled";
|
|
};
|
|
|
|
&rkisp0_vir0 {
|
|
status = "disabled";
|
|
|
|
port {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
isp0_vir0: endpoint@0 {
|
|
reg = <0>;
|
|
remote-endpoint = <&mipi_lvds2_sditf>;
|
|
};
|
|
};
|
|
};
|