sayhi2008
New Contributor
3 years agoCannot attach a second spi for arria10
Hi,
I’m working on arria10 and have developed my own board to phase with arria 10. I need to enable 2 spi, after following the doc Building Bootloader for Cyclone V and Arria 10 1 with my own hps.xml, quartus version 22.4pro, uboot version 21.04, the board is booted up with only one spi enabled. With some debugging, I find that the default device tree file (socfpga_arria10_socdk.dtsi) only enables 1 spi. So how should I generate the new device tree file, please? based on the doc, from 20.3pro, bsp editor is not used any more.
Tried change the socfpga_arria10_socdk.dtsi below to enable spi0(spi1 is default from socfpga uboot), but uboot stucked at reset peripherals
"Deasserting all peripheral resets\n"
then reboot again, never goes to linux.
--------------------------------------------
&spi0 {
status = “okay”;
};
&spi1 {
status = “okay”;
resource-manager@0 { compatible = "altr,a10sr"; reg = <0>; spi-max-frequency = <100000>; /* low-level active IRQ at GPIO1_5 */ interrupt-parent = <&portb>; interrupts = <5 IRQ_TYPE_LEVEL_LOW>; interrupt-controller; #interrupt-cells = <2>; a10sr_gpio: gpio-controller { compatible = "altr,a10sr-gpio"; gpio-controller; #gpio-cells = <2>; }; a10sr_rst: reset-controller { compatible = "altr,a10sr-reset"; #reset-cells = <1>; }; };
};
any hints?