Hello
I am using 7z020 board and I want to receive data from SPI
but the problem is in the /dev folder there is no SPIDEV file .
I did the following steps
In the XPS I design all the hardware , In this particular project I took a simplest case in which I only add SPI and connected it with EMIO.
This is my constraint file
NET "processing_system7_0_SPI0_MOSI_O_pin" LOC = R19;
NET "processing_system7_0_SPI0_SCLK_I_pin" LOC = D18;
NET "processing_system7_0_SPI0_SS_O_pin" LOC = L21;
NET "processing_system7_0_SPI0_MOSI_O_pin" IOSTANDARD = LVCMOS25;
NET "processing_system7_0_SPI0_SCLK_I_pin" IOSTANDARD = LVCMOS25;
NET "processing_system7_0_SPI0_SS_O_pin" IOSTANDARD = LVCMOS25;
After this step I generate the .bit file and then I made boot file.
after booting the board problem starts when I didn't find SPIDEV file in the /dev folder . for this purpose I made devicetree for this particular project using SDK.
and add the following lines
spidev@0{
tcompatible="spidev";
treg =<0>; //chipselect 0
tspi-max-frequency= <50000000>;
t};
and then convert it into .dtb file because it was in .dts.
then rebuild the kernal
when i am using these files the done LED is on but on serial terminal is blank. Blue LEd means my FPGA is programmed and I can see clock means hardware connection is done.
Now where i am doing mistake can anyone guide me please
May be i am doing mistake here
1. When I rebuild the kernal I put devicetree.dts in the ./ar,/arch/boot/dts folder and .dtb in the ./arch/arm/boot . is it ok???
2.I didn't make my u-boot for this particular program
Can you give me ANY Suggestions
thanks
Sana