123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608 |
- /* SPDX-License-Identifier: GPL-2.0 */
- /*
- * Copyright (C) 2021 Alibaba Group Holding Limited.
- */
- /dts-v1/;
- #include "light-ant-ref.dts"
- &vvcam_sensor4 { // beagle board J5 CSI0 connector
- sensor_name = "IMX219";
- sensor_pdn = <&gpio2_porta 23 0>; //powerdown pin / shutdown pin
- sensor_pdn_delay_us = <2000>; //powerdown pin / shutdown pin actived till I2C ready
- i2c_addr = /bits/ 8 <0x10>;
- i2c_bus = /bits/ 8 <1>;
- i2c_reg_width = /bits/ 8 <2>;
- i2c_data_width = /bits/ 8 <1>;
- status = "okay";
- };
- &vvcam_sensor5 { // beagle board J4 CSI1 connector
- sensor_name = "IMX219";
- sensor_pdn = <&gpio2_porta 24 0>; //powerdown pin / shutdown pin
- sensor_pdn_delay_us = <2000>; //powerdown pin / shutdown pin actived till I2C ready
- i2c_addr = /bits/ 8 <0x10>;
- i2c_bus = /bits/ 8 <3>;
- i2c_reg_width = /bits/ 8 <2>;
- i2c_data_width = /bits/ 8 <1>;
- status = "okay";
- };
- /*
- sensor imx219 mounted on beagle board J4
- video0: sensor-vipre-isp0
- video1: sensor-vipre-isp0-dw
- video7: sensor-vipre-isp0-dsp1-ry-dw
- video10: tuningtool
- sensor imx219 mounted on beagle board J5
- video2: sensor-vipre-isp1
- video3: sensor-vipre-isp1-dw
- video4: sensor-vipre-isp1-dsp0-ry
- video5: sensor-vipre-isp1-dsp0-ry-dw
- video12: tuningtool
- */
- &video2 {
- vi_mem_pool_region = <0>; // vi_mem: framebuffer, region[0]
- status = "okay";
- pipline0 {
- pipline_id = <0>;
- status = "okay";
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_MP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <16>;
- frame_count = <3>;
- };
- };
- };
- pipline1 {
- pipline_id = <1>;
- status = "okay";
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_SP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <16>;
- frame_count = <3>;
- };
- };
- };
- pipline2 {
- pipline_id = <2>;
- status = "okay";
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_SP2_BP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <16>;
- frame_count = <3>;
- };
- };
- };
- };
- &video3{
- vi_mem_pool_region = <0>; // vi_mem: framebuffer, region[0]
- pipline0 {
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_MP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dw {
- subdev_name = "dw";
- idx = <0>;
- path_type = "DW_DWE_VSE0";
- dw_dst_depth = <2>;
- };
- };
- pipline1 {
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_MP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dw {
- subdev_name = "dw";
- idx = <0>;
- path_type = "DW_DWE_VSE1";
- dw_dst_depth = <2>;
- };
- };
- pipline2 {
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_MP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dw {
- subdev_name = "dw";
- idx = <0>;
- path_type = "DW_DWE_VSE2";
- dw_dst_depth = <2>;
- };
- };
- };
- &video4{
- vi_mem_pool_region = <0>; // vi_mem: framebuffer, region[0]
- pipline0 {
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_PP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dsp {
- subdev_name = "dsp";
- idx = <0>;
- path_type = "DSP_PATH_ISP_RY";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- ry {
- subdev_name = "ry";
- idx = <0>;
- path_type = "ISP_RY_MI_PATH_MP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- };
- pipline1 {
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_PP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dsp {
- subdev_name = "dsp";
- idx = <0>;
- path_type = "DSP_PATH_ISP_RY";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- ry {
- subdev_name = "ry";
- idx = <0>;
- path_type = "ISP_RY_MI_PATH_SP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- };
- pipline2 {
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_PP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dsp {
- subdev_name = "dsp";
- idx = <0>;
- path_type = "DSP_PATH_ISP_RY";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- ry {
- subdev_name = "ry";
- idx = <0>;
- path_type = "ISP_RY_MI_PATH_SP2_BP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- };
- };
- &video5{
- vi_mem_pool_region = <0>; // vi_mem: framebuffer, region[0]
- pipline0 {
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_PP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dsp {
- subdev_name = "dsp";
- idx = <0>;
- path_type = "DSP_PATH_ISP_RY";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- ry {
- subdev_name = "ry";
- idx = <0>;
- path_type = "ISP_RY_MI_PATH_MP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dw {
- subdev_name = "dw";
- idx = <0>;
- path_type = "DW_DWE_VSE0";
- dw_dst_depth = <2>;
- };
- };
- pipline1 {
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_PP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dsp {
- subdev_name = "dsp";
- idx = <0>;
- path_type = "DSP_PATH_ISP_RY";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- ry {
- subdev_name = "ry";
- idx = <0>;
- path_type = "ISP_RY_MI_PATH_MP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dw {
- subdev_name = "dw";
- idx = <0>;
- path_type = "DW_DWE_VSE1";
- dw_dst_depth = <2>;
- };
- };
- pipline2 {
- sensor0 {
- subdev_name = "vivcam";
- idx = <4>; // imx219
- csi_idx = <0>; //<0>=CSI2
- mode_idx = <0>;
- path_type = "SENSOR_1080P_RAW10_LINER";
- };
- sensor1 {
- subdev_name = "vivcam";
- idx = <0xff>; // invalid
- csi_idx = <0xff>;
- path_type = "SENSOR_VGA_RAW10_LINER";
- };
- dma {
- subdev_name = "vipre";
- idx = <0>;
- path_type = "VIPRE_CSI0_ISP1";
- };
- isp {
- subdev_name = "isp";
- idx = <1>;
- path_type = "ISP_MI_PATH_PP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dsp {
- subdev_name = "dsp";
- idx = <0>;
- path_type = "DSP_PATH_ISP_RY";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- ry {
- subdev_name = "ry";
- idx = <0>;
- path_type = "ISP_RY_MI_PATH_MP";
- output {
- max_width = <1920>;
- max_height = <1088>;
- bit_per_pixel = <12>;
- frame_count = <3>;
- };
- };
- dw {
- subdev_name = "dw";
- idx = <0>;
- path_type = "DW_DWE_VSE2";
- dw_dst_depth = <2>;
- };
- };
- };
|