From patchwork Tue Dec 2 15:40:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 41813 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9207F20672 for ; Tue, 2 Dec 2014 15:42:30 +0000 (UTC) Received: by mail-wg0-f70.google.com with SMTP id b13sf8328368wgh.5 for ; Tue, 02 Dec 2014 07:42:29 -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=1u5Ni6wGBE83WP3BbyUabyDBUFGajSCW1ifSxbCFMeA=; b=C2v6zR7/W2BhXC4mw273WxYG+OVEAs38h9Eq6zK+pRbsniJeeh2Xuy5AAmV9s78UGv 6mzEZhog46Nhq0ZIkvriU4vbABiuOqtNYe+FKS2HvMQqc4lNt6boWkIqNtN9tUSrj2in wcR12XUfETwHJbJZCPqrxYaelkSpcL0lRiTfgO5iy01iYCubRnSqyeEyA1zL8L1FStkT r+IWBWPAjfNfUdBbeSGaOoCl7R3e3kY/6Vn31x7o8HDM5pjdHM9ZGLnL/pD2qsqtmt9O E5XSwYoREOiA9auvVjn8YY+2iNraFz1OETQc9YzlgC6bBsI4WB7EuWhyAU8lW+NGp/bl Bqpg== X-Gm-Message-State: ALoCoQkfn0hznAz9Q1Jf/p10YcaD6OrAIvH/VV0X1V0e7podUEeZuXWT7sGCAvPB18L3Dkl9OQEA X-Received: by 10.180.24.35 with SMTP id r3mr1030638wif.0.1417534949772; Tue, 02 Dec 2014 07:42:29 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.88.99 with SMTP id bf3ls56004lab.13.gmail; Tue, 02 Dec 2014 07:42:29 -0800 (PST) X-Received: by 10.112.254.162 with SMTP id aj2mr63479112lbd.70.1417534949551; Tue, 02 Dec 2014 07:42:29 -0800 (PST) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id m2si12371061lbs.81.2014.12.02.07.42.29 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Dec 2014 07:42:29 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by mail-la0-f53.google.com with SMTP id gm9so11110309lab.12 for ; Tue, 02 Dec 2014 07:42:29 -0800 (PST) X-Received: by 10.112.138.137 with SMTP id qq9mr62196845lbb.80.1417534949462; Tue, 02 Dec 2014 07:42:29 -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 ew9csp505193lbc; Tue, 2 Dec 2014 07:42:27 -0800 (PST) X-Received: by 10.67.14.231 with SMTP id fj7mr63223383pad.80.1417534944600; Tue, 02 Dec 2014 07:42:24 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b17si21069418pdl.92.2014.12.02.07.42.23 for ; Tue, 02 Dec 2014 07:42:24 -0800 (PST) Received-SPF: none (google.com: devicetree-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 S932365AbaLBPmV (ORCPT + 4 others); Tue, 2 Dec 2014 10:42:21 -0500 Received: from mail-yk0-f170.google.com ([209.85.160.170]:58492 "EHLO mail-yk0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932386AbaLBPlB (ORCPT ); Tue, 2 Dec 2014 10:41:01 -0500 Received: by mail-yk0-f170.google.com with SMTP id q200so5972981ykb.29 for ; Tue, 02 Dec 2014 07:41:01 -0800 (PST) X-Received: by 10.236.230.9 with SMTP id i9mr67844208yhq.68.1417534861015; Tue, 02 Dec 2014 07:41:01 -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 e35sm12828433yhq.45.2014.12.02.07.40.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 02 Dec 2014 07:41:00 -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 v2 2/4] spi: st: Provide Device Tree binding documentation Date: Tue, 2 Dec 2014 15:40:42 +0000 Message-Id: <1417534844-25080-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417534844-25080-1-git-send-email-lee.jones@linaro.org> References: <1417534844-25080-1-git-send-email-lee.jones@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@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.53 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>; + }; + };