-
Notifications
You must be signed in to change notification settings - Fork 34
/
Copy pathlt6911uxc.txt
195 lines (182 loc) · 5.25 KB
/
lt6911uxc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
Device tree examples for the Lontium HDMI to CSI converter lt6911uxc. One
example shows the basic chip configuration and in the second example we
provide our configuration to integrate this custom chip into the device tree
of the Nvidia Jetson Xavier AGX.
/*------------------------------------------------------------------------------
* ------------------------------------------------------------------------------
*
* Device Tree Examples
*
* ------------------------------------------------------------------------------
*-----------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------
* Example 1 (Chip)
*-----------------------------------------------------------------------------*/
lt6911uxc_a@2b {
compatible = "lontium,lt6911uxc";
reg = <0x2b>;
status = "okay";
devnode = "video0";
/* Reset */
reset-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(H, 3) GPIO_ACTIVE_LOW>;
/* Interrupt */
interrupt-parent = <&tegra_main_gpio>;
interrupts = <TEGRA194_MAIN_GPIO(P, 0) IRQ_TYPE_LEVEL_HIGH>;
port@0 {
ret = <0>;
status = "okay";
hdmi2csi_lt6911_out0: endpoint {
status = "okay";
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&hdmi2csi_csi_in0>;
};
};
};
/*------------------------------------------------------------------------------
* Example 2 (Integration Nvidia Jetson Xavier AGX)
*-----------------------------------------------------------------------------*/
#define LT6911_EN "okay"
/ {
i2c@3180000 {
clock-frequency = <100000>;
lt6911uxc_a@2b {
compatible = "lontium,lt6911uxc";
reg = <0x2b>;
status = "okay";
devnode = "video0";
/* Reset */
reset-gpio = <&tegra_main_gpio TEGRA194_MAIN_GPIO(H, 3) GPIO_ACTIVE_LOW>;
/* Interrupt */
interrupt-parent = <&tegra_main_gpio>;
interrupts = <TEGRA194_MAIN_GPIO(P, 0) IRQ_TYPE_LEVEL_HIGH>;
port@0 {
ret = <0>;
status = "okay";
hdmi2csi_lt6911_out0: endpoint {
status = "okay";
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&hdmi2csi_csi_in0>;
};
};
};
};
host1x {
/* Delete existing VI node to avoid conflicts */
/delete-node/ vi;
vi@15c10000 {
num-channels = <1>;
status = LT6911_EN;
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
status = LT6911_EN;
reg = <0>;
hdmi2csi_vi_in0: endpoint {
status = LT6911_EN;
port-index =<0>;
bus-width = <4>;
remote-endpoint = <&hdmi2csi_csi_out0>;
};
};
};
};
nvcsi@15a00000 {
num-channels = <1>;
#address-cells = <1>;
#size-cells = <0>;
status = LT6911_EN;
channel@0 {
status = LT6911_EN;
reg = <0>;
discontinuous_clk = "no";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
status = LT6911_EN;
reg = <0>;
hdmi2csi_csi_in0: endpoint@0 {
status = LT6911_EN;
port-index = <0>;
bus-width = <4>;
remote-endpoint = <&hdmi2csi_lt6911_out0>;
};
};
port@1 {
status = LT6911_EN;
reg = <1>;
hdmi2csi_csi_out0: endpoint@1 {
status = LT6911_EN;
remote-endpoint = <&hdmi2csi_vi_in0>;
};
};
};
};
};
};
tegra-camera-platform {
compatible = "nvidia, 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
*
* max_pixel_rate = <>;
* Max pixel rate in Kpixel/s for the ISP ISO case
*
* isp_peak_byte_per_pixel = <>;
* Max byte per pixel for the ISP ISO case
*
* isp_bw_margin_pct = <>;
* Isp bandwidth margin in percentage
*/
num_csi_lanes = <8>;
max_lane_speed = <2500000>;
min_bits_per_pixel = <16>;
vi_peak_byte_per_pixel = <3>;
vi_bw_margin_pct = <25>;
isp_peak_byte_per_pixel = <3>;
isp_bw_margin_pct = <25>;
status = LT6911_EN;
/**
* The general guideline for naming badge_info contains 3 parts, and is as follows,
* The first part is the camera_board_id for the module; if the module is in a FFD
* platform, then use the platform name for this part.
* The second part contains the position of the module, ex. “rear” or “front”.
* The third part contains the last 6 characters of a part number which is found
* in the module's specsheet from the vender.
*/
modules {
module0 {
status = LT6911_EN;
badge = "hdmi2csi_left_6911";
position = "left";
orientation = "1";
drivernode0 {
/* Declare PCL support driver (classically known as guid) */
pcl_id = "v4l2_sensor";
/* Driver v4l2 device name */
devname = "lt6911uxc 2-002b";
/* Declare the device-tree hierarchy to driver instance */
proc-device-tree = "/proc/device-tree/i2c@3180000/lt6911uxc_a@2b";
};
};
};
};
};