From patchwork Wed Jul 6 14:53:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102038 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp905630qgy; Wed, 6 Jul 2016 07:51:20 -0700 (PDT) X-Received: by 10.98.103.66 with SMTP id b63mr42767757pfc.141.1467816680692; Wed, 06 Jul 2016 07:51:20 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g18si3059797pfb.298.2016.07.06.07.51.20; Wed, 06 Jul 2016 07:51:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755125AbcGFOvS (ORCPT + 7 others); Wed, 6 Jul 2016 10:51:18 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:55626 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755122AbcGFOvR (ORCPT ); Wed, 6 Jul 2016 10:51:17 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue004) with ESMTPA (Nemesis) id 0LfFcq-1bekij2G2C-00oos7; Wed, 06 Jul 2016 16:50:45 +0200 From: Arnd Bergmann To: Mark Brown , Rob Herring , Mark Rutland Cc: Alexander Shiyan , linux-spi@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 2/2] dt-bindings: spi: add binding for clps711x SPI Date: Wed, 6 Jul 2016 16:53:13 +0200 Message-Id: <20160706145326.2658600-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160706145326.2658600-1-arnd@arndb.de> References: <20160706145326.2658600-1-arnd@arndb.de> X-Provags-ID: V03:K0:9A575Pi9q9GZZR9Uy7JKzc4RpbHjVztvOrGIWxmhM8K8wdGc6Wm UiYSkzNmr2CUaiOeFALXEwCzF8qip87NY/0hDFFGFGuvzXUTwgqs3vdbSbzh8PmJi3FG/K0 V9QIIsFXAHspArAX/nqH23jmMBYhwJpz+4zyXfte+73plxEWV4IL+ZYVHyIXJDE57A29D3Y UngYRVnFTA7QzHlG0Pavg== X-UI-Out-Filterresults: notjunk:1; V01:K0:YgdQ5tPZhIo=:mzaCgYVubu6Rs7NypfNgFG LSaYGv0aRJXvU8al2XMBpU91v2EwQY0SR+iG47N43JJXCcXAVnyodf6oXirC8rPI/IhpFqEHa U7yumd4nlO996eidnbHJYG0V66BtAKh/9Z5PjBs3Fo7ovEm69AeuplrMGdUjNw2oMwzIV3Gjk PhoJH9wOGJpo+GDUFCmicxoDrnwLNc5Vou8H44N/D5YqyX8I2cWOmkpmUMHJBsoNpGfVN5siz onkbyCXWlDdDbKUqJRmTmO+NZlg1ytZf3LLwlb9qiGLL5fe1UndtActxGw2qSF0KTQHk+TNeV bHnbUz7RLtqid4NjlRfWmXtXKBEcdRFPlfrT4rS+qBnK/4/IbSlZ2Pl5J5FEfKKorjLfp7Y9B bnJUgM63QB4Ibou2jsUDrxvAzRWcNyecqvt6MFKiPUy7hEdKfll6oGbWV2t6MooxPXZZNDT8i 0o8nzIAVdBrntAxsdwv5s5csBXe02xpk5CcDbFUtT3Buxjcto04nfSpfL6WAN3DiK+k2PE7pI jHkMspVas3O/jJoiLTnTUWfx5sCgNcfT7MWc0iWWnhXO4m7dwESo3CNmAGIGsk4j4aQv3/FIW CAuP8lQr9GFV6vIzLQNhzVPtKZBFnsFQNy151tHpzBGUi0Dgp36ZJYFjLW7xq1K01VC/xIQ/3 i1giJwqGAM+bxTZR/MuMRJD0OpF3WTLxWCsdUxXOVhT0f53TDc6ExBiE28NnNOjkVOZM= Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This documents the binding used by Alexander Shiyan's DT support for the clps711x SPI controller. I've left the file name to match the ARM platform port name "clps711x" for consistency with the other bindings, even though the compatible string refers to the later ep7309 chip. Linux no longer supports the old clps711x and ep72xx product lines, but we still use the name. The entire family is now discontinued by the manufacturer. Signed-off-by: Arnd Bergmann Cc: Alexander Shiyan --- .../devicetree/bindings/spi/spi-clps711x.txt | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 Documentation/devicetree/bindings/spi/spi-clps711x.txt -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/Documentation/devicetree/bindings/spi/spi-clps711x.txt b/Documentation/devicetree/bindings/spi/spi-clps711x.txt new file mode 100644 index 000000000000..4c3ec13f423f --- /dev/null +++ b/Documentation/devicetree/bindings/spi/spi-clps711x.txt @@ -0,0 +1,33 @@ +Serial Peripheral Interface on Cirrus Logic CL-PS71xx, EP72xx, EP73xx + +Required properties +- #address-cells: must be <1> +- #size-cells: must be <0> +- compatible: should include "cirrus,ep7209-spi" +- reg: Address and length of one register range +- interrupts: one interrupt line +- clocks: One entry, refers to the SPI bus clock +- cs-gpios: Specifies the gpio pins to be used for chipselects. + See: Documentation/devicetree/bindings/spi/spi-bus.txt + +An additional register is present in the system controller, +which is assumed to be in the same device tree, with and marked +as compatible with "cirrus,ep7209-syscon3". + +Example: + +spi@80000500 { + #address-cells = <1>; + #size-cells = <0>; + compatible = "cirrus,ep7209-spi"; + reg = <0x80000500 0x4>; + interrupts = <15>; + clocks = <&clks CLPS711X_CLK_SPI>; + status = "disabled"; +}; + +syscon3: syscon@80002200 { + compatible = "cirrus,ep7209-syscon3", "syscon"; + reg = <0x80002200 0x40>; +}; +