Skip to content
Snippets Groups Projects
Commit 5fbfa938 authored by orphee.antoniad's avatar orphee.antoniad
Browse files

AXI Stream triggered but get no frame from yavta.

parent 942fa9f6
Branches
No related tags found
No related merge requests found
PETALINUX_VER=2020.2 PETALINUX_VER=2020.2
VALIDATE_HW_CHKSUM=1 VALIDATE_HW_CHKSUM=1
HARDWARE_CHECKSUM=6c31bbdb75a850f24b76171de480c2fd HARDWARE_CHECKSUM=9530777292ab337e6ffec029633406cf
YOCTO_SDK=5ff8fc5f85d1566b314bb73eaa378212 YOCTO_SDK=5ff8fc5f85d1566b314bb73eaa378212
RFSCONFIG_CHKSUM=234f2f09c23647961a2fbda891ad049b RFSCONFIG_CHKSUM=234f2f09c23647961a2fbda891ad049b
HARDWARE_PATH=/home/scalpuser/Desktop/scalp/scalp_firmware/designs/vivado/scalp_mipi/2020.2/lin64/scalp_mipi/scalp_mipi.xsa HARDWARE_PATH=/home/orphee/Documents/recherche/scalp/scalp_firmware/designs/vivado/scalp_mipi/2020.2/lin64/scalp_mipi/scalp_mipi.xsa
...@@ -256,6 +256,4 @@ CONFIG_YOCTO_NETWORK_SSTATE_FEEDS_URL="http://petalinux.xilinx.com/sswreleases/r ...@@ -256,6 +256,4 @@ CONFIG_YOCTO_NETWORK_SSTATE_FEEDS_URL="http://petalinux.xilinx.com/sswreleases/r
# User Layers # User Layers
# #
CONFIG_USER_LAYER_0="" CONFIG_USER_LAYER_0=""
CONFIG_SUBSYSTEM_BOOTARGS_GENERATED="console=ttyPS0,115200 earlycon" CONFIG_SUBSYSTEM_BOOTARGS_GENERATED="console=ttyPS0,115200 earlycon"
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#define CONFIG_MII #define CONFIG_MII
#define CONFIG_NET_MULTI #define CONFIG_NET_MULTI
#define CONFIG_NETCONSOLE 1 #define CONFIG_NETCONSOLE 1
#define CONFIG_SERVERIP 172.16.251.154 #define CONFIG_SERVERIP 10.136.125.49
#define CONFIG_IPADDR 192.168.0.10 #define CONFIG_IPADDR 192.168.0.10
#define CONFIG_GATEWAYIP 192.168.0.1 #define CONFIG_GATEWAYIP 192.168.0.1
#define CONFIG_NETMASK 255.255.255.0 #define CONFIG_NETMASK 255.255.255.0
......
No preview for this file type
No preview for this file type
#!/bin/sh #!/bin/sh
width=640
media-ctl -d /dev/media0 -V '"ov5640 1-003c":0 [fmt:UYVY/'640x480'@1/'30' field:none]' height=480
media-ctl -d /dev/media0 -V '"43c20000.mipi_csi2_rx_subsystem":0 [fmt:UYVY/'640x480' field:none]' rate=60
v4l2-ctl -d /dev/video0 --set-fmt-video=width=640,height=480,pixelformat=UYVY media-ctl -d /dev/media0 -V '"ov5640 1-003c":0 [fmt:UYVY/'"$width"x"$height"'@1/'"$rate"' field:none]'
v4l2-ctl -d /dev/video0 --stream-mmap --stream-count=1 --stream-to=test.raw media-ctl -d /dev/media0 -V '"43c20000.mipi_csi2_rx_subsystem":0 [fmt:UYVY/'"$width"x"$height"' field:none]'
v4l2-ctl -d /dev/video0 --set-fmt-video=width="$width",height="$height",pixelformat='YUYV'
yavta -c1 -f YUYV -s "$width"x"$height" -F /dev/video0
...@@ -30,12 +30,12 @@ ...@@ -30,12 +30,12 @@
clock-names = "lite_aclk", "dphy_clk_200M", "video_aclk"; clock-names = "lite_aclk", "dphy_clk_200M", "video_aclk";
clocks = <&clkc 15>, <&misc_clk_0>, <&clkc 15>; clocks = <&clkc 15>, <&misc_clk_0>, <&clkc 15>;
compatible = "xlnx,mipi-csi2-rx-subsystem-5.1"; compatible = "xlnx,mipi-csi2-rx-subsystem-5.1";
reg = <0x43c20000 0x1000>;
interrupt-names = "csirxss_csi_irq"; interrupt-names = "csirxss_csi_irq";
interrupt-parent = <&intc>; interrupt-parent = <&intc>;
interrupts = <0 30 4>; interrupts = <0 30 4>;
reg = <0x43c20000 0x1000>;
xlnx,axis-tdata-width = <32>; xlnx,axis-tdata-width = <32>;
xlnx,cal-mode = "NONE"; xlnx,cal-mode = "FIXED";
xlnx,clk-io-swap = "false"; xlnx,clk-io-swap = "false";
xlnx,clk-lane-io-position = <0x0>; xlnx,clk-lane-io-position = <0x0>;
xlnx,clk-lp-io-swap = "false"; xlnx,clk-lp-io-swap = "false";
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
xlnx,dl3-lp-io-swap = "false"; xlnx,dl3-lp-io-swap = "false";
xlnx,dphy-lanes = <0x2>; xlnx,dphy-lanes = <0x2>;
xlnx,dphy-mode = "SLAVE"; xlnx,dphy-mode = "SLAVE";
xlnx,dphy-present ;
xlnx,en-7s-linerate-check = "false"; xlnx,en-7s-linerate-check = "false";
xlnx,en-bg0-pin0 = "false"; xlnx,en-bg0-pin0 = "false";
xlnx,en-bg0-pin6 = "false"; xlnx,en-bg0-pin6 = "false";
...@@ -76,16 +77,16 @@ ...@@ -76,16 +77,16 @@
xlnx,en-timeout-regs = "false"; xlnx,en-timeout-regs = "false";
xlnx,en-vcx = "false"; xlnx,en-vcx = "false";
xlnx,esc-timeout = <0x6400>; xlnx,esc-timeout = <0x6400>;
xlnx,exdes-board = "ZCU102"; xlnx,exdes-board = "SP701";
xlnx,exdes-config = "MIPI_Video_Pipe_Camera_to_Display"; xlnx,exdes-config = "MIPI_Video_Pipe_Camera_to_Display";
xlnx,exdes-fmc = "LI-IMX274MIPI-FMC V1.0 Single Sensor"; xlnx,exdes-fmc = "LI-IMX274MIPI-FMC V1.0 Single Sensor";
xlnx,exdesboard-version = "xilinx.com:vck190:part0:2.0"; xlnx,exdesboard-version = "xilinx.com:vck190:part0:2.0";
xlnx,fifo-rd-en-control = "true"; xlnx,fifo-rd-en-control = "true";
xlnx,hs-line-rate = <0x320>; xlnx,hs-line-rate = <0x150>;
xlnx,hs-settle-ns = <0x93>; xlnx,hs-settle-ns = <0xa4>;
xlnx,hs-timeout = <0x10005>; xlnx,hs-timeout = <0x10005>;
xlnx,idly-group-name = "mipi_csi2rx_idly_group"; xlnx,idly-group-name = "mipi_csi2rx_idly_group";
xlnx,idly-tap = <0x1>; xlnx,idly-tap = <0x2>;
xlnx,init = <0x186a0>; xlnx,init = <0x186a0>;
xlnx,int-qor-check = <0x0>; xlnx,int-qor-check = <0x0>;
xlnx,is-7series = "true"; xlnx,is-7series = "true";
...@@ -97,7 +98,7 @@ ...@@ -97,7 +98,7 @@
xlnx,ppc = <1>; xlnx,ppc = <1>;
xlnx,rcve-alt-deskew-seq = "false"; xlnx,rcve-alt-deskew-seq = "false";
xlnx,rcve-deskew-seq = "false"; xlnx,rcve-deskew-seq = "false";
xlnx,share-idlyctrl = "false"; xlnx,share-idlyctrl = "true";
xlnx,stretch-line-rate = <0xdac>; xlnx,stretch-line-rate = <0xdac>;
xlnx,vc = <4>; xlnx,vc = <4>;
xlnx,vfb ; xlnx,vfb ;
...@@ -129,18 +130,18 @@ ...@@ -129,18 +130,18 @@
clock-names = "ap_clk"; clock-names = "ap_clk";
clocks = <&clkc 15>; clocks = <&clkc 15>;
compatible = "xlnx,v-frmbuf-wr-2.2", "xlnx,axi-frmbuf-wr-v2.1"; compatible = "xlnx,v-frmbuf-wr-2.2", "xlnx,axi-frmbuf-wr-v2.1";
reg = <0x43c30000 0x10000>;
interrupt-names = "interrupt"; interrupt-names = "interrupt";
interrupt-parent = <&intc>; interrupt-parent = <&intc>;
interrupts = <0 31 4>; interrupts = <0 31 4>;
reg = <0x43c30000 0x10000>;
xlnx,dma-addr-width = <32>; xlnx,dma-addr-width = <32>;
xlnx,dma-align = <8>; xlnx,dma-align = <16>;
xlnx,max-height = <480>; xlnx,max-height = <2160>;
xlnx,max-width = <640>; xlnx,max-width = <3840>;
xlnx,pixels-per-clock = <1>; xlnx,pixels-per-clock = <2>;
xlnx,s-axi-ctrl-addr-width = <0x7>; xlnx,s-axi-ctrl-addr-width = <0x7>;
xlnx,s-axi-ctrl-data-width = <0x20>; xlnx,s-axi-ctrl-data-width = <0x20>;
xlnx,vid-formats = "rgb888", "uyvy"; xlnx,vid-formats = "uyvy", "yuyv", "nv16";
xlnx,video-width = <8>; xlnx,video-width = <8>;
}; };
......
...@@ -367,7 +367,7 @@ ...@@ -367,7 +367,7 @@
&mipi_csi2_rx_subsyst_0 { &mipi_csi2_rx_subsyst_0 {
compatible = "xlnx,mipi-csi2-rx-subsystem-4.0"; compatible = "xlnx,mipi-csi2-rx-subsystem-4.0";
reset-gpios = <&gpio0 55 GPIO_ACTIVE_LOW>; // reset-gpios = <&gpio0 55 GPIO_ACTIVE_LOW>;
}; };
&mipi_csi_port0mipi_csi2_rx_subsyst_0 { &mipi_csi_port0mipi_csi2_rx_subsyst_0 {
......
commit 923c6b9c7cd7a4a4a740b60e660d0caa1159bd6e
Author: orphee.antoniad <orphee.antoniadis@hesge.ch>
Date: Tue Aug 10 17:58:02 2021 +0200
[PATCH] ov5640: Set driver to use only one lane
Signed-off-by: Orphee Antoniadis <orphee.antoniadis@hesge.ch>
diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c
index d332c45a89aa..ae5ba98ace12 100644
--- a/drivers/media/i2c/ov5640.c
+++ b/drivers/media/i2c/ov5640.c
@@ -1315,7 +1315,7 @@ static int ov5640_set_stream_mipi(struct ov5640_dev *sensor, bool on)
* [1:0] = 01/00: FIXME: 'debug'
*/
ret = ov5640_write_reg(sensor, OV5640_REG_IO_MIPI_CTRL00,
- on ? 0x45 : 0x40);
+ on ? 0x05 : 0x00);
if (ret)
return ret;
@@ -2013,7 +2013,7 @@ static int ov5640_set_power(struct ov5640_dev *sensor, bool on)
* [2] = 0 : MIPI interface disabled
*/
ret = ov5640_write_reg(sensor,
- OV5640_REG_IO_MIPI_CTRL00, 0x40);
+ OV5640_REG_IO_MIPI_CTRL00, 0x00);
if (ret)
goto power_off;
@@ -2049,7 +2049,7 @@ static int ov5640_set_power(struct ov5640_dev *sensor, bool on)
if (sensor->ep.bus_type == V4L2_MBUS_CSI2_DPHY) {
/* Reset MIPI bus settings to their default values. */
ov5640_write_reg(sensor,
- OV5640_REG_IO_MIPI_CTRL00, 0x58);
+ OV5640_REG_IO_MIPI_CTRL00, 0x18);
ov5640_write_reg(sensor,
OV5640_REG_MIPI_CTRL00, 0x04);
ov5640_write_reg(sensor,
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment