Best pinmux approach for Atmel sam soc (sam4s & same70)


Vincent - VLoTech
 

Hi all, 

I'm currently extending the support for the sam4s and same70, by adding the SPI driver for it. 

To create / extend a board which actually uses the SPI bus, I noticed there several different approaches to handle the pinmux. 
1) device tree spec at board level assigning peripheral pins. 
2) pinmux.c file using pinmux interface
3) pinmux.c file useing pinmux device interface

What is the preferred way, or better said, what is the design pattern to apply for now and in the near future. 

Looking forward to your insights. 

Kind regards,

Vincent van der Locht

Join devel@lists.zephyrproject.org to automatically receive all group messages.