All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Richardson <jonathar@broadcom.com>
To: Mark Brown <broonie@kernel.org>,
	Dmitry Torokhov <dtor@google.com>,
	Anatol Pomazau <anatol@google.com>
Cc: Jonathan Richardson <jonathar@broadcom.com>,
	Scott Branden <sbranden@broadcom.com>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>, <linux-kernel@vger.kernel.org>,
	<linux-spi@vger.kernel.org>,
	bcm-kernel-feedback-list <bcm-kernel-feedback-list@broadcom.com>,
	<devicetree@vger.kernel.org>
Subject: [PATCH 1/2] ARM: dts: Add binding for Broadcom MSPI driver.
Date: Tue, 12 May 2015 10:38:12 -0700	[thread overview]
Message-ID: <1431452293-16697-2-git-send-email-jonathar@broadcom.com> (raw)
In-Reply-To: <1431452293-16697-1-git-send-email-jonathar@broadcom.com>


Signed-off-by: Jonathan Richardson <jonathar@broadcom.com>
---
 .../devicetree/bindings/spi/brcm,mspi-spi.txt      |   39 ++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/brcm,mspi-spi.txt

diff --git a/Documentation/devicetree/bindings/spi/brcm,mspi-spi.txt b/Documentation/devicetree/bindings/spi/brcm,mspi-spi.txt
new file mode 100644
index 0000000..e86a7a0
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/brcm,mspi-spi.txt
@@ -0,0 +1,39 @@
+Broadcom MSPI controller
+
+The Broadcom MSPI controller is a SPI controller found on various chips such
+as Cygnus.
+
+Required properties:
+- compatible: Must be "brcm,mspi-v0".
+
+- reg:  The first register is the physical base address of the MSPI controller.
+  The second register is the address of the MSPI interrupt control registers. It
+  is only required for chips that have a separate register set for extended
+  interrupt control. This is required for Cygnus.
+
+- interrupts: Interrupt ID of the controller.
+
+Optional properties:
+- clocks: The MSPI reference clock. If not provided then it is assumed a clock
+  is enabled by default and no control of clock-frequency (see below) is
+  possible.
+
+- clock-names: The name of the reference clock.
+
+- clock-frequency: Desired frequency of the clock. This will set the serial
+  clock baud rate (SPBR) based on the reference clock frequency. The frequency
+  of the SPBR is mspi_clk / (2 * SPBR) where SPBR is a value between 1-255
+  determined by the desired 'clock-frequency'. If not provided then the default
+  baud rate of the controller is used.
+
+Example:
+
+mspi: mspi@18047200 {
+	compatible = "brcm,mspi-v0";
+	reg = <0x18047200 0x188>,
+	      <0x180473a0 0x1c>;
+	interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
+	clocks = <&axi41_clk>;
+	clock-names = "mspi_clk";
+	clock-frequency = <12500000>;
+};
-- 
1.7.9.5

WARNING: multiple messages have this Message-ID (diff)
From: Jonathan Richardson <jonathar@broadcom.com>
To: Mark Brown <broonie@kernel.org>,
	Dmitry Torokhov <dtor@google.com>,
	Anatol Pomazau <anatol@google.com>
Cc: Jonathan Richardson <jonathar@broadcom.com>,
	Scott Branden <sbranden@broadcom.com>,
	Rob Herring <robh+dt@kernel.org>, Pawel Moll <pawel.moll@arm.com>,
	Mark Rutland <mark.rutland@arm.com>,
	Ian Campbell <ijc+devicetree@hellion.org.uk>,
	Kumar Gala <galak@codeaurora.org>,
	linux-kernel@vger.kernel.org, linux-spi@vger.kernel.org,
	bcm-kernel-feedback-list <bcm-kernel-feedback-list@broadcom.com>,
	devicetree@vger.kernel.org
Subject: [PATCH 1/2] ARM: dts: Add binding for Broadcom MSPI driver.
Date: Tue, 12 May 2015 10:38:12 -0700	[thread overview]
Message-ID: <1431452293-16697-2-git-send-email-jonathar@broadcom.com> (raw)
In-Reply-To: <1431452293-16697-1-git-send-email-jonathar@broadcom.com>


Signed-off-by: Jonathan Richardson <jonathar@broadcom.com>
---
 .../devicetree/bindings/spi/brcm,mspi-spi.txt      |   39 ++++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/spi/brcm,mspi-spi.txt

diff --git a/Documentation/devicetree/bindings/spi/brcm,mspi-spi.txt b/Documentation/devicetree/bindings/spi/brcm,mspi-spi.txt
new file mode 100644
index 0000000..e86a7a0
--- /dev/null
+++ b/Documentation/devicetree/bindings/spi/brcm,mspi-spi.txt
@@ -0,0 +1,39 @@
+Broadcom MSPI controller
+
+The Broadcom MSPI controller is a SPI controller found on various chips such
+as Cygnus.
+
+Required properties:
+- compatible: Must be "brcm,mspi-v0".
+
+- reg:  The first register is the physical base address of the MSPI controller.
+  The second register is the address of the MSPI interrupt control registers. It
+  is only required for chips that have a separate register set for extended
+  interrupt control. This is required for Cygnus.
+
+- interrupts: Interrupt ID of the controller.
+
+Optional properties:
+- clocks: The MSPI reference clock. If not provided then it is assumed a clock
+  is enabled by default and no control of clock-frequency (see below) is
+  possible.
+
+- clock-names: The name of the reference clock.
+
+- clock-frequency: Desired frequency of the clock. This will set the serial
+  clock baud rate (SPBR) based on the reference clock frequency. The frequency
+  of the SPBR is mspi_clk / (2 * SPBR) where SPBR is a value between 1-255
+  determined by the desired 'clock-frequency'. If not provided then the default
+  baud rate of the controller is used.
+
+Example:
+
+mspi: mspi@18047200 {
+	compatible = "brcm,mspi-v0";
+	reg = <0x18047200 0x188>,
+	      <0x180473a0 0x1c>;
+	interrupts = <GIC_SPI 70 IRQ_TYPE_LEVEL_HIGH>;
+	clocks = <&axi41_clk>;
+	clock-names = "mspi_clk";
+	clock-frequency = <12500000>;
+};
-- 
1.7.9.5

  reply	other threads:[~2015-05-12 17:38 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-12 17:38 [PATCH 0/2] Add Broadcom MSPI driver Jonathan Richardson
2015-05-12 17:38 ` Jonathan Richardson
2015-05-12 17:38 ` Jonathan Richardson
2015-05-12 17:38 ` Jonathan Richardson [this message]
2015-05-12 17:38   ` [PATCH 1/2] ARM: dts: Add binding for " Jonathan Richardson
     [not found]   ` <1431452293-16697-2-git-send-email-jonathar-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2015-05-12 18:38     ` Florian Fainelli
2015-05-12 18:38       ` Florian Fainelli
2015-05-12 17:38 ` [PATCH 2/2] spi: bcm-mspi: Add support " Jonathan Richardson
2015-05-12 17:38   ` Jonathan Richardson
     [not found]   ` <1431452293-16697-3-git-send-email-jonathar-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2015-05-12 18:46     ` Florian Fainelli
2015-05-12 18:46       ` Florian Fainelli
2015-05-12 19:17     ` Mark Brown
2015-05-12 19:17       ` Mark Brown
     [not found]       ` <20150512191718.GW3066-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-05-13 23:49         ` Jonathan Richardson
2015-05-13 23:49           ` Jonathan Richardson
2015-05-13 23:49           ` Jonathan Richardson
     [not found]           ` <5553E31A.8060309-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2015-05-14  0:19             ` Scott Branden
2015-05-14  0:19               ` Scott Branden
2015-05-14  0:19               ` Scott Branden
2015-05-14 10:31               ` Mark Brown
     [not found]                 ` <20150514103144.GO2761-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-05-14 18:19                   ` Scott Branden
2015-05-14 18:19                     ` Scott Branden
2015-05-14 18:19                     ` Scott Branden
     [not found]                     ` <5554E715.7070203-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2015-05-14 18:28                       ` Florian Fainelli
2015-05-14 18:28                         ` Florian Fainelli
     [not found]                         ` <5554E957.3030809-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-05-14 18:36                           ` Scott Branden
2015-05-14 18:36                             ` Scott Branden
2015-05-14 18:36                             ` Scott Branden
     [not found]                             ` <5554EB49.9020601-dY08KVG/lbpWk0Htik3J/w@public.gmane.org>
2015-05-14 18:55                               ` Jonathan Richardson
2015-05-14 18:55                                 ` Jonathan Richardson
2015-05-14 18:55                                 ` Jonathan Richardson
2015-05-14 19:08                       ` Mark Brown
2015-05-14 19:08                         ` Mark Brown
     [not found]                         ` <20150514190823.GR2761-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-05-14 19:55                           ` Jonathan Richardson
2015-05-14 19:55                             ` Jonathan Richardson
2015-05-14 19:55                             ` Jonathan Richardson
2015-05-14 20:12                             ` Mark Brown
     [not found]                               ` <20150514201221.GX2761-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2015-05-14 21:43                                 ` Florian Fainelli
2015-05-14 21:43                                   ` Florian Fainelli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1431452293-16697-2-git-send-email-jonathar@broadcom.com \
    --to=jonathar@broadcom.com \
    --cc=anatol@google.com \
    --cc=bcm-kernel-feedback-list@broadcom.com \
    --cc=broonie@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=dtor@google.com \
    --cc=galak@codeaurora.org \
    --cc=ijc+devicetree@hellion.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-spi@vger.kernel.org \
    --cc=mark.rutland@arm.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=sbranden@broadcom.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.