From patchwork Thu Apr 10 12:13:50 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Harini Katakam X-Patchwork-Id: 3962451 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.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id B816FBFF02 for ; Thu, 10 Apr 2014 12:14:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E88B2204FB for ; Thu, 10 Apr 2014 12:14:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 14BD8204E4 for ; Thu, 10 Apr 2014 12:14:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030235AbaDJMO0 (ORCPT ); Thu, 10 Apr 2014 08:14:26 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:65518 "EHLO mail-pd0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030385AbaDJMOC (ORCPT ); Thu, 10 Apr 2014 08:14:02 -0400 Received: by mail-pd0-f171.google.com with SMTP id r10so3815016pdi.2 for ; Thu, 10 Apr 2014 05:14:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=Zkz2NGfg6DlAVaKt1gQhm6b75GcSTgRTF5W8IZ1/dL0=; b=KwYCcqyEz/gmv+zzkB7wtopeJoHUgNwoRAMQCtQAumWr0RDLE4SWwoNFKRbGyG7Y0X +zBf8LqXbtXwECaFaD0PQbXOFt6hxLwLofGiv+FtD72wQcIRFCCk7IxG7z0tCS5wGwUm g+nmkkXX9YKC5Pj2gIBMrevgbq+sjhyeDBzPOvqtJ2n/YMNhijtcNEsgu1pIRd6PHugr xk+V3v5UXXDzkj7MMDg2tSrMS63KWCtAFhlDZ59BJi7CVQ+CVrmmnrn4rVGBhKS/Mek5 uORjCKhz471Hu5d3vhMYe2D7IzYonLKNNa9gsW2DKhtkwsq0rfSTQe/lww0RxAYy8CEc Auww== X-Received: by 10.68.201.10 with SMTP id jw10mr19168461pbc.25.1397132041875; Thu, 10 Apr 2014 05:14:01 -0700 (PDT) Received: from localhost ([149.199.62.254]) by mx.google.com with ESMTPSA id ek2sm8786894pbd.30.2014.04.10.05.14.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 10 Apr 2014 05:14:01 -0700 (PDT) From: Harini Katakam To: broonie@kernel.org, grant.likely@linaro.org, robh+dt@kernel.org, pawel.moll@arm.com, mark.rutland@arm.com, ijc+devicetree@hellion.org.uk, galak@codeaurora.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org Cc: michals@xilinx.com, Harini Katakam Subject: [PATCH v3 2/2] devicetree: Add devicetree bindings documentation for Cadence SPI Date: Thu, 10 Apr 2014 17:43:50 +0530 Message-Id: <1397132030-2440-2-git-send-email-harinik@xilinx.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1397132030-2440-1-git-send-email-harinik@xilinx.com> References: <1397132030-2440-1-git-send-email-harinik@xilinx.com> Sender: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 Add spi-cadence bindings documentation. Signed-off-by: Harini Katakam --- v3 changes: - Remove /bits/ 16 from num-cs property in example. - Add is-decoded-cs optional property and add to description of num-cs. v2 changes: - Separate patch for bindings. - Add xilinx compatible string; Make compatible string first in the node. - Use property name num-cs. Make this property optional. --- .../devicetree/bindings/spi/spi-cadence.txt | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-cadence.txt diff --git a/Documentation/devicetree/bindings/spi/spi-cadence.txt b/Documentation/devicetree/bindings/spi/spi-cadence.txt new file mode 100644 index 0000000..94f0914 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-cadence.txt @@ -0,0 +1,31 @@ +Cadence SPI controller Device Tree Bindings +------------------------------------------- + +Required properties: +- compatible : Should be "cdns,spi-r1p6" or "xlnx,zynq-spi-r1p6". +- reg : Physical base address and size of SPI registers map. +- interrupts : Property with a value describing the interrupt + number. +- interrupt-parent : Must be core interrupt controller +- clock-names : List of input clock names - "ref_clk", "pclk" + (See clock bindings for details). +- clocks : Clock phandles (see clock bindings for details). + +Optional properties: +- num-cs : Number of chip selects used. + If a decoder is used, this will be the number of + chip selects after the decoder. +- is-decoded-cs : Flag to indicate whether decoder is used or not. + +Example: + + spi@e0007000 { + compatible = "xlnx,zynq-spi-r1p6"; + clock-names = "ref_clk", "pclk"; + clocks = <&clkc 26>, <&clkc 35>; + interrupt-parent = <&intc>; + interrupts = <0 49 4>; + num-cs = <4>; + is-decoded-cs = <0>; + reg = <0xe0007000 0x1000>; + } ;