Porting camera from tx1 to tx2

Hello,

We are using camera in L4T 28.1 with TX1, and we need to migrate it to L4T 28.1 of TX2.
It is very similar to imx274.

But when I try to check the difference between tx1 in tx2 in imx274 dtsi, I see a lot of changes !

And instead of only 2 device trees for imx274:
74
./platform/t210/jetson/kernel-dts/jetson-platforms/tegra210-camera-imx274-a00.dtsi
./platform/t210/jetson/kernel-dts/jetson-platforms/tegra210-jetson-cv-camera-imx274-a00.dtsi

There are now 5 dtsi ! :

./platform/t18x/quill/kernel-dts/quill-modules/tegra186-camera-imx274.dtsi
./platform/t18x/quill/kernel-dts/quill-platforms/tegra186-quill-camera-imx274.dtsi
./platform/t18x/quill/kernel-dts/tegra186-quill-p3310-1000-a00-00-imx274.dts
./platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-quill-camera-imx274-a00.dtsi
./platform/t18x/common/kernel-dts/t18x-common-modules/tegra186-camera-imx274-a00.dtsi

I assume we must need the first 2 becuase they exist also in tx1:
./platform/t18x/quill/kernel-dts/quill-modules/tegra186-camera-imx274.dtsi
./platform/t18x/quill/kernel-dts/quill-platforms/tegra186-quill-camera-imx274.dtsi

But what about the other 3 dts/dtsi files ? Do we need to use all of them ?

Thank you for any suggestion,
ranran

hello ranchu,

  1. since we had already release 28.3, may I know your plan about migrate to latest l4t release?

  2. there are several dtsi files to describe the node binding, suggest you also check below kernel sources to understand the dtsi including hierarchy.

$TOP/kerenl_src/hardware/nvidia/platform/t18x/common/kernel-dts/t18x-common-platforms/tegra186-quill-camera-modules.dtsi
  1. finally, these separate dtsi files will combine into single dtb file for usage,
    for example,
    TX1: tegra210-jetson-tx1-p2597-2180-a01-devkit.dtb;
    TX2: tegra186-quill-p3310-1000-c03-00-base.dtb
    you could also use below commands to disassembler the dtb file into txt file for quick confirmation
    for example,
dtc -I dtb -O dts -o temp.txt tegra.dtb