Hello, I’m following the Sensor Driver Programming guide and am on the Device Registration step trying to get my .dtsi into the blob.
My label for the endpoint of the vi port is not getting recognized at all. I keep getting a phandle error that it can’t find the label.
The error:
~/l4t/64_TX1/Linux_for_Tegra_64_tx1/sources/kernel_source (l4t/l4t-r24.2)$ make dtbs
CC scripts/mod/devicetable-offsets.s
GEN scripts/mod/devicetable-offsets.h
HOSTCC scripts/mod/file2alias.o
HOSTLD scripts/mod/modpost
DTC arch/arm64/boot/dts/tegra210-jetson-cv-p2597-2180-a00-auo-1080p-edp.dtb
DTC arch/arm64/boot/dts/tegra210-jetson-cv-base-p2597-2180-a00.dtb
DTC arch/arm64/boot/dts/tegra210-jetson-cv-p2597-2180-a00.dtb
DTC arch/arm64/boot/dts/tegra210-jetson-tx1-p2597-2180-a02-android-devkit-24x7.dtb
DTC arch/arm64/boot/dts/tegra210-jetson-tx1-p2597-2180-a02-devkit-24x7.dtb
DTC arch/arm64/boot/dts/tegra210-jetson-cv-p2597-2180-a00-sharp-4k-edp.dtb
DTC arch/arm64/boot/dts/tegra210-jetson-tx1-p2597-2180-a01-android-devkit.dtb
DTC arch/arm64/boot/dts/tegra210-jetson-tx1-p2597-2180-a01-devkit.dtb
DTC arch/arm64/boot/dts/tegra210-p4573-2180.dtb
ERROR (phandle_references): Reference to non-existent node or label "daxc02_vi_in0"
ERROR: Input tree has errors, aborting (use -f to force output)
However as far as I can tell I’m doing the exact same thing as all of the other .dtsi files.
Here’s a snippet of the relevant the code:
/ {
host1x {
vi {
ports {
port@0 { // CSI A
status = "okay";
daxc02_vi_in0: endpoint {
bus-width = <4>;
remote-endpoint = <&daxc02_out0>;
};
};
};
};
i2c@546c0000 {
#address-cells = <1>;
#size-cells = <0>;
daxc02@0e {
<...>
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
daxc02_out0: endpoint {
csi-port = <0>;
bus-width = <4>;
remote-endpoint = <&daxc02_vi_in0>;
};
};
};
};
};
};
<...>
};
On line 7 of the snippet I have the label, but the endpoint on line 30 is not seeing it. I’ve checked and rechecked and it’s not the spelling (I even changed the name just to make sure). Can anyone help me figure out what my error is?