I'm working on a custom PCB with a Zynq XC7Z010, the harware to some extent has been copied from the ZyboZ7.
I could produce the petalinux bootable image and access the OS via serial interface.
I have problems in creating SPI drivers, unfortunately there is no bsp available for petalinux 2022.2 and I guess something is missing.
Do you know if a bsp for Petalinux 2022.2 would be made available?
Thank you,
Ed
--------------------------------
p.s.
I follow the configurations steps to enable the SPI drivers in the petalinux Kernel: Cadence SPI controller, Xilinx SPI controller common module, Xilinx Zynq QSPI controller and User mode SPI device driver support are all enabled on the kernel configuration menu.
I finally add in the system-user.dtsi the settings:
&spi0 {
is-decoded-cs = <0>;
num-cs = <1>;
status = "okay";
spidev@0x00 {
compatible = "spidev";
spi-max-frequency = <1000000>;
reg = <0>;
};
};
SPI0 is enabled in the Zynq and for the corresponding MIO pins.
Question
SIE
Hello,
I'm working on a custom PCB with a Zynq XC7Z010, the harware to some extent has been copied from the ZyboZ7.
I could produce the petalinux bootable image and access the OS via serial interface.
I have problems in creating SPI drivers, unfortunately there is no bsp available for petalinux 2022.2 and I guess something is missing.
Do you know if a bsp for Petalinux 2022.2 would be made available?
Thank you,
Ed
--------------------------------
p.s.
I follow the configurations steps to enable the SPI drivers in the petalinux Kernel: Cadence SPI controller, Xilinx SPI controller common module, Xilinx Zynq QSPI controller and User mode SPI device driver support are all enabled on the kernel configuration menu.
I finally add in the system-user.dtsi the settings:
&spi0 {
is-decoded-cs = <0>;
num-cs = <1>;
status = "okay";
spidev@0x00 {
compatible = "spidev";
spi-max-frequency = <1000000>;
reg = <0>;
};
};
SPI0 is enabled in the Zynq and for the corresponding MIO pins.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now