From patchwork Fri Mar 16 15:54:28 2018
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Paolo Pisati
X-Patchwork-Id: 10288801
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
E3BBB60386 for ;
Fri, 16 Mar 2018 15:55:09 +0000 (UTC)
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D506028F9B
for ;
Fri, 16 Mar 2018 15:55:09 +0000 (UTC)
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
id C9A8128FA2; Fri, 16 Mar 2018 15:55:09 +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=-3.3 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 4E98028F9B
for ;
Fri, 16 Mar 2018 15:55:09 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S965401AbeCPPyg (ORCPT
);
Fri, 16 Mar 2018 11:54:36 -0400
Received: from mail-wm0-f68.google.com ([74.125.82.68]:35770 "EHLO
mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1754224AbeCPPyd (ORCPT
); Fri, 16 Mar 2018 11:54:33 -0400
Received: by mail-wm0-f68.google.com with SMTP id 5so3943148wmh.0;
Fri, 16 Mar 2018 08:54:32 -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=w/Q/mu2NjL66PGn/ndKJi3g43FZ5J3e5XKRzsZ/n6uQ=;
b=aasgCQExYjqd3lP0hSRIjcaKZscGlEHJuurYWJ79OrAqDW5ZqAlyj15KZOdvmkAAO/
Flm2TnXmtnSSSULn/KZBP8lPR8hMK61ssYb3rpNkQo+GtqFoOCl2BjCNNN5t4sVFE4zR
74jmp8DycAAUqIJoj2wK4pif3AplhWKppWzrmAD6ewpBdcudahi9yAI0vLYFBVmosCyw
ks7oWDqRfQ3jU4LQglflcvm8nVLeQC5OMaevq2z9avPixw8BAk6OILLhRBWOJpkVNGUw
a3iloI2Kg3EnxtwEEvcMH/JpSTyf478FZdb3KwfHAT51mcQ0KjoRdIyJyk4GPVqVVwgT
JOBg==
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=w/Q/mu2NjL66PGn/ndKJi3g43FZ5J3e5XKRzsZ/n6uQ=;
b=hqXeSe786YlTTeUenLrEgUM8u081aTLD5nKgrUghRFpJsYdvKuwYIYI8dysWmEe+rz
qylFOXilWt7q0qMQ3vc0HBPztQTj300MVeQvhJFoyT/ql3jIQjQ/HZUWBqtmtpc+WA+I
kBOAyfk+YcdluESkoX3Wh6Ju5nZuRGCPQkNjmzCPgC6heAbdnxEUvrdBEZesDLkWe9+w
F3zWPmY8/ewgfjA92uj41pFAIs26cTBja8k4WYC4D37P517dN7tkHOQPhHIlbVaAnNsK
4An3n6cKU5XOSLjWGzvtBLla+i2FF00Qhi/Vc8MCbYecF4T+9rqw8mjZdLk2YT/YOjFH
al0w==
X-Gm-Message-State: AElRT7HXUb5D6XSUHbBBc408TnwOGeKleM0wYP1J57nay0N7nuX0F/f9
qpqr5soNnAy8ZCBlWP98x2NIyILV60E=
X-Google-Smtp-Source:
AG47ELtQn1HYVDkA3eU5mHrXsTBJ/msUiU9eYNWYZ55aGU5Ux5DcaqBK6XrDqtp/bWyeb3Q8m8iSSg==
X-Received: by 10.80.213.70 with SMTP id f6mr3119659edj.38.1521215671661;
Fri, 16 Mar 2018 08:54:31 -0700 (PDT)
Received: from gmail.com (net-93-144-128-215.cust.dsl.teletu.it.
[93.144.128.215]) by smtp.gmail.com with ESMTPSA id
t34sm897515edd.85.2018.03.16.08.54.30
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Fri, 16 Mar 2018 08:54:30 -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 1/2] dt: bindings: fpga: add lattice machxo2 slave spi
binding description
Date: Fri, 16 Mar 2018 16:54:28 +0100
Message-Id: <1521215669-23874-2-git-send-email-p.pisati@gmail.com>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1521215669-23874-1-git-send-email-p.pisati@gmail.com>
References: <1521215669-23874-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>;
+ };
+ };