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: 5420881 Return-Path: X-Original-To: patchwork-linux-spi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8E7D89F1C5 for ; Tue, 2 Dec 2014 15:42:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C75F120266 for ; Tue, 2 Dec 2014 15:42:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E9F8B2024F for ; Tue, 2 Dec 2014 15:42:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932236AbaLBPmV (ORCPT ); Tue, 2 Dec 2014 10:42:21 -0500 Received: from mail-yk0-f181.google.com ([209.85.160.181]:46243 "EHLO mail-yk0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932365AbaLBPlB (ORCPT ); Tue, 2 Dec 2014 10:41:01 -0500 Received: by mail-yk0-f181.google.com with SMTP id 142so5912294ykq.12 for ; Tue, 02 Dec 2014 07:41:01 -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=KTdeqID6fOcOAj4a6RyFeBDrjjy5+rQH4M5wq/sjMugl+sGJjU2c0bkB7bBnjsdqj/ 8YBxWPMaKk3cJuIXzjvcRvMccOpbV7rr+po21dnvKs8T9P3mE3W6pZSueb6nu6VidGEx M73Wes5IFGqEQiTZq8omIRLaAh38vP82QOTnoeO3xxbIH2L4nD3jU4AISgaAgrcksYV5 38fBwRE4qSvjT6NfQs8m6nLLprvojHqo3helZ+Qcb5JKWNpDPODniMFZGPEW+yPX54Ii 5EHw3C82aiYDMdX2nFqDPvQuBxjKgY5J5xzIjd6vtGh0TIIc+JHvvfxmV9UZybWrnIsI +XSA== X-Gm-Message-State: ALoCoQnUlMljAVTgKmq7EqPj3DM2aOLUVZX9vuoCOD2cIU8e7Weof6waho0+wMFHICdodxu+yVY3 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: linux-spi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-spi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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>; + }; + };