On Fri, Jul 4, 2014 at 9:27 AM, bruce bushby <[email protected]> wrote: > > > Maxime: Many gratitude's for all your A20 dts contributions. Hoping I could > ask about the 4 SPI controllers (SPI0-SPI3) > > I was wanting to better understand how people put dts files together so > started reading the A20 Users Manual looking for addresses that I recognize > in the dts files.....when I noticed on page 241 (1.19.2 Port Configuration > Table) that the 4 pins for SPI3 (PA5 - PA8) *can* also be used for GTXD.... > (emac) > > emac_pins_a: emac0@0 { > allwinner,pins = "PA0", "PA1", "PA2", > "PA3", "PA4", "PA5", "PA6", > "PA7", "PA8", "PA9", "PA10", > "PA11", "PA12", "PA13", "PA14", > "PA15", "PA16"; > allwinner,function = "emac"; > allwinner,drive = <0>; > allwinner,pull = <0>; > }; > > > Does this mean that it's not possible to have SPI0-SPI3 + ethernet working at > the same time?
This is pin control. Look at the section in the dtsi file for the CPU and the pin control driver in the kernel. In SOCs most pins can take on three or four different roles. You have to choose which group of peripherals you want to use given the constraints on what pins can be mapped. In the kernel tree look at: Documentation/pinctrl.txt Documentation/devicetree/bindings/pinctrl > > > Thanks > Bruce > > > > > On Fri, Jul 4, 2014 at 2:08 PM, Maxime Ripard > <[email protected]> wrote: >> >> On Fri, Jul 04, 2014 at 08:52:25AM -0400, [email protected] wrote: >> > Isn't SPI already working in Emilio's kernel? >> >> SPI is actually working on every kernel since 3.15 (without DMA >> though). >> >> -- >> Maxime Ripard, Free Electrons >> Embedded Linux, Kernel and Android engineering >> http://free-electrons.com > > > -- > You received this message because you are subscribed to the Google Groups > "linux-sunxi" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- Jon Smirl [email protected] -- You received this message because you are subscribed to the Google Groups "linux-sunxi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
