Camera adaptation
This page is only for experienced users. It requires knowledge and experience about the following topics:
Kernel development
Devicetree syntax
The Nvidia forum and its documentation about the Jetson family is a good way to get started with those kinds of work. You may start with taking a look at the Camera Adaption Guide from Nvidia.
Auvidea can also provide a quote, if you need a custom devicetree for your CSI camera on the J20, if needed. Contact sales@auvidea.eu or support@auvidea.eu for more information.
Implementing GPIO extender
The GPIO expander populated on the J20 is used to control the mclock and power-down GPIO's on each CSI connector. Auvidea recommends implementing this chip in the Devicetree as GPIO-Chip in order to use those GPIO's directly as reset-gpio in the camera device node.
P15
CAM_A_PWDN
P14
CAM_B_PWDN
P13
CAM_A_MCLK
P12
CAM_B_MCLK
P11
CAM_C_PWDN
P10
CAM_D_PWDN
P9
CAM_C_MCLK
P8
CAM_D_MCLK
P7
CAM_E_PWDN
P6
CAM_F_PWDN
P5
CAM_E_MCLK
P4
CAM_F_MCLK
P3
Not connected
P2
Not connected
P1
Not connected
P0
LED_GPIO

Represented in the device tree for the AGX Orin would look like this:
Each camera node (if the driver supports this feature) contains a reset-gpio that can be assinged to one of the implemented GPIO's in the code above. An example usage of one of those GPIO's can be found in the following code in the reset-gpio property.
Port configuration register
0: Output
1: Input
0
0
0
0
1
1
1
0
i2cset -y -f 2 0x20 0x06 0x0e
0
0
0
0
0
0
0
0
i2cset -y -f 2 0x20 0x07 0x00
Port output register
0: Logical HIGH
1: Logical LOW
Input pins will be ignored by this setting
1
1
1
1
1
1
1
1
i2cset -y -f 2 0x20 0x02 0xff
1
1
1
1
1
1
1
1
i2cset -y -f 2 0x20 0x03 0xff
Script
CSI-Routing
The following documentation assumes that you are comfortable with the CSI/VI interface from the Nvidia Jetson family



Example CSI/VI implementation
The following example CSI/VI devicetree would implement the J20 on the AGX Orin Devkit
The TX1-Devkit uses a different CSI-Lanes than the AGX-Xavier and AGX-Orin Devkit as shown above. -> There might be some differences in the Devicetree implementation for the AGX-Orin Devkit.
Last updated
Was this helpful?
