Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932423AbbDHSCr (ORCPT ); Wed, 8 Apr 2015 14:02:47 -0400 Received: from mail-gw2-out.broadcom.com ([216.31.210.63]:27436 "EHLO mail-gw2-out.broadcom.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754650AbbDHSCk (ORCPT ); Wed, 8 Apr 2015 14:02:40 -0400 X-IronPort-AV: E=Sophos;i="5.11,545,1422950400"; d="scan'208";a="61580555" From: Jonathan Richardson To: Mark Brown , Dmitry Torokhov , Anatol Pomazau CC: Jonathan Richardson , Scott Branden , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , , , bcm-kernel-feedback-list , , Rafal Milecki Subject: [PATCH v2 1/5] ARM: dts: Add binding for Broadcom MSPI driver. Date: Wed, 8 Apr 2015 11:04:31 -0700 Message-ID: <1428516275-12819-2-git-send-email-jonathar@broadcom.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1428516275-12819-1-git-send-email-jonathar@broadcom.com> References: <1428516275-12819-1-git-send-email-jonathar@broadcom.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1931 Lines: 57 Signed-off-by: Jonathan Richardson --- .../devicetree/bindings/spi/brcm,mspi-spi.txt | 36 ++++++++++++++++++++ 1 file changed, 36 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..8c10a39 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/brcm,mspi-spi.txt @@ -0,0 +1,36 @@ +Broadcom MSPI controller + +Required properties: +- compatible: Must be either "brcm,mspi" or "brcm,bcma-mspi". Use + "brcm,bcma-mspi" for controllers on a bcma bus and "brcm,mspi" otherwise. + +- reg: Physical base address and length of the controller's registers. + +- #address-cells: should be 1. + +- #size-cells: should be 0. + +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@18047000 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "brcm,mspi"; + reg = <0x18047000 0x1000>; + clocks = <&axi41_clk>; + clock-names = "mspi_clk"; + clock-frequency = <12500000>; +}; -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/