[PATCH 1/3] dt-bindings: spi: Add VIA/WonderMedia serial flash controller
Alexey Charkov
alchark at gmail.com
Mon Jun 9 02:15:22 PDT 2025
On Mon, Jun 9, 2025 at 1:07 PM Miquel Raynal <miquel.raynal at bootlin.com> wrote:
>
> Hi Alexey,
>
> >> > Happy to reference the spi-controller.yaml binding if so.
> >>
> >> SPI NOR flashes are still child devices of an SPI controller. You can
> >> look at other examples - aren't they all using spi-controller? Why this
> >> would be different? Unless you found some cases that are different, but
> >> then which ones?
> >
> > No strong opinions here, and no expectation of any special treatment
> > :) Just wanted to consult on what's most appropriate.
> >
> > My (subjective and perhaps unfounded) expectation when seeing
> > something advertise itself as an SPI controller was that it would be a
> > general purpose SPI master, to which one can e.g. connect an SPI
> > driven LCD screen and get it to work with generic Linux SPI
> > infrastructure - which would not be possible with this single-purpose
> > NOR-only flash controller. Given that I don't know how flexible or
> > restrictive other examples are in terms of driving arbitrary SPI
> > devices, I thought it's better to just ask.
> >
> > What I'm getting from this exchange here is that I'd better use the
> > spi-controller binding and respective node names regardless of the
> > fact that this controller cannot drive arbitrary SPI devices beyond
> > NOR flash (which, as I'm getting, is irrelevant after all).
>
> Just for information, there are several SPI controllers which are
> optimized for flash handling (not only NOR, though) and for that we have
> a spi-mem layer which allows to reference a set of SPI memory "only"
> callbacks. On the description side though, these controllers are like
> all other SPI controllers, so the same controller bindings may apply.
Noted, thank you Miquèl!
Best regards,
Alexey
More information about the linux-arm-kernel
mailing list