All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v4 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral
@ 2016-03-23 13:42 ` Purna Chandra Mandal
  0 siblings, 0 replies; 17+ messages in thread
From: Purna Chandra Mandal @ 2016-03-23 13:42 UTC (permalink / raw)
  To: linux-kernel, linux-spi
  Cc: Mark Brown, Sergei Shtylyov, Joshua Henderson,
	Purna Chandra Mandal, devicetree, linux-mips, Kumar Gala,
	Ian Campbell, Rob Herring, Pawel Moll, Mark Rutland

Document the devicetree bindings for the SPI peripheral found
on Microchip PIC32 class devices.

Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
Acked-by: Rob Herring <robh@kernel.org>

---

Changes in v4: None
Changes in v3: None
Changes in v2:
 - fix indentation
 - add space after comma
 - moved 'cs-gpios' section under 'required' properties.

 .../bindings/spi/microchip,spi-pic32.txt           | 34 ++++++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/microchip,spi-pic32.txt

diff --git a/Documentation/devicetree/bindings/spi/microchip,spi-pic32.txt b/Documentation/devicetree/bindings/spi/microchip,spi-pic32.txt
new file mode 100644
index 0000000..79de379f
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/microchip,spi-pic32.txt
@@ -0,0 +1,34 @@
+Microchip PIC32 SPI Master controller
+
+Required properties:
+- compatible: Should be "microchip,pic32mzda-spi".
+- reg: Address and length of register space for the device.
+- interrupts: Should contain all three spi interrupts in sequence
+              of <fault-irq>, <receive-irq>, <transmit-irq>.
+- interrupt-names: Should be "fault", "rx", "tx" in order.
+- clocks: Phandle of the clock generating SPI clock on the bus.
+- clock-names: Should be "mck0".
+- cs-gpios: Specifies the gpio pins to be used for chipselects.
+            See: Documentation/devicetree/bindings/spi/spi-bus.txt
+
+Optional properties:
+- dmas: Two or more DMA channel specifiers following the convention outlined
+        in Documentation/devicetree/bindings/dma/dma.txt
+- dma-names: Names for the dma channels. There must be at least one channel
+             named "spi-tx" for transmit and named "spi-rx" for receive.
+
+Example:
+
+spi1: spi@1f821000 {
+        compatible = "microchip,pic32mzda-spi";
+        reg = <0x1f821000 0x200>;
+        interrupts = <109 IRQ_TYPE_LEVEL_HIGH>,
+                     <110 IRQ_TYPE_LEVEL_HIGH>,
+                     <111 IRQ_TYPE_LEVEL_HIGH>;
+        interrupt-names = "fault", "rx", "tx";
+        clocks = <&PBCLK2>;
+        clock-names = "mck0";
+        cs-gpios = <&gpio3 4 GPIO_ACTIVE_LOW>;
+        dmas = <&dma 134>, <&dma 135>;
+        dma-names = "spi-rx", "spi-tx";
+};
-- 
1.8.3.1

^ permalink raw reply related	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2016-03-31 11:11 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-03-23 13:42 [PATCH v4 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral Purna Chandra Mandal
2016-03-23 13:42 ` Purna Chandra Mandal
2016-03-23 13:42 ` Purna Chandra Mandal
2016-03-23 13:42 ` Purna Chandra Mandal
2016-03-23 13:42 ` [PATCH v4 2/2] spi: spi-pic32: Add PIC32 SPI master driver Purna Chandra Mandal
     [not found]   ` <1458740576-9168-2-git-send-email-purna.mandal-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>
2016-03-28 19:26     ` Mark Brown
2016-03-28 19:26       ` Mark Brown
     [not found]       ` <20160328192629.GG2350-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-03-29 12:02         ` Purna Chandra Mandal
2016-03-29 12:02           ` Purna Chandra Mandal
     [not found]           ` <56FA6EE1.3000405-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>
2016-03-29 16:25             ` Mark Brown
2016-03-29 16:25               ` Mark Brown
     [not found]               ` <20160329162501.GP2350-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-03-30 10:49                 ` Purna Chandra Mandal
2016-03-30 10:49                   ` Purna Chandra Mandal
     [not found]                   ` <56FBAF2C.9090401-UWL1GkI3JZL3oGB3hsPCZA@public.gmane.org>
2016-03-30 15:48                     ` Mark Brown
2016-03-30 15:48                       ` Mark Brown
     [not found]                       ` <20160330154839.GZ2350-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2016-03-31 11:09                         ` Purna Chandra Mandal
2016-03-31 11:09                           ` Purna Chandra Mandal

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.