From patchwork Mon Dec 8 12:53:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 42007 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D30F4244AC for ; Mon, 8 Dec 2014 12:54:46 +0000 (UTC) Received: by mail-wi0-f197.google.com with SMTP id l15sf1724274wiw.8 for ; Mon, 08 Dec 2014 04:54:46 -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=GxItBE1CbxB3qCRmw8h+KFXUcqnUQfBJ7tAQbwH59v+PhjKcmTWSIAbFstzdBsqF3n qi+Is+fApU9yurxXftWFd6gLiyIkVnZtnLvx+BPWbiOe4F+VM2/J/Tvey+Xy2PU8BZwH Kz8Ifl9+pYWv2ihehbhFcEUCIV/GTLxkI49jnAaoOdBIE4XWqqzKDegoMZ6PhrKIn5g1 Vv+DyMlUMOEtcutY13O71q4WZWM5CMD94FzHw9Dl/j+seF/ZTFRsfd+bTVXXDSBzuYcX 5WPn0gJVRqN9OGy3YlKh1JQGaY/n2Tamu5qnqYyaQAY6YGB+HAco9JULic5q/lsFVRHd 7qDg== X-Gm-Message-State: ALoCoQnV0dbwpGM5VKJNMmWJ5la3kiHs3rd/UNDM1+O8V9s9ShCC4tnJb7VRXkMaBLc7QazF1qd3 X-Received: by 10.112.43.65 with SMTP id u1mr230980lbl.16.1418043286118; Mon, 08 Dec 2014 04:54:46 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.21.40 with SMTP id s8ls642932lae.100.gmail; Mon, 08 Dec 2014 04:54:45 -0800 (PST) X-Received: by 10.152.3.100 with SMTP id b4mr15756986lab.68.1418043285939; Mon, 08 Dec 2014 04:54:45 -0800 (PST) Received: from mail-lb0-f173.google.com (mail-lb0-f173.google.com. [209.85.217.173]) by mx.google.com with ESMTPS id f6si36909629lbc.11.2014.12.08.04.54.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Dec 2014 04:54:45 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.173 as permitted sender) client-ip=209.85.217.173; Received: by mail-lb0-f173.google.com with SMTP id z12so3663250lbi.32 for ; Mon, 08 Dec 2014 04:54:45 -0800 (PST) X-Received: by 10.152.3.67 with SMTP id a3mr16172445laa.56.1418043285818; Mon, 08 Dec 2014 04:54:45 -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 ew9csp597237lbc; Mon, 8 Dec 2014 04:54:44 -0800 (PST) X-Received: by 10.70.137.68 with SMTP id qg4mr20881061pdb.150.1418043283917; Mon, 08 Dec 2014 04:54:43 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id us1si36496002pac.23.2014.12.08.04.54.43 for ; Mon, 08 Dec 2014 04:54:43 -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 S1755450AbaLHMyl (ORCPT + 27 others); Mon, 8 Dec 2014 07:54:41 -0500 Received: from mail-yk0-f181.google.com ([209.85.160.181]:36152 "EHLO mail-yk0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755385AbaLHMxr (ORCPT ); Mon, 8 Dec 2014 07:53:47 -0500 Received: by mail-yk0-f181.google.com with SMTP id 142so2179103ykq.26 for ; Mon, 08 Dec 2014 04:53:47 -0800 (PST) X-Received: by 10.236.36.79 with SMTP id v55mr30575108yha.162.1418043227021; Mon, 08 Dec 2014 04:53: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 i70sm23143848yhq.7.2014.12.08.04.53.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 08 Dec 2014 04:53:46 -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 v3 2/4] spi: st: Provide Device Tree binding documentation Date: Mon, 8 Dec 2014 12:53:32 +0000 Message-Id: <1418043214-14324-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1418043214-14324-1-git-send-email-lee.jones@linaro.org> References: <1418043214-14324-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.217.173 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>; + }; + };