Skip to content

Commit 6a2f461

Browse files
Lee Jacksonpopcornmix
Lee Jackson
authored andcommitted
dtoverlays: Add IMX519 support to camera mux overlays
Signed-off-by: Lee Jackson <[email protected]>
1 parent 481239c commit 6a2f461

File tree

3 files changed

+102
-0
lines changed

3 files changed

+102
-0
lines changed

arch/arm/boot/dts/overlays/README

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,7 @@ Params: cam0-imx219 Select IMX219 for camera on port 0
716716
cam0-imx258 Select IMX258 for camera on port 0
717717
cam0-imx290 Select IMX290 for camera on port 0
718718
cam0-imx477 Select IMX477 for camera on port 0
719+
cam0-imx519 Select IMX519 for camera on port 0
719720
cam0-imx708 Select IMX708 for camera on port 0
720721
cam0-ov2311 Select OV2311 for camera on port 0
721722
cam0-ov5647 Select OV5647 for camera on port 0
@@ -726,6 +727,7 @@ Params: cam0-imx219 Select IMX219 for camera on port 0
726727
cam1-imx258 Select IMX258 for camera on port 1
727728
cam1-imx290 Select IMX290 for camera on port 1
728729
cam1-imx477 Select IMX477 for camera on port 1
730+
cam1-imx519 Select IMX519 for camera on port 1
729731
cam1-imx708 Select IMX708 for camera on port 1
730732
cam1-ov2311 Select OV2311 for camera on port 1
731733
cam1-ov5647 Select OV5647 for camera on port 1
@@ -743,6 +745,7 @@ Params: cam0-imx219 Select IMX219 for camera on port 0
743745
cam0-imx258 Select IMX258 for camera on port 0
744746
cam0-imx290 Select IMX290 for camera on port 0
745747
cam0-imx477 Select IMX477 for camera on port 0
748+
cam0-imx519 Select IMX519 for camera on port 0
746749
cam0-imx708 Select IMX708 for camera on port 0
747750
cam0-ov2311 Select OV2311 for camera on port 0
748751
cam0-ov5647 Select OV5647 for camera on port 0
@@ -753,6 +756,7 @@ Params: cam0-imx219 Select IMX219 for camera on port 0
753756
cam1-imx258 Select IMX258 for camera on port 1
754757
cam1-imx290 Select IMX290 for camera on port 1
755758
cam1-imx477 Select IMX477 for camera on port 1
759+
cam1-imx519 Select IMX519 for camera on port 1
756760
cam1-imx708 Select IMX708 for camera on port 1
757761
cam1-ov2311 Select OV2311 for camera on port 1
758762
cam1-ov5647 Select OV5647 for camera on port 1
@@ -763,6 +767,7 @@ Params: cam0-imx219 Select IMX219 for camera on port 0
763767
cam2-imx258 Select IMX258 for camera on port 2
764768
cam2-imx290 Select IMX290 for camera on port 2
765769
cam2-imx477 Select IMX477 for camera on port 2
770+
cam2-imx519 Select IMX519 for camera on port 2
766771
cam2-imx708 Select IMX708 for camera on port 2
767772
cam2-ov2311 Select OV2311 for camera on port 2
768773
cam2-ov5647 Select OV5647 for camera on port 2
@@ -773,6 +778,7 @@ Params: cam0-imx219 Select IMX219 for camera on port 0
773778
cam3-imx258 Select IMX258 for camera on port 3
774779
cam3-imx290 Select IMX290 for camera on port 3
775780
cam3-imx477 Select IMX477 for camera on port 3
781+
cam3-imx519 Select IMX519 for camera on port 3
776782
cam3-imx708 Select IMX708 for camera on port 3
777783
cam3-ov2311 Select OV2311 for camera on port 3
778784
cam3-ov5647 Select OV5647 for camera on port 3

arch/arm/boot/dts/overlays/camera-mux-2port-overlay.dts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,16 @@
112112
#undef cam_endpoint
113113
#undef cam1_clk
114114

115+
#define cam_node imx519_0
116+
#define cam_endpoint imx519_0_ep
117+
#define vcm_node imx519_0_vcm
118+
#define cam1_clk clk_24mhz
119+
#include "imx519.dtsi"
120+
#undef cam_node
121+
#undef cam_endpoint
122+
#undef vcm_node
123+
#undef cam1_clk
124+
115125
#define cam_node imx708_0
116126
#define cam_endpoint imx708_0_ep
117127
#define vcm_node imx708_0_vcm
@@ -192,6 +202,16 @@
192202
#undef cam_endpoint
193203
#undef cam1_clk
194204

205+
#define cam_node imx519_1
206+
#define cam_endpoint imx519_1_ep
207+
#define vcm_node imx519_1_vcm
208+
#define cam1_clk clk_24mhz
209+
#include "imx519.dtsi"
210+
#undef cam_node
211+
#undef cam_endpoint
212+
#undef vcm_node
213+
#undef cam1_clk
214+
195215
#define cam_node imx708_1
196216
#define cam_endpoint imx708_1_ep
197217
#define vcm_node imx708_1_vcm
@@ -373,6 +393,12 @@
373393
<&imx477_0_ep>, "remote-endpoint:0=",<&mux_in0>,
374394
<&mux_in0>, "clock-noncontinuous?",
375395
<&imx477_0>, "status=okay";
396+
cam0-imx519 = <&mux_in0>, "remote-endpoint:0=",<&imx519_0_ep>,
397+
<&imx519_0_ep>, "remote-endpoint:0=",<&mux_in0>,
398+
<&mux_in0>, "clock-noncontinuous?",
399+
<&imx519_0>, "status=okay",
400+
<&imx519_0_vcm>, "status=okay",
401+
<&imx519_0>,"lens-focus:0=", <&imx519_0_vcm>;
376402
cam0-imx708 = <&mux_in0>, "remote-endpoint:0=",<&imx708_0_ep>,
377403
<&imx708_0_ep>, "remote-endpoint:0=",<&mux_in0>,
378404
<&mux_in0>, "clock-noncontinuous?",
@@ -407,6 +433,12 @@
407433
<&imx477_1_ep>, "remote-endpoint:0=",<&mux_in1>,
408434
<&mux_in1>, "clock-noncontinuous?",
409435
<&imx477_1>, "status=okay";
436+
cam1-imx519 = <&mux_in1>, "remote-endpoint:0=",<&imx519_1_ep>,
437+
<&imx519_1_ep>, "remote-endpoint:0=",<&mux_in1>,
438+
<&mux_in1>, "clock-noncontinuous?",
439+
<&imx519_1>, "status=okay",
440+
<&imx519_1_vcm>, "status=okay",
441+
<&imx519_1>,"lens-focus:0=", <&imx519_1_vcm>;
410442
cam1-imx708 = <&mux_in1>, "remote-endpoint:0=",<&imx708_1_ep>,
411443
<&imx708_1_ep>, "remote-endpoint:0=",<&mux_in1>,
412444
<&mux_in1>, "clock-noncontinuous?",

arch/arm/boot/dts/overlays/camera-mux-4port-overlay.dts

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,16 @@
170170
#undef cam_endpoint
171171
#undef cam1_clk
172172

173+
#define cam_node imx519_0
174+
#define cam_endpoint imx519_0_ep
175+
#define vcm_node imx519_0_vcm
176+
#define cam1_clk clk_24mhz
177+
#include "imx519.dtsi"
178+
#undef cam_node
179+
#undef cam_endpoint
180+
#undef vcm_node
181+
#undef cam1_clk
182+
173183
#define cam_node imx708_0
174184
#define cam_endpoint imx708_0_ep
175185
#define vcm_node imx708_0_vcm
@@ -250,6 +260,16 @@
250260
#undef cam_endpoint
251261
#undef cam1_clk
252262

263+
#define cam_node imx519_1
264+
#define cam_endpoint imx519_1_ep
265+
#define vcm_node imx519_1_vcm
266+
#define cam1_clk clk_24mhz
267+
#include "imx519.dtsi"
268+
#undef cam_node
269+
#undef cam_endpoint
270+
#undef vcm_node
271+
#undef cam1_clk
272+
253273
#define cam_node imx708_1
254274
#define cam_endpoint imx708_1_ep
255275
#define vcm_node imx708_1_vcm
@@ -330,6 +350,16 @@
330350
#undef cam_endpoint
331351
#undef cam1_clk
332352

353+
#define cam_node imx519_2
354+
#define cam_endpoint imx519_2_ep
355+
#define vcm_node imx519_2_vcm
356+
#define cam1_clk clk_24mhz
357+
#include "imx519.dtsi"
358+
#undef cam_node
359+
#undef cam_endpoint
360+
#undef vcm_node
361+
#undef cam1_clk
362+
333363
#define cam_node imx708_2
334364
#define cam_endpoint imx708_2_ep
335365
#define vcm_node imx708_2_vcm
@@ -410,6 +440,16 @@
410440
#undef cam_endpoint
411441
#undef cam1_clk
412442

443+
#define cam_node imx519_3
444+
#define cam_endpoint imx519_3_ep
445+
#define vcm_node imx519_3_vcm
446+
#define cam1_clk clk_24mhz
447+
#include "imx519.dtsi"
448+
#undef cam_node
449+
#undef cam_endpoint
450+
#undef vcm_node
451+
#undef cam1_clk
452+
413453
#define cam_node imx708_3
414454
#define cam_endpoint imx708_3_ep
415455
#define vcm_node imx708_3_vcm
@@ -608,6 +648,12 @@
608648
<&imx477_0_ep>, "remote-endpoint:0=",<&mux_in0>,
609649
<&mux_in0>, "clock-noncontinuous?",
610650
<&imx477_0>, "status=okay";
651+
cam0-imx519 = <&mux_in0>, "remote-endpoint:0=",<&imx519_0_ep>,
652+
<&imx519_0_ep>, "remote-endpoint:0=",<&mux_in0>,
653+
<&mux_in0>, "clock-noncontinuous?",
654+
<&imx519_0>, "status=okay",
655+
<&imx519_0_vcm>, "status=okay",
656+
<&imx519_0>,"lens-focus:0=", <&imx519_0_vcm>;
611657
cam0-imx708 = <&mux_in0>, "remote-endpoint:0=",<&imx708_0_ep>,
612658
<&imx708_0_ep>, "remote-endpoint:0=",<&mux_in0>,
613659
<&mux_in0>, "clock-noncontinuous?",
@@ -642,6 +688,12 @@
642688
<&imx477_1_ep>, "remote-endpoint:0=",<&mux_in1>,
643689
<&mux_in1>, "clock-noncontinuous?",
644690
<&imx477_1>, "status=okay";
691+
cam1-imx519 = <&mux_in1>, "remote-endpoint:0=",<&imx519_1_ep>,
692+
<&imx519_1_ep>, "remote-endpoint:0=",<&mux_in1>,
693+
<&mux_in1>, "clock-noncontinuous?",
694+
<&imx519_1>, "status=okay",
695+
<&imx519_1_vcm>, "status=okay",
696+
<&imx519_1>,"lens-focus:0=", <&imx519_1_vcm>;
645697
cam1-imx708 = <&mux_in1>, "remote-endpoint:0=",<&imx708_1_ep>,
646698
<&imx708_1_ep>, "remote-endpoint:0=",<&mux_in1>,
647699
<&mux_in1>, "clock-noncontinuous?",
@@ -676,6 +728,12 @@
676728
<&imx477_2_ep>, "remote-endpoint:0=",<&mux_in2>,
677729
<&mux_in2>, "clock-noncontinuous?",
678730
<&imx477_2>, "status=okay";
731+
cam2-imx519 = <&mux_in2>, "remote-endpoint:0=",<&imx519_2_ep>,
732+
<&imx519_2_ep>, "remote-endpoint:0=",<&mux_in2>,
733+
<&mux_in2>, "clock-noncontinuous?",
734+
<&imx519_2>, "status=okay",
735+
<&imx519_2_vcm>, "status=okay",
736+
<&imx519_2>,"lens-focus:0=", <&imx519_2_vcm>;
679737
cam2-imx708 = <&mux_in2>, "remote-endpoint:0=",<&imx708_2_ep>,
680738
<&imx708_2_ep>, "remote-endpoint:0=",<&mux_in2>,
681739
<&mux_in2>, "clock-noncontinuous?",
@@ -710,6 +768,12 @@
710768
<&imx477_3_ep>, "remote-endpoint:0=",<&mux_in3>,
711769
<&mux_in3>, "clock-noncontinuous?",
712770
<&imx477_3>, "status=okay";
771+
cam3-imx519 = <&mux_in3>, "remote-endpoint:0=",<&imx519_3_ep>,
772+
<&imx519_3_ep>, "remote-endpoint:0=",<&mux_in3>,
773+
<&mux_in3>, "clock-noncontinuous?",
774+
<&imx519_3>, "status=okay",
775+
<&imx519_3_vcm>, "status=okay",
776+
<&imx519_3>,"lens-focus:0=", <&imx519_3_vcm>;
713777
cam3-imx708 = <&mux_in3>, "remote-endpoint:0=",<&imx708_3_ep>,
714778
<&imx708_3_ep>, "remote-endpoint:0=",<&mux_in3>,
715779
<&mux_in3>, "clock-noncontinuous?",

0 commit comments

Comments
 (0)