1// SPDX-License-Identifier: (GPL-2.0+ OR MIT) 2/* 3 * Copyright (c) 2022 Rockchip Electronics Co., Ltd. 4 * 5 */ 6 7/dts-v1/; 8 9#include <dt-bindings/display/media-bus-format.h> 10#include "rk3588s-evb3-lp4x.dtsi" 11#include "rk3588-android.dtsi" 12 13/ { 14 model = "Rockchip RK3588S EVB3 LP4 V10 Board + Rockchip RK3588S EVB V10 Extboard"; 15 compatible = "rockchip,rk3588s-evb3-lp4x-v10-nvp6158-ahd-to-bt1120", "rockchip,rk3588"; 16}; 17 18&i2c2 { 19 status = "okay"; 20 pinctrl-names = "default"; 21 pinctrl-0 = <&i2c2m4_xfer>; 22 23 nvp6158: nvp6158@30 { 24 compatible = "nvp6158-v4l2"; 25 status = "okay"; 26 reg = <0x30>; 27 clocks = <&cru CLK_CIFOUT_OUT>; 28 clock-names = "xvclk"; 29 power-domains = <&power RK3588_PD_VI>; 30 pinctrl-names = "default"; 31 pinctrl-0 = <&cif_clk &cif_dvp_clk &cif_dvp_bus8 &cif_dvp_bus16>; 32 // pwr-gpios = <&gpio1 RK_PA6 GPIO_ACTIVE_HIGH>; 33 pwr2-gpios = <&gpio1 RK_PA5 GPIO_ACTIVE_HIGH>; 34 rst-gpios = <&gpio1 RK_PA3 GPIO_ACTIVE_HIGH>; 35 // rst2-gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_HIGH>; 36 // pwdn-gpios = <&gpio1 RK_PA4 GPIO_ACTIVE_HIGH>; 37 // pwdn2-gpios = <&gpio4 RK_PA6 GPIO_ACTIVE_HIGH>; 38 rockchip,camera-module-index = <0>; 39 rockchip,camera-module-facing = "back"; 40 rockchip,camera-module-name = "default"; 41 rockchip,camera-module-lens-name = "default"; 42 rockchip,dvp_mode = "BT1120"; //BT656 or BT1120 or BT656_TEST 43 rockchip,channel_nums = <4>; //channel nums, 1/2/4 44 rockchip,dual_edge = <1>; // pclk dual edge, 0/1 45 rockchip,default_rect= <1920 1080>; // default resolution 46 port { 47 nvp6158_out: endpoint { 48 remote-endpoint = <&dvp_in_bcam1>; 49 }; 50 }; 51 }; 52}; 53 54&rkcif { 55 status = "okay"; 56}; 57 58&rkcif_dvp { 59 status = "okay"; 60 ports { 61 #address-cells = <1>; 62 #size-cells = <0>; 63 64 port@0 { 65 #address-cells = <1>; 66 #size-cells = <0>; 67 /* Parallel bus endpoint */ 68 dvp_in_bcam1: endpoint@1 { 69 reg = <1>; 70 remote-endpoint = <&nvp6158_out>; 71 bus-width = <16>; 72 }; 73 }; 74 }; 75}; 76 77&rkcif_mmu { 78 status = "okay"; 79}; 80