// SPDX-License-Identifier: (GPL-2.0+ OR MIT) /* * Copyright (c) 2022 www.veye.cc * */ #include "tl3588-evm.dts" &i2c1 { status = "okay"; // pinctrl-names = "default"; // pinctrl-0 = <&i2c1m2_xfer>; veyecam2m: veyecam2m@3b{ compatible = "veye,veyecam2m"; reg = <0x3b>; clocks = <&cru CLK_MIPI_CAMARAOUT_M1>; clock-names = "xvclk"; status = "okay"; // pinctrl-names = "default"; // pinctrl-0 = <&mipim1_camera1_clk>; //power-domains = <&power RK3588_PD_VI>; //power-gpios = <&gpio4 RK_PB5 GPIO_ACTIVE_LOW>; reset-gpios = <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>; //pwdn-gpios = <&gpio2 RK_PC3 GPIO_ACTIVE_LOW>; //avdd-supply = <&vcc_mipidcphy1>; //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 { veyecam2m_out0: endpoint { remote-endpoint = <&mipi_dphy0_in_ucam0>; data-lanes = <1 2>; }; }; }; }; &csi2_dphy0_hw { status = "okay"; }; &csi2_dphy0 { status = "okay"; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; #address-cells = <1>; #size-cells = <0>; mipi_dphy0_in_ucam0: endpoint@1 { reg = <1>; remote-endpoint = <&veyecam2m_out0>; data-lanes = <1 2>; }; }; port@1 { reg = <1>; #address-cells = <1>; #size-cells = <0>; csidphy0_out: endpoint@0 { reg = <0>; remote-endpoint = <&mipi2_csi2_input>; }; }; }; }; &mipi2_csi2_hw { 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_mipi2_in0>; }; }; }; }; &rkcif_mipi_lvds2 { status = "okay"; firefly,yuv_camera; port { cif_mipi2_in0: endpoint { remote-endpoint = <&mipi2_csi2_output>; }; }; }; &rkcif_mipi_lvds2_sditf { status = "okay"; port { mipi_lvds2_sditf: endpoint { remote-endpoint = <&isp0_vir2>; }; }; }; &rkisp0_vir2 { status = "okay"; port { #address-cells = <1>; #size-cells = <0>; isp0_vir2: endpoint@0 { reg = <0>; remote-endpoint = <&mipi_lvds2_sditf>; }; }; }; &gpio2 { pinctrl-names = "default"; pinctrl-0 = <&mipidphy0_pwr>; camera3-pwdn-set { gpio-hog; gpios = <19 GPIO_ACTIVE_HIGH>; output-high; }; }; &pinctrl { cam { mipidphy0_pwr: mipidphy1-pwr { rockchip,pins = /* camera power en */ <2 RK_PC3 RK_FUNC_GPIO &pcfg_pull_up>; }; }; }; &rkcif { status = "okay"; // memory-region = <&cif_reserved>; }; &rkcif_mmu { status = "okay"; }; &rkisp0 { status = "okay"; }; &isp0_mmu { status = "okay"; };