Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-16 Thread Frieder Schrempf
On 15.07.20 21:06, Geert Uytterhoeven wrote: On Mon, Jul 13, 2020 at 5:11 PM Mark Brown wrote: On Mon, Jul 13, 2020 at 03:19:52PM +0200, Frieder Schrempf wrote: I would have expected that there is some kind of existing userspace API to load an overlay manually, but it seems like there isn't!?

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-15 Thread Geert Uytterhoeven
On Mon, Jul 13, 2020 at 5:11 PM Mark Brown wrote: > On Mon, Jul 13, 2020 at 03:19:52PM +0200, Frieder Schrempf wrote: > > I would have expected that there is some kind of existing userspace API to > > load an overlay manually, but it seems like there isn't!? > > > So what's the reasoning behind th

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-15 Thread Mark Brown
On Wed, Jul 15, 2020 at 03:48:37PM +0200, Frieder Schrempf wrote: > On 15.07.20 15:10, Mark Brown wrote: > > I'm not sure platforms like this are a great fit for DT TBH - the > > trouble with DT is that it turns things into ABIs regardless of if it's > > really a finished thing, platform data base

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-15 Thread Frieder Schrempf
On 15.07.20 15:10, Mark Brown wrote: On Wed, Jul 15, 2020 at 01:45:51PM +0200, Frieder Schrempf wrote: On 15.07.20 13:36, Mark Brown wrote: Hey, I proposed other solutions you didn't want to implement! Right, but you have to admit that the other solutions turned out to be rather out of sco

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-15 Thread Mark Brown
On Wed, Jul 15, 2020 at 01:45:51PM +0200, Frieder Schrempf wrote: > On 15.07.20 13:36, Mark Brown wrote: > > Hey, I proposed other solutions you didn't want to implement! > Right, but you have to admit that the other solutions turned out to be > rather out of scope for someone like me who merely

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-15 Thread Frieder Schrempf
On 15.07.20 13:36, Mark Brown wrote: On Wed, Jul 15, 2020 at 09:26:29AM +0200, Frieder Schrempf wrote: On 14.07.20 21:29, Mark Brown wrote: On Tue, Jul 14, 2020 at 10:54:15AM +0200, Frieder Schrempf wrote: patch in our own tree, or if a node with a custom compatible string like for example "

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-15 Thread Mark Brown
On Wed, Jul 15, 2020 at 09:26:29AM +0200, Frieder Schrempf wrote: > On 14.07.20 21:29, Mark Brown wrote: > > On Tue, Jul 14, 2020 at 10:54:15AM +0200, Frieder Schrempf wrote: > > > patch in our own tree, or if a node with a custom compatible string like > > > for > > > example "kontron,user-spi"

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-15 Thread Frieder Schrempf
On 14.07.20 21:29, Mark Brown wrote: On Tue, Jul 14, 2020 at 10:54:15AM +0200, Frieder Schrempf wrote: It would still be quite nice to benefit from the flexibility of DT overlays not only for the SPI use case. But before I come up with any custom solution, for now I will rather have the device

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-14 Thread Mark Brown
On Tue, Jul 14, 2020 at 10:54:15AM +0200, Frieder Schrempf wrote: > It would still be quite nice to benefit from the flexibility of DT overlays > not only for the SPI use case. But before I come up with any custom > solution, for now I will rather have the device in the DT statically. > I just wo

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-14 Thread Frieder Schrempf
On 13.07.20 17:11, Mark Brown wrote: On Mon, Jul 13, 2020 at 03:19:52PM +0200, Frieder Schrempf wrote: I would have expected that there is some kind of existing userspace API to load an overlay manually, but it seems like there isn't!? So what's the reasoning behind this? How can I solve thi

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-13 Thread Mark Brown
On Mon, Jul 13, 2020 at 03:19:52PM +0200, Frieder Schrempf wrote: > I would have expected that there is some kind of existing userspace API to > load an overlay manually, but it seems like there isn't!? > So what's the reasoning behind this? How can I solve this in a > mainline-compliant way, mea

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-13 Thread Frieder Schrempf
On 02.07.20 18:24, Frieder Schrempf wrote: On 02.07.20 17:07, Mark Brown wrote: On Thu, Jul 02, 2020 at 04:46:09PM +0200, Frieder Schrempf wrote: My intention is to use the spidev driver in the default board DT for an interface that is routed to an extension connector and has no dedicated slav

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-02 Thread Frieder Schrempf
On 02.07.20 17:07, Mark Brown wrote: On Thu, Jul 02, 2020 at 04:46:09PM +0200, Frieder Schrempf wrote: My intention is to use the spidev driver in the default board DT for an interface that is routed to an extension connector and has no dedicated slave device attached onboard. So users can atta

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-02 Thread Frieder Schrempf
Hi Geert, On 02.07.20 16:57, Geert Uytterhoeven wrote: Hi Frieder, On Thu, Jul 2, 2020 at 4:46 PM Frieder Schrempf wrote: On 02.07.20 16:25, Mark Brown wrote: On Thu, Jul 02, 2020 at 04:18:46PM +0200, Schrempf Frieder wrote: From: Frieder Schrempf Allow external SPI ports on Kontron board

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-02 Thread Mark Brown
On Thu, Jul 02, 2020 at 04:46:09PM +0200, Frieder Schrempf wrote: > My intention is to use the spidev driver in the default board DT for an > interface that is routed to an extension connector and has no dedicated > slave device attached onboard. So users can attach sensors, etc. with > userspace

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-02 Thread Geert Uytterhoeven
Hi Frieder, On Thu, Jul 2, 2020 at 4:46 PM Frieder Schrempf wrote: > On 02.07.20 16:25, Mark Brown wrote: > > On Thu, Jul 02, 2020 at 04:18:46PM +0200, Schrempf Frieder wrote: > >> From: Frieder Schrempf > >> > >> Allow external SPI ports on Kontron boards to use the spidev driver. > > > > I'd h

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-02 Thread Frieder Schrempf
On 02.07.20 16:25, Mark Brown wrote: On Thu, Jul 02, 2020 at 04:18:46PM +0200, Schrempf Frieder wrote: From: Frieder Schrempf Allow external SPI ports on Kontron boards to use the spidev driver. I'd have expected this to require loading a DT overlay for whatever's attached? My intention is

Re: [PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-02 Thread Mark Brown
On Thu, Jul 02, 2020 at 04:18:46PM +0200, Schrempf Frieder wrote: > From: Frieder Schrempf > > Allow external SPI ports on Kontron boards to use the spidev driver. I'd have expected this to require loading a DT overlay for whatever's attached? signature.asc Description: PGP signature

[PATCH] spi: spidev: Add compatible for external SPI ports on Kontron boards

2020-07-02 Thread Schrempf Frieder
From: Frieder Schrempf Allow external SPI ports on Kontron boards to use the spidev driver. Signed-off-by: Frieder Schrempf --- drivers/spi/spidev.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 59e07675ef86..058b08a3767d 100644 --- a/dri