Hello,
I want to use the SPI device main_spi1 as a slave. For main_spi0 this is working, however for main_spi0 DMA is enabled in the device tree (k3-am64-main.dtsi):
main_spi0: spi@20100000 {
compatible = "ti,am654-mcspi", "ti,omap4-mcspi";
reg = <0x00 0x20100000 0x00 0x400>;
interrupts = <GIC_SPI 172 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
power-domains = <&k3_pds 141 TI_SCI_PD_EXCLUSIVE>;
clocks = <&k3_clks 141 0>;
dmas = <&main_pktdma 0xc300 0>, <&main_pktdma 0x4300 0>;
dma-names = "tx0", "rx0";
status = "disabled";
};
Beside that I extended main_spi0 with the settings required for working as an spi slave in my custom device tree:
&main_spi0 {
status = "okay";
#address-cells = <0>;
#size-cells = <0>;
spi-slave;
pinctrl-names = "default";
pinctrl-0 = <&main_spi0_pins_default>;
slave {
reg = <0>;
compatible = "rohm,dh2228fv";
spi-max-frequency = <4000000>;
};
};
For main_spi1 the dmas and the dma-names entries are missing. I'm aware that the dma-names need to be called "tx0" and "rx0" for the first chip select.
Where does the description for the dmas (0xc300 0, 0x4300 0) for the spi0 come frome and what is required for main_spi1 dmas definition?
Thank you!