Errors is"Reference to non-existent node or label “vi_in0” "if I run “make dtbs” at TX1 R24,2
i dtsi file is below.
#include <dt-bindings/media/camera.h>
#include <dt-bindings/platform/t210/t210.h>
#define GANG_MODE_L_R 1
#define GANG_MODE_T_B 2
#define GANG_MODE_R_L 3
#define GANG_MODE_B_T 4
#define CAM0_RST_L TEGRA_GPIO(S, 4)
#define CAM2_RST_L TEGRA_GPIO(S, 5)
#define CAM1_PWDN TEGRA_GPIO(T, 0)
//GPIOs
/ {
/* set camera gpio direction to output */
gpio: gpio@6000d000 {
camera-control {
gpio-output-high = <
CAM0_RST_L
CAM2_RST_L
CAM1_PWDN
>;
};
};
};
/ {
host1x {
vi_base: vi {
num-channels = <1>;
ports {
#address-cells = <1>;
#size-cells = <0>;
vi_port0: port@0 {
status = "okay";
reg = <0>;
vi_in0: endpoint {
status = "okay";
csi-port = <0>;
bus-width = <2>;
remote-endpoint = <&imx219_out0>;
};
};
};
};
i2c@546c0000 {
status = "okay";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
imx219_a@10 {
compatible = "nvidia,imx219";
devnode="video0";
// I2C Device Address
reg = <0x10>;
reset-gpios = <&gpio CAM0_RST_L GPIO_ACTIVE_LOW>;
//Physical Dimenstion of sensor
physical_w = "5.095";
physical_h = "4.930";
//Sensor Model
sensor_model ="imx219";
//XXX: Experiment
dovdd-supply = <&en_vdd_cam>;
avdd-reg = "vana";
dvdd-reg = "vdig";
//iovdd-reg = "dovdd";
iovdd-reg = "vif";
//XXX: Experiment
//avdd-reg = "vana";
//iovdd-reg = "vif";
//dvdd-reg = "vdig";
clocks = <&tegra_car TEGRA210_CLK_ID_CLK_OUT_3>;
clock-names = "mclk";
clock-frequency = <24000000>;
mclk = "cam_mclk1";
post_crop_frame_drop = "0";
mode0 { // IMX219_MODE_640X480
//mclk_khz = "47000";
mclk_khz = "24000";
mclk_multiplier = "17.0";
pix_clk_hz = "182400000";
//pix_clk_hz = "170000000";
num_lanes = "2";
tegra_sinterface = "serial_a";
discontinuous_clk = "yes";
cil_settletime = "0";
pixel_t = "bayer_rggb";
readout_orientation = "90";
inherent_gain = "0";
active_w = "640";
active_h = "480";
//line_length = "752";
//line_length = "1752";
line_length = "3448";
//line_length = "3559";
dpcm_enable = "false";
min_gain_val = "1";
max_gain_val = "16";
min_hdr_ratio = "1";
max_hdr_ratio = "64";
min_framerate = "1";
max_framerate = "90";
min_exp_time = "22";
max_exp_time = "358733";
//embedded_metadata_height = "2";
};
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
imx219_out0: endpoint {
csi-port = <0>;
bus-width = <2>;
remote-endpoint = <&vi_in0>;
};
};
};
};
};
};
};
/ {
tegra-camera-platform {
/**
* Physical settings to calculate max ISO BW
*
* num_csi_lanes = <>;
* Total number of CSI lanes when all cameras are active
*
* max_lane_speed = <>;
* Max lane speed in Kbit/s
*
* min_bits_per_pixel = <>;
* Min bits per pixel
*
* vi_peak_byte_per_pixel = <>;
* Max byte per pixel for the VI ISO case
*
* vi_bw_margin_pct = <>;
* Vi bandwidth margin in percentage
*
* isp_peak_byte_per_pixel = <>;
* Max byte per pixel for the ISP ISO case
*
* isp_bw_margin_pct = <>;
* Isp bandwidth margin in percentage
*/
compatible = "nvidia, tegra-camera-platform";
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 = <182400>;
isp_peak_byte_per_pixel = <2>;
isp_bw_margin_pct = <25>;
modules {
cam_module0: module0 {
status = "okay";
badge = "uav_back_imx219";
position = "rear";
orientation = "0";
cam_module0_drivernode0: drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver's v4l2 device name */
devname = "imx219 7-0010";
/* Declare the device-tree hierarchy to driver instance */
proc-device-tree = "/proc/device-tree/host1x/i2c@546c0000/imx219_a@10";
status = "okay";
};
};
};
};
};
How can I fix this question?