Quantcast
Channel: Processors
Viewing latest article 2
Browse Latest Browse All 59068

Forum Post: RE: AM62L-PROCESSOR-SDK: How to configure main_spi0 DMA

$
0
0
Hi Tony, one thing to keep in mind is that pinmux would be different. So, from https://www.ti.com/lit/ds/symlink/am62l.pdf we have: Above should translate in something like below: &main_pmx0 { main_spi0_pins_default: main-spi0-pins-default { pinctrl-single,pins = ; }; }; Also, you would need to enable SPI0 controller, something like below: &main_spi0 { status = "okay"; pinctrl-names = "default"; pinctrl-0 = ; #address-cells = ; #size-cells = ; /* Add your SPI device here */ spidev@0 { compatible = "rohm,dh2228fv"; reg = ; spi-max-frequency = ; }; }; One thing is that in in the current AM62L3 EVM device tree, pins E12 and B12 are configured as GPIOs, as shown below, so you probably would need to remove them (or modify them) when enabling SPI0 to avoid conflicts: AM62LX_IOPAD(0x01ac, PIN_INPUT, 7) /* (E12) SPI0_D0.GPIO0_90 */ AM62LX_IOPAD(0x01b0, PIN_INPUT, 7) /* (B12) SPI0_D1.GPIO0_91 */ https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/arch/arm64/boot/dts/ti/k3-am62l3-evm.dts?h=ti-linux-6.12.y#n234 https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/tree/arch/arm64/boot/dts/ti/k3-am62l3-evm.dts?h=ti-linux-6.12.y#n221 Thank you, Paula

Viewing latest article 2
Browse Latest Browse All 59068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>