From patchwork Sun Jan 11 13:58:55 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Barry Song <21cnbao@gmail.com> X-Patchwork-Id: 5606151 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 311A8C058D for ; Sun, 11 Jan 2015 13:59:29 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 144C02063F for ; Sun, 11 Jan 2015 13:59:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2DDA92063B for ; Sun, 11 Jan 2015 13:59:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751598AbbAKN70 (ORCPT ); Sun, 11 Jan 2015 08:59:26 -0500 Received: from mail-wg0-f43.google.com ([74.125.82.43]:57020 "EHLO mail-wg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751233AbbAKN70 (ORCPT ); Sun, 11 Jan 2015 08:59:26 -0500 Received: by mail-wg0-f43.google.com with SMTP id k14so15262308wgh.2 for ; Sun, 11 Jan 2015 05:59:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=AgBAIPnxXRUdUSNTvv0H2/8hjn6U3lh53lfF5ccFs8A=; b=WPa2aIQvaau1SCJ1BaFefCVCs51+Muw3dcrXoQd+t0NOo8D+CAh4I53/R9dZ65sG6R 9Xw8g5Sgnt6v7gaOIPC2T0rmncFETKUaz/732Qqs1pPPURhd5d8ZPdkc27V4oAbvtq22 sIkt7RPNYOSaqb8ku65w5Y50qupX/Ny2gSL+4dMBXme8XRwKJgOZ9nBcJIoWgb62mjqN Uasgza6MDdnVzvAinSmg+RmGP39GTlawMr+Eu5BMLZYapOpeT4rYL+ntq6pidpPlenQt cPJzmKRaQ4KjrfY1xVhnbxOjZaOm6Edq6+v7NVCHBXxvNZuwGHKKzs/rKbYRA1kQtMil qHdw== X-Received: by 10.194.193.4 with SMTP id hk4mr11293530wjc.38.1420984765294; Sun, 11 Jan 2015 05:59:25 -0800 (PST) Received: from localhost.localdomain ([27.115.116.222]) by mx.google.com with ESMTPSA id fx6sm17639491wjc.39.2015.01.11.05.59.10 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Jan 2015 05:59:24 -0800 (PST) From: Barry Song <21cnbao@gmail.com> To: broonie@kernel.org, linux-spi@vger.kernel.org Cc: workgroup.linux@csr.com, Barry Song , Qipan Li Subject: [PATCH] spi: sirf: add missed devicetree binding document Date: Sun, 11 Jan 2015 21:58:55 +0800 Message-Id: <1420984735-3842-1-git-send-email-21cnbao@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SBL_CSS, T_DKIM_INVALID, T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Barry Song Signed-off-by: Barry Song Signed-off-by: Qipan Li --- Documentation/devicetree/bindings/spi/spi-sirf.txt | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-sirf.txt diff --git a/Documentation/devicetree/bindings/spi/spi-sirf.txt b/Documentation/devicetree/bindings/spi/spi-sirf.txt new file mode 100644 index 0000000..4c7adb8f --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-sirf.txt @@ -0,0 +1,41 @@ +* CSR SiRFprimaII Serial Peripheral Interface + +Required properties: +- compatible : Should be "sirf,prima2-spi" +- reg : Offset and length of the register set for the device +- interrupts : Should contain SPI interrupt +- resets: phandle to the reset controller asserting this device in + reset + See ../reset/reset.txt for details. +- dmas : Must contain an entry for each entry in clock-names. + See ../dma/dma.txt for details. +- dma-names : Must include the following entries: + - rx + - tx +- clocks : Must contain an entry for each entry in clock-names. + See ../clocks/clock-bindings.txt for details. + +- #address-cells: Number of cells required to define a chip select + address on the SPI bus. Should be set to 1. +- #size-cells: Should be zero. + +Optional properties: +- spi-max-frequency: Specifies maximum SPI clock frequency, + Units - Hz. Definition as per + Documentation/devicetree/bindings/spi/spi-bus.txt +- cs-gpios: should specify GPIOs used for chipselects. + +Example: + +spi0: spi@b00d0000 { + compatible = "sirf,prima2-spi"; + reg = <0xb00d0000 0x10000>; + interrupts = <15>; + dmas = <&dmac1 9>, + <&dmac1 4>; + dma-names = "rx", "tx"; + #address-cells = <1>; + #size-cells = <0>; + clocks = <&clks 19>; + resets = <&rstc 26>; +};