From patchwork Tue Apr 3 19:02:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Pisati X-Patchwork-Id: 10321687 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id DEB5A602C8 for ; Tue, 3 Apr 2018 19:03:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CA06028C0D for ; Tue, 3 Apr 2018 19:03:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE9CE28C63; Tue, 3 Apr 2018 19:03:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, FSL_HELO_FAKE, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4797828C0D for ; Tue, 3 Apr 2018 19:03:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752813AbeDCTDF (ORCPT ); Tue, 3 Apr 2018 15:03:05 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:35250 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752832AbeDCTCg (ORCPT ); Tue, 3 Apr 2018 15:02:36 -0400 Received: by mail-wm0-f66.google.com with SMTP id r82so37510044wme.0; Tue, 03 Apr 2018 12:02:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1LYpVA7jH3NPpUUSpJMgD5WeYi0UIPXSeuaXuaHTDog=; b=LenQdOreGyxnvxHFymuCVhmrurDNA0bw/HZPyk8vTAz88+569xHEwRNqDd8ojPbjQB K11TGwm8ixlqEupFDf7N+4NHJ2YmbJH7WQUmXlJdItxk500MU9JFwob3z1NlylV566u3 OuIfGA/919P07XIYnfljxrqSRLqmSYCgJpPmAFPIKh8XEbFFDYB418plotRTIb9rqqUS Bbmiz/KoGoR6z0diZQ3ErekmB/2w+h8cLgXNbJJSLBrV2r3g+Z9oqPWgrF6whSFIR7bm kZFRmX+J6g5nB7pWxA6NLINL1HR+UVYGo22sELZ9YvHh+Y+cUs2DOVjH56aBdgUN1qfQ +IQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=1LYpVA7jH3NPpUUSpJMgD5WeYi0UIPXSeuaXuaHTDog=; b=XN2ImwPDyAQh0BcZQdVy52SF7kVjRWr+w0iX8uUW1Plzo52jSlTtY4VZR2CujqE91g mRDS3RG04B0YQ2+GwGbdm/W9ugMd+O/zCpalZ5VZHGRfGY837We5C0/06/mp3DVmhXHt HMu+iL+HXpaN4ESH/8X9JavJLiehOM0Veo27pzaSR82WVGLRCkOy7RGKk7DcdcI9Y4yk 78gKKfILSFkV8Yo0K9Sis7IMlt5ku6XjD1K4Hc6Ja1urSb79mqj4rXMUuFpx98LScobo NP5k0hEYfcbOGf/mkAvX/U7+1wyYxWK4QU3rC1dwvDnNxjPOElvhQrP79f9HSF2cb3Kq +0Ug== X-Gm-Message-State: AElRT7FXnty/LGrgMcWee/5B2FGo9x/7S5taNSJns4Av8RvIREaZ1q3Y TAHmHpPo6tpSuKVJIorOjswwYCvUWV8= X-Google-Smtp-Source: AIpwx4+no/VZhdyfCOXfKlS8rgSRQzDFdmopCoGZfaWay2ta7/a8bDLb7D3Z8k3elY3NHkTvq5zS4g== X-Received: by 10.80.152.227 with SMTP id j90mr17864623edb.89.1522782155052; Tue, 03 Apr 2018 12:02:35 -0700 (PDT) Received: from gmail.com (net-93-144-128-215.cust.vodafonedsl.it. [93.144.128.215]) by smtp.gmail.com with ESMTPSA id y6sm2091856edh.3.2018.04.03.12.02.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 03 Apr 2018 12:02:34 -0700 (PDT) From: Paolo Pisati To: Alan Tull , Moritz Fischer , Rob Herring , Mark Rutland Cc: linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v10 1/2] dt: bindings: fpga: add lattice machxo2 slave spi binding description Date: Tue, 3 Apr 2018 21:02:31 +0200 Message-Id: <1522782152-27300-2-git-send-email-p.pisati@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1522782152-27300-1-git-send-email-p.pisati@gmail.com> References: <1522782152-27300-1-git-send-email-p.pisati@gmail.com> Sender: linux-fpga-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fpga@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add dt binding documentation details for Lattice MachXO2 FPGA configuration over Slave SPI interface. Signed-off-by: Paolo Pisati Acked-by: Rob Herring Acked-by: Moritz Fischer Acked-by: Alan Tull --- .../bindings/fpga/lattice-machxo2-spi.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/fpga/lattice-machxo2-spi.txt diff --git a/Documentation/devicetree/bindings/fpga/lattice-machxo2-spi.txt b/Documentation/devicetree/bindings/fpga/lattice-machxo2-spi.txt new file mode 100644 index 0000000..a8c362e --- /dev/null +++ b/Documentation/devicetree/bindings/fpga/lattice-machxo2-spi.txt @@ -0,0 +1,29 @@ +Lattice MachXO2 Slave SPI FPGA Manager + +Lattice MachXO2 FPGAs support a method of loading the bitstream over +'slave SPI' interface. + +See 'MachXO2ProgrammingandConfigurationUsageGuide.pdf' on www.latticesemi.com + +Required properties: +- compatible: should contain "lattice,machxo2-slave-spi" +- reg: spi chip select of the FPGA + +Example for full FPGA configuration: + + fpga-region0 { + compatible = "fpga-region"; + fpga-mgr = <&fpga_mgr_spi>; + #address-cells = <0x1>; + #size-cells = <0x1>; + }; + + spi1: spi@2000 { + ... + + fpga_mgr_spi: fpga-mgr@0 { + compatible = "lattice,machxo2-slave-spi"; + spi-max-frequency = <8000000>; + reg = <0>; + }; + };