From patchwork Tue Dec 9 20:21:31 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 42075 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D555E244AC for ; Tue, 9 Dec 2014 20:22:11 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id c13sf1276336eek.2 for ; Tue, 09 Dec 2014 12:22:11 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=2Wg9Tv3Y5s/BuuF4Y5s7wqc64IMs0fcZMNcozpvZ2BE=; b=a+Pe/OK3RkWvXgubaCdwtR/AtfSuwU8CYk2xgBKKVzBD6581BuE9DV1ABpVTvwoyrS fkT9mrLtlKU4J+iUdTFCRgyAaHuMnzvh0ynAHPfTbmAQKOi7NRChtnsQwHQlBhqqrh0p /VNjb9xzpeYw+q0HXCEL8XkxFAcJc371HCctrBMYQ6OXwXBfnAt0PwnXJgnGMowfqvj6 5ch3d5F89Iu/jS79Qbvr+ON9texsBLrAVLoXXSe78TuLvkNebf19lmeFJ8TagwKL8kbj 5Beo5nu2oTLtANJvV0M0VqgTB1R7A9ukN3Yw0JE6CWvnFzf4kdimD9niVAxFbkNTomtv oLpQ== X-Gm-Message-State: ALoCoQmbR8cly75Fik4mpAQiqvzYcR4l4yP2yPDRwwoNwuHh7mSkjzXmtL1haPxigQ+jqAjWu1lP X-Received: by 10.152.44.195 with SMTP id g3mr48799lam.2.1418156531115; Tue, 09 Dec 2014 12:22:11 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.200 with SMTP id h8ls77383lae.76.gmail; Tue, 09 Dec 2014 12:22:10 -0800 (PST) X-Received: by 10.112.63.133 with SMTP id g5mr234030lbs.33.1418156530868; Tue, 09 Dec 2014 12:22:10 -0800 (PST) Received: from mail-la0-f45.google.com (mail-la0-f45.google.com. [209.85.215.45]) by mx.google.com with ESMTPS id r5si489258lal.3.2014.12.09.12.22.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 09 Dec 2014 12:22:10 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) client-ip=209.85.215.45; Received: by mail-la0-f45.google.com with SMTP id gq15so1222198lab.4 for ; Tue, 09 Dec 2014 12:22:10 -0800 (PST) X-Received: by 10.112.138.137 with SMTP id qq9mr293969lbb.80.1418156530756; Tue, 09 Dec 2014 12:22:10 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.184.201 with SMTP id ew9csp802587lbc; Tue, 9 Dec 2014 12:22:09 -0800 (PST) X-Received: by 10.66.140.102 with SMTP id rf6mr315277pab.1.1418156527886; Tue, 09 Dec 2014 12:22:07 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id sr2si3439433pab.139.2014.12.09.12.22.07 for ; Tue, 09 Dec 2014 12:22:07 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752807AbaLIUVw (ORCPT + 27 others); Tue, 9 Dec 2014 15:21:52 -0500 Received: from mail-yk0-f170.google.com ([209.85.160.170]:50112 "EHLO mail-yk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752761AbaLIUVs (ORCPT ); Tue, 9 Dec 2014 15:21:48 -0500 Received: by mail-yk0-f170.google.com with SMTP id q200so612740ykb.1 for ; Tue, 09 Dec 2014 12:21:47 -0800 (PST) X-Received: by 10.236.45.103 with SMTP id o67mr41537yhb.61.1418156507910; Tue, 09 Dec 2014 12:21:47 -0800 (PST) Received: from localhost.localdomain (host109-148-232-11.range109-148.btcentralplus.com. [109.148.232.11]) by mx.google.com with ESMTPSA id 40sm1110782yho.54.2014.12.09.12.21.43 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Dec 2014 12:21:47 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: lee.jones@linaro.org, kernel@stlinux.com, broonie@kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v4 2/2] spi: st: Provide Device Tree binding documentation Date: Tue, 9 Dec 2014 20:21:31 +0000 Message-Id: <1418156491-26613-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418156491-26613-1-git-send-email-lee.jones@linaro.org> References: <1418156491-26613-1-git-send-email-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: lee.jones@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.45 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch adds DT documentation for the SPI portion of ST's SSC device. Signed-off-by: Lee Jones --- Documentation/devicetree/bindings/spi/spi-st.txt | 40 ++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-st.txt diff --git a/Documentation/devicetree/bindings/spi/spi-st.txt b/Documentation/devicetree/bindings/spi/spi-st.txt new file mode 100644 index 0000000..fe54959 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-st.txt @@ -0,0 +1,40 @@ +STMicroelectronics SSC (SPI) Controller +--------------------------------------- + +Required properties: +- compatible : "st,comms-ssc4-spi" +- reg : Offset and length of the device's register set +- interrupts : The interrupt specifier +- clock-names : Must contain "ssc" +- clocks : Must contain an entry for each name in clock-names + See ../clk/* +- pinctrl-names : Uses "default", can use "sleep" if provided + See ../pinctrl/pinctrl-binding.txt + +Optional properties: +- cs-gpios : List of GPIO chip selects + See ../spi/spi-bus.txt + +Child nodes represent devices on the SPI bus + See ../spi/spi-bus.txt + +Example: + spi@9840000 { + compatible = "st,comms-ssc4-spi"; + reg = <0x9840000 0x110>; + interrupts = ; + clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>; + clock-names = "ssc"; + pinctrl-0 = <&pinctrl_spi0_default>; + pinctrl-names = "default"; + cs-gpios = <&pio17 5 0>; + #address-cells = <1>; + #size-cells = <0>; + + st95hf@0{ + compatible = "st,st95hf"; + reg = <0>; + spi-max-frequency = <1000000>; + interrupts = <2 IRQ_TYPE_EDGE_FALLING>; + }; + };