Re: Example of SPI controller in slave mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi Kumar,

On Tue, Nov 13, 2018 at 9:05 PM Kumar Gala <kumar.gala@xxxxxxxxxx> wrote:
> I noticed this commit from you:
>
> commit a8830cb19cfea04edb0381b52fd90eec44986eb9
> Author: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
> Date:   Mon May 22 15:11:40 2017 +0200
>
>     spi: Document DT bindings for SPI controllers in slave mode
>
>     Signed-off-by: Geert Uytterhoeven <geert+renesas@xxxxxxxxx>
>     Reviewed-by: Rob Herring <robh@xxxxxxxxxx>
>     Signed-off-by: Mark Brown <broonie@xxxxxxxxxx>
>
> Curious if you have an example of what the .dts looks like.  I’m trying to figure out what ‘reg’ would look like for the slave controller case?  Is there a reg?

There's no reg property nor unit address, as there's only a single
slave node, see e.g.
https://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers.git/commit/?h=topic/renesas-overlays&id=5dbc65e4177d5a8132b962f8db3e18b9d66c426a

There's more info on the eLinux wiki:
https://elinux.org/Tests:MSIOF-SPI-Slave

I also gave a presentation about SPI slave support at FOSDEM:
https://archive.fosdem.org/2018/schedule/event/hwenablement_linux_as_spi_slave/
Slide 27 shows an example DTS.

If you have more questions, feel free to ask!

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds



[Index of Archives]     [Device Tree]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux Audio Users]     [Photos]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]

  Powered by Linux