Hi,
I'm working with a modified clone of the beagleboneblack using linux 4.19.3 taked from the TI SDK . We added a FRAM memory and a SPI display with touch screen. All the devices are connected to SPI1, the FRAM and the touch are using the standard CS and the display use GPIO 11 as chip select. I would like to add DMA support for the display. This is the dts declaration of my devices : but I don't know what edma number take and even if is this possible (use DMA with a non-standard CS) .
Thanks
Best Regards
&spi1 {
status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&spi1_pins>;
ti,spi-num-cs = <3>;
address-cells = <2>;
cs-gpios = <0>, <0>, <&gpio0 11 0>;
dmas = <&edma 42 0
&edma 43 0
&edma 44 0
&edma 44 0
&edma XX 0 <---- !!!!
&edma XX 0>; <---- !!!!
dma-names = "tx0", "rx0", "tx1", "rx1", "tx2", "rx2";
flash: axes-fram@0 {
compatible = "axes-fram";
spi-max-frequency = <25000000>;
reg = <0>;
};
touch: axes-touch@1 {
compatible = "axes-touch";
spi-max-frequency = <1000000>;
spi-cpol;
spi-cpha;
reg = <1>;
};
display: axes-display@2 {
compatible = "axes-display";
spi-max-frequency = <15000000>;
spi-cpol;
spi-cpha;
reg = <2>;
};
};
&am33xx_pinmux {
spi1_pins: pinmux_spi1_pins {
pinctrl-single,pins = <
0x190 (PIN_INPUT_PULLUP | MUX_MODE3) /* mcasp0_aclkx.spi1_sclk */
0x194 (PIN_INPUT_PULLUP | MUX_MODE3) /* mcasp0_fsx.spi1_d0 */
0x198 (PIN_INPUT_PULLUP | MUX_MODE3) /* mcasp0_axr0.spi1_d1 */
0x19c (PIN_OUTPUT | MUX_MODE3) /* mcasp0_ahclkr.spi1_cs0 */
0x164 (PIN_OUTPUT | MUX_MODE2) /* ecap0_in_pwm0_out.spi1_cs1 */
0x0DC (PIN_OUTPUT | MUX_MODE7) /* lcd_data15.gpio0_11 [spi1_cs2] */
0x0D0 (PIN_OUTPUT | MUX_MODE7) /* lcd_data12.gpio0_8 [lcd d/c] */
0x0CC (PIN_INPUT_PULLUP | MUX_MODE7) /* lcd_data11.gpio2_17 [touch irq] */
0x0D4 (PIN_INPUT_PULLUP | MUX_MODE7) /* lcd_data13.gpio0_9 [lcd detect] */
0x0CC (PIN_OUTPUT | MUX_MODE7) /* lcd_data10.gpio2_16 [lcd buzzer] */
>;
};
};