From patchwork Tue Mar 1 14:43:17 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 8465661 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3F0539F38C for ; Tue, 1 Mar 2016 14:46:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5C5972015A for ; Tue, 1 Mar 2016 14:46:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 80CB3200C6 for ; Tue, 1 Mar 2016 14:46:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753523AbcCAOqo (ORCPT ); Tue, 1 Mar 2016 09:46:44 -0500 Received: from mout.gmx.net ([212.227.15.15]:59866 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753469AbcCAOqo (ORCPT ); Tue, 1 Mar 2016 09:46:44 -0500 Received: from localhost.localdomain ([80.187.99.114]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MaZWz-1aL9SP2BXl-00KAig; Tue, 01 Mar 2016 15:46:29 +0100 From: Oleksij Rempel To: fixed-term.Oleksij.Rempel@de.bosch.com, geert@linux-m68k.org, dirk.behme@de.bosch.com, broonie@kernel.org, linux-spi@vger.kernel.org, devicetree@vger.kernel.org, robh+dt@kernel.org Cc: Oleksij Rempel Subject: [PATCH 3/6] DT: add documentation for spi-fc-test driver Date: Tue, 1 Mar 2016 15:43:17 +0100 Message-Id: <1456843400-20696-3-git-send-email-linux@rempel-privat.de> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1456843400-20696-1-git-send-email-linux@rempel-privat.de> References: <56D448E1.6090006@de.bosch.com> <1456843400-20696-1-git-send-email-linux@rempel-privat.de> X-Provags-ID: V03:K0:C41zFWWlQBoaZR+LOY67OupDhRONxkwrhYhEuERIfZNk7lw7lp7 Hzl7ulr/KD0rI0HbrSbDOAPYgymUMm+0C+r86ovREuBA+HTONLFu9lEC3iQsctFV1+mcAZV KltChzD6brs9l8oX1pD6Pyl3usLra+2q7nU+xAyTdaHULsWrj6oEwYqG3YZ1ZdoMKcGyAWz pq/TJgc/AmdQZ3CzLZP8g== X-UI-Out-Filterresults: notjunk:1; V01:K0:bS7ahF/aElI=:7GGGNxpUkfcV+20HuMrcFe 6qLszGTsYXtluHmWcuFFKj63+FGwFZ//XfSGmG9xXzTtgrFhApq3a1y57VhWxmwc/3wNNFoYg GSCYuw4krryrU0MdCEBMUdyGuzrLrk2MH3P9dFlEB19KwJOY9OT5zBE1S5J6um4YMJnZJTH/R z0ojSTHJL60nqh4ucDEJXF4AfZJBx5EZie1oKSuySgWm11CjgAk6ZgMLyHCbCEe5tJbSCjZ0R SdzQvx4nG96UVinaceZ/LayimlKyD677m8tcs8rDqVEiUp4ROf9vtbwAX8mUUiXqIA909Dsbi Je8rhtNTYIWww0E4DxUjN7UxskZq2SCTruuyyJLuefJnbHnS4hJU3hqFFreBKba5fHeacxbvS UuKsfThU2MCcs7yBP/IBIzzdINvunhYKj8hMN+L5ssUUWwTJU0WzqGGlQElF7R6G8rx5aQnWP wFH5zVqL6jSPgzTP+26ltynOw1qSp4OUPX1T5a6nh6enApWNvcprPZUIFfba6S95ylaGGiohe E3gpaOyPYGzYjxEf1yyKTxi+RC/geDWtYfPa0tSzCh2tDYARnIvqNAimivKpRMsKqLUkgU3R3 E/fBMVEjyvY1qsRWMxJH2XBFicyDFeSrWkzmJXtrnBGhMHVTuD7He8t36Rbx6fyUUrwfa/AHT 7pYb4+bObmoIHVCjpgp3YaRFlXQsFZdNy84E8hQThAgg0ELmyGnEqgrrUJkPFVi4JG/mPR/89 rPJM0O16xcLDpMnRaf7CpsJ4T5RudcB+9NlEJ3qhP5YrMRYoOFL9JQAxK+0yUpSyKoF+aJbqK 7+yIxF7 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, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Signed-off-by: Oleksij Rempel --- .../devicetree/bindings/spi/spi-fc-test.txt | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-fc-test.txt diff --git a/Documentation/devicetree/bindings/spi/spi-fc-test.txt b/Documentation/devicetree/bindings/spi/spi-fc-test.txt new file mode 100644 index 0000000..c1f14e8 --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-fc-test.txt @@ -0,0 +1,30 @@ +SPI-FC-TEST is a test driver to simulate slave +flow control from spi master. + +Required properties: + - compatible: should be set to "spi-fc-test" + - fc-gpio: spi device gpio input for flow control line. + - test-cs-in-gpio: chip select gpio input to emulate slave device + - test-fc-out-gpio: request gpio output to emulate slave device +Fallowing required properties are provided by spi framework. +See spi-bus.txt for more information. + - spi-fc-ready + - spi-fc-stop-ack + - spi-fc-request + +Example: +test-spi@0 { + status = "okay"; + reg = <0>; + compatible = "spi-fc-test"; + spi-max-frequency = <100000>; + spi-fc-ready; + spi-fc-request; + spi-fc-stop-ack; + pinctrl-names = "default"; + pinctrl-0 = <&spi_test_in_pins_bananapi>, <&spi_test_out_pins_bananapi>; + fc-gpio = <&pio 7 20 GPIO_ACTIVE_LOW>; /* request line, in IO-4, (PH20) */ + test-cs-in-gpio = <&pio 7 1 GPIO_ACTIVE_LOW>; /* RXD0, (PH1) */ + test-rq-out-gpio = <&pio 7 21 GPIO_ACTIVE_LOW>; /* IO-5, (PH21) */ +}; +