root@imx93evk:~# gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=640,height=480,format=YUY2 ! videoconvert ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to allocate required memory.
/usr/src/debug/gstreamer1.0-plugins-good/1.24.7.imx/sys/v4l2/gstv4l2src.c(956): gst_v4l2src_decide_allocation (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Setting pipeline to NULL ...
/usr/src/debug/gstreamer1.0/1.24.7.imx/libs/gst/base/gstbasesrc.c(3177): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Freeing pipeline ...
#include "imx93-11x11-evk.dts"
/ {
lvds_backlight: lvds_backlight {
compatible = "pwm-backlight";
pwms = <&tpm5 0 100000 0>;
status = "okay";
//pinctrl-0 = <&pinctrl_pwm_en>;
enable-gpios = <&pca9535 7 GPIO_ACTIVE_HIGH>;
brightness-levels = < 0 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>;
default-brightness-level = <80>;
};
lvds0_panel {
compatible = "debix,JW101HD_X00";
//compatible = "boe,ev121wxm-n10-1850";
pinctrl-names = "default";
//pinctrl-0 = <&pinctrl_lvds_en>;
enable-gpios = <&pca9535 8 GPIO_ACTIVE_HIGH>;
backlight = <&lvds_backlight>;
port {
panel_lvds_in: endpoint {
remote-endpoint = <&lvds_out>;
};
};
};
};
&ldb {
status = "okay";
lvds-channel@0 {
//fsl,data-mapping = "jeida";
fsl,data-mapping = "spwg";
fsl,data-width = <24>;
status = "okay";
port@1 {
reg = <1>;
lvds_out: endpoint {
remote-endpoint = <&panel_lvds_in>;
};
};
};
};
&tpm5 {
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pwm5>;
status = "okay";
};
&ldb_phy {
status = "okay";
};
&dphy {
status = "disabled";
};
&dsi {
status = "disabled";
};
&lcdif {
status = "okay";
assigned-clock-rates = <498000000>, <71142857>, <400000000>, <133333333>;
};
//OV5640 (MIPI) --> DPHY --> MIPI CSI2 --> ISI --> /dev/videoX
// &cameradev {
// status = "okay";
// };
// &isi_0 {
// status = "okay";
// cap_device {
// status = "okay";
// };
// };
&lpi2c1 {
clock-frequency = <100000>;
ov5640_0: ov5640_mipi@3c {
compatible = "ovti,ov5640";
reg = <0x3c>;
pinctrl-names = "default";
// pinctrl-0 = <&pinctrl_csi0_pwn>, <&pinctrl_csi0_rst>, <&pinctrl_csi0_mclk>;
//pinctrl-0 = <&pinctrl_csi0_mclk>;
clocks = <&clk IMX93_CLK_CCM_CKO3>;
clock-names = "xclk";
assigned-clocks = <&clk IMX93_CLK_CCM_CKO3>;
assigned-clock-parents = <&clk IMX93_CLK_24M>;
assigned-clock-rates = <24000000>;
csi_id = <0>;
powerdown-gpios = <&pca9535 3 GPIO_ACTIVE_HIGH>;
reset-gpios = <&pca9535_1 15 GPIO_ACTIVE_LOW>;
//mclk = <24000000>;
//mclk_source = <0>;
//mipi_csi;
status = "okay";
port {
isp_out: endpoint {
remote-endpoint = <&mipi_csi_in>;
data-lanes = <1 2>;
clock-lanes = <0>;
};
};
};
};
&dphy_rx {
status = "okay";
};
&mipi_csi {
status = "okay";
ports {
#address-cells = <1>;
#size-cells = <0>;
port@0 {
reg = <0>;
mipi_csi_in: endpoint {
remote-endpoint = <&isp_out>;
data-lanes = <1 2>;
// clock-lanes = <0>;
cfg-clk-range = <28>; /*24MHz = 28*/
hs-clk-range = <0x16>;
bus-type = <4>;
};
};
port@1 {
reg = <1>;
mipi_csi_out: endpoint {
remote-endpoint = <&isi_in>;
};
};
};
};
&isi {
status = "okay";
port {
isi_in: endpoint {
remote-endpoint = <&mipi_csi_out>;
};
};
};