Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1351042 > unrolled thread

[RESEND PATCH v2 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

Started byPurna Chandra Mandal <purna.mandal@microchip.com>
First post2016-03-06 05:40 +0100
Last post2016-03-17 13:10 +0100
Articles 3 — 3 participants

Back to article view | Back to linux.kernel


Contents

  [RESEND PATCH v2 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral Purna Chandra Mandal <purna.mandal@microchip.com> - 2016-03-06 05:40 +0100
    Re: [RESEND PATCH v2 1/2] dt/bindings: Add bindings for PIC32 SPI  peripheral Mark Brown <broonie@kernel.org> - 2016-03-06 12:40 +0100
    Re: [RESEND PATCH v2 1/2] dt/bindings: Add bindings for PIC32 SPI  peripheral Rob Herring <robh@kernel.org> - 2016-03-17 13:10 +0100

#1351042 — [RESEND PATCH v2 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

FromPurna Chandra Mandal <purna.mandal@microchip.com>
Date2016-03-06 05:40 +0100
Subject[RESEND PATCH v2 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral
Message-ID<r9yE2-8rb-3@gated-at.bofh.it>
Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>

---

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

[toc] | [next] | [standalone]


#1351082 — Re: [RESEND PATCH v2 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

FromMark Brown <broonie@kernel.org>
Date2016-03-06 12:40 +0100
SubjectRe: [RESEND PATCH v2 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral
Message-ID<r9Fct-4og-1@gated-at.bofh.it>
In reply to#1351042

[Multipart message — attachments visible in raw view] — view raw

On Sun, Mar 06, 2016 at 10:05:26AM +0530, Purna Chandra Mandal wrote:
> Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
> 
> ---
> 
> Changes in v2:
>  - fix indentation
>  - add space after comma
>  - moved 'cs-gpios' section under 'required' properties.

Please send the *whole* series so I can keep track of which things go
together.  There's no need to put noise words like RESEND in the subject
line.

[toc] | [prev] | [next] | [standalone]


#1359784 — Re: [RESEND PATCH v2 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral

FromRob Herring <robh@kernel.org>
Date2016-03-17 13:10 +0100
SubjectRe: [RESEND PATCH v2 1/2] dt/bindings: Add bindings for PIC32 SPI peripheral
Message-ID<rdEUy-7h0-9@gated-at.bofh.it>
In reply to#1351042
On Sun, Mar 06, 2016 at 10:05:26AM +0530, Purna Chandra Mandal wrote:
> Signed-off-by: Purna Chandra Mandal <purna.mandal@microchip.com>
> 
> ---
> 
> 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

Acked-by: Rob Herring <robh@kernel.org>

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web