From patchwork Thu Nov 27 11:43:54 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 41613 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f197.google.com (mail-lb0-f197.google.com [209.85.217.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 27E87244C2 for ; Thu, 27 Nov 2014 11:45:29 +0000 (UTC) Received: by mail-lb0-f197.google.com with SMTP id n15sf2924017lbi.8 for ; Thu, 27 Nov 2014 03:45:28 -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=ph5PCU1A857wd6gVJer5BScdJJIv1MNzr17406uNg5A=; b=VlVccvXHqs66urxtD7OEgoATdz/JEeAbTRyhNSjH3Q9LNWfEo7WGHYWm+Q/t2zwuRs Li2WT/PDUEEHun6NFvSpSZWL+BCI+hbAgkJ6Yc8sRVeFKciYoSfarAgPV/1SX3zWSYEe zgwgojF2EZZBTz3lR/biVryJOWH7u/eIk9glNKjZ2ccQxkS8waAYqAbODNeL60cXlgAJ eWQW53mcBC3KBnh1OWwwApazLPXlLg1Dyimhsumv0dbE4+NGrFIv5VklwNsrhpWheL3f 1hwk+lUagouvgHPbBm0rPPbuAKvGhaK7ojSQUhAtwjjMkKfoLBCOV/Qm/cpaMqK86Eu4 nRRw== X-Gm-Message-State: ALoCoQl1AXXkMyC+xmvZUsNaHkUiJUUHbsqkyWY5vS/FEJ/3H01gPbtdy7WOLW9E0BlyiJMBCG3N X-Received: by 10.152.43.50 with SMTP id t18mr337580lal.8.1417088728074; Thu, 27 Nov 2014 03:45:28 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.67 with SMTP id o3ls770118laj.86.gmail; Thu, 27 Nov 2014 03:45:27 -0800 (PST) X-Received: by 10.152.9.7 with SMTP id v7mr38800945laa.40.1417088727903; Thu, 27 Nov 2014 03:45:27 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id bb5si1216860lab.36.2014.11.27.03.45.27 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 27 Nov 2014 03:45:27 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id gd6so4134928lab.33 for ; Thu, 27 Nov 2014 03:45:27 -0800 (PST) X-Received: by 10.112.138.137 with SMTP id qq9mr38515985lbb.80.1417088727781; Thu, 27 Nov 2014 03:45:27 -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 ew9csp784860lbc; Thu, 27 Nov 2014 03:45:26 -0800 (PST) X-Received: by 10.70.21.168 with SMTP id w8mr62512384pde.95.1417088725914; Thu, 27 Nov 2014 03:45:25 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cm7si11181706pdb.130.2014.11.27.03.45.25 for ; Thu, 27 Nov 2014 03:45:25 -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 S1755049AbaK0LpW (ORCPT + 26 others); Thu, 27 Nov 2014 06:45:22 -0500 Received: from mail-ig0-f171.google.com ([209.85.213.171]:59292 "EHLO mail-ig0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754522AbaK0LoQ (ORCPT ); Thu, 27 Nov 2014 06:44:16 -0500 Received: by mail-ig0-f171.google.com with SMTP id z20so4350565igj.16 for ; Thu, 27 Nov 2014 03:44:16 -0800 (PST) X-Received: by 10.42.206.4 with SMTP id fs4mr27450831icb.90.1417088656221; Thu, 27 Nov 2014 03:44:16 -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 lr5sm4215977igb.16.2014.11.27.03.44.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 27 Nov 2014 03:44:15 -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 2/4] spi: st: Provide Device Tree binding documentation Date: Thu, 27 Nov 2014 11:43:54 +0000 Message-Id: <1417088636-11994-3-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1417088636-11994-1-git-send-email-lee.jones@linaro.org> References: <1417088636-11994-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.46 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..efef468e --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-st.txt @@ -0,0 +1,40 @@ +STMicroelectronics SSC (SPI) Controller +--------------------------------------- + +Required properties: +- compatible : "st,comms-ssc-spi" or "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-ssc-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>; + }; + };