Can we directly manipulate PWM and SPI of SPE above linux kernel?

As title, We want to use the PWM and SPI of SPE on linux kernel but not RTOS, is that possible?

Hello, garretzou:
yes, that’s possible.

br
Chenjian

Hi Chenjian,

Could you share how to manipulate them?
Do you have recommended tools or method?
We find this tool: https://github.com/cpb-/spi-tools, but we do not comfirm it is usable.

Thanks.

Hello, arknights:
The tool you provided is to access SPI from user space. I’ve not tested that, but it’s assumed to work.
You can refer to SPI driver in L4T kernel source package.

br
Chenjian

Hi Chenjian,

We want to manipulate SPI0.
I try to use that tool “$ spi-config -d /dev/spidev0.0 -q”, but it shows not find device.

Thanks.

Hi Chenjian,

Shall we enable SPI0 in the DTS first?
Please help us.

Thanks.