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: 418692 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id C331A1400D5 for ; Mon, 8 Dec 2014 23:55:17 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753312AbaLHMyk (ORCPT ); Mon, 8 Dec 2014 07:54:40 -0500 Received: from mail-yh0-f45.google.com ([209.85.213.45]:42221 "EHLO mail-yh0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755386AbaLHMxr (ORCPT ); Mon, 8 Dec 2014 07:53:47 -0500 Received: by mail-yh0-f45.google.com with SMTP id f10so2249547yha.18 for ; Mon, 08 Dec 2014 04:53:47 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ekqK3SQ/DJMwrpVk4ciZe2Y9d4Ll7ByDJ63lthacKaM=; b=F1JnF6lI8UhP9IEUC3/IhgVo0wMjxLMzDVunigmScrTXcBElC+J8AfidRHeS0EtxgS kDYkQdfwVkovHCaJFdwZz4gn4lXa4PQAcgFkghSpWMazONp8V6INLa+ZUUgKfdiruV3N pKC3bGQx+2uUcHm3P6ycoyOHhQuNRq6t5KgpN5KxsRq3JtFdTwVektxuymQ1brs9ae14 b9oFZzsUoD2jtX38nZPYpS3BWRTIBGsoqzp/OfqV1yRNa/5qZ65FcM5HPIP6vNjTe8b5 ArwrW7vh5dh7YLtiNPzyrRzgEcDWy3qeU7/8nD9NmbADd0sN/nzWkRvGFqyLialI/zh8 DlDw== X-Gm-Message-State: ALoCoQnM4IGoqlbzgdwhXCqCuJA3PUxG5WtPSHfo4WeUxS+gJfzDVCTmDj7hBMPuBX1syr7MRDUR 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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>; + }; + };