// SPDX-License-Identifier: GPL-2.0-only /* * Jetson Device-tree overlay for Camera IMX219 rbpcv2 on * t210 single cam connector baseboards * * Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved. * */ /dts-v1/; /plugin/; / { overlay-name = "Camera IMX219"; jetson-header-name = "Jetson Nano CSI Connector"; compatible = "nvidia,p3542-0000+p3448-0003", "nvidia,p3449-0000-a02+p3448-0000-a02","nvidia,p3449-0000-a01+p3448-0000-a01"; /* IMX219 single sensor module */ fragment@0 { target = <&imx219_single_cam0>; __overlay__ { status = "okay"; }; }; fragment@1 { target = <&cam_module0>; __overlay__ { status = "okay"; badge = "porg_front_RBPCV2"; position = "front"; orientation = "1"; }; }; fragment@2 { target = <&cam_module0_drivernode0>; __overlay__ { status = "okay"; pcl_id = "v4l2_sensor"; devname = "imx219 6-0010"; proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/rbpcv2_imx219_a@10"; }; }; /* Enable VI ports */ fragment@3 { target = <&vi_base>; __overlay__ { num-channels=<1>; }; }; fragment@4 { target = <&vi_port0>; __overlay__ { status = "okay"; }; }; fragment@5 { target = <&rbpcv2_imx219_vi_in0>; __overlay__ { status = "okay"; port-index = <0>; bus-width = <2>; remote-endpoint = <&rbpcv2_imx219_csi_out0>; }; }; /* Enable CSI ports */ fragment@6 { target = <&csi_base>; __overlay__ { num-channels=<1>; }; }; fragment@7 { target = <&csi_chan0>; __overlay__ { status = "okay"; }; }; fragment@8 { target = <&csi_chan0_port0>; __overlay__ { status = "okay"; }; }; fragment@9 { target = <&rbpcv2_imx219_csi_in0>; __overlay__ { status = "okay"; port-index = <0>; bus-width = <2>; remote-endpoint = <&rbpcv2_imx219_out0>; }; }; fragment@10 { target = <&csi_chan0_port1>; __overlay__ { status = "okay"; }; }; fragment@11 { target = <&rbpcv2_imx219_csi_out0>; __overlay__ { status = "okay"; remote-endpoint = <&rbpcv2_imx219_vi_in0>; }; }; /* tegra-camera-platform settings */ fragment@12 { target = <&tcp>; __overlay__ { num_csi_lanes = <2>; max_lane_speed = <1500000>; min_bits_per_pixel = <10>; vi_peak_byte_per_pixel = <2>; vi_bw_margin_pct = <25>; max_pixel_rate = <240000>; isp_peak_byte_per_pixel = <5>; isp_bw_margin_pct = <25>; }; }; };