From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755181AbcGFOvT (ORCPT ); Wed, 6 Jul 2016 10:51:19 -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 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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@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 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>; +}; + -- 2.9.0