Skip to contentSkip to conversation

spi/pl022: Devicetree support w/o platform data

PATCH In review Roland Stigge 2 participants 2 messages Sep 17, 2012 – Sep 18, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi/pl022: Devicetree support w/o platform data

Even with devicetree support, we needed platform data to provide some data like bus_id and enable_dma, leading to mixed device tree and platform data. This patch makes it possible to provide all that information via device tree. Now, the data must be provided via platform data _or_ device tree completely.

Only in case of callback specification (dma_filter()), platform data is necessary.

---
 Documentation/devicetree/bindings/spi/spi_pl022.txt |    9 ++++
 drivers/spi/spi-pl022.c                             |   41 +++++++++++++++++---
 2 files changed, 45 insertions(+), 5 deletions(-)
Documentation/devicetree/bindings/spi/spi_pl022.txt +9 -0
@@ -10,6 +10,15 @@ Optional properties:
 - cs-gpios : should specify GPIOs used for chipselects.
   The gpios will be referred to as reg = <index> in the SPI child nodes.
   If unspecified, a single SPI device without a chip select can be used.
+- pl022,bus-id : Bus ID (0, 1, ...)
+- pl022,enable-dma : enables DMA driven transfers (boolean)
+- pl022,autosuspend-delay : delay in ms following transfer completion before
+			    the runtime power management system suspends the
+			    device. A setting of 0 indicates no delay and the
+                            device will be suspended immediately
+- pl022,rt : indicates the controller should run the message pump with realtime
+             priority to minimise the transfer latency on the bus (boolean)
+
 
 SPI slave nodes must be children of the SPI master node and can
 contain the following properties.
drivers/spi/spi-pl022.c +36 -5

60 lines not on this page · raw message

Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · Roland Stigge

Even with devicetree support, we needed platform data to provide some data like bus_id and enable_dma, leading to mixed device tree and platform data. This patch makes it possible to provide all that information via device tree. Now, the data must be provided via platform data _or_ device tree completely.

Only in case of callback specification (dma_filter()), platform data is necessary.

This looks good so:

But I think you need to page Mark Brown so it gets picked to the stuff queued for the next merge window. I think the dependent patch is in his SPI tree.

So I'd resend it to mark+grant with my ACK.

Yours,
Linus Walleij