From patchwork Mon Jun 26 19:34:52 2017
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Paolo Pisati
X-Patchwork-Id: 9810367
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
3BD6E603D7 for ;
Mon, 26 Jun 2017 19:35:12 +0000 (UTC)
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 350B127F82
for ;
Mon, 26 Jun 2017 19:35:12 +0000 (UTC)
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
id 29B6C27F91; Mon, 26 Jun 2017 19:35:12 +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=-6.3 required=2.0 tests=BAYES_00,
DKIM_ADSP_CUSTOM_MED,
DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM,
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 4D9BC27F82
for ;
Mon, 26 Jun 2017 19:35:10 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1751819AbdFZTfH (ORCPT
);
Mon, 26 Jun 2017 15:35:07 -0400
Received: from mail-wr0-f196.google.com ([209.85.128.196]:34650 "EHLO
mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1751804AbdFZTe5 (ORCPT
); Mon, 26 Jun 2017 15:34:57 -0400
Received: by mail-wr0-f196.google.com with SMTP id k67so30060354wrc.1;
Mon, 26 Jun 2017 12:34:57 -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=Wd2Qm9lnLUuCvfrx9PUkcKsRKdhnT3Wcnzee0YXOUtI=;
b=UxteQaTWDf3OkDWZFMpPoZ3A3H1tVdBdYp3AS+g0pNfeCHsRczneP6+qAd3VtiMb0V
3JjDKLqCuIBgRECWeUQpx7A2iqvLRNO20fFq5xYoB/7LXO45zA8q2BZ54FtX0xFaw52w
d7vmhhXZztKj++yk71x5pSTo2tCv+J0vuOeaZOK76r2sqC3eecuHgrF7aVsd9aHkmBmO
ujaQ+XAHgr7kpA5tFC/azitXuBZo8ynKp3QnfzIIfAwzB7glRTa6CVrnY77Gc7OpYsXK
MuUCYkpbw+Q8XRj7aV7Dr8TXAbaH9EUsmNXxvWD/YK+tcZha6GWigrgY3XnTcbyOk4tp
ISeQ==
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=Wd2Qm9lnLUuCvfrx9PUkcKsRKdhnT3Wcnzee0YXOUtI=;
b=mDQRkbi3K5GrB6YPzGh+2CxZ0oq2MOiU49OPZfCYPg0MKI/naQxHPjsrw6h/vbMokb
/9WqxS5BIHCOCQVjzaKc8fHpZju0/9kbafLizyyIJg4+ylOANy9w5HiXTKq65fsHrTUC
vK9wRJ16Q1HEHv7IjBrlKEmdBKOW+fwA0dZ4E4745fQoRmii1wpTXjPgH1db85wN0X1V
6tbgg1mB6TCynLep9Fsld7JPkTmmVsqXZgSbh9Zq6FhJoeNqKvbykFOansr60bALe93e
bPhpuXj4BNjpK3q110y9HZHDMJ8TwuWEKuhWCi9xEOm5dZvHZWKpD7UmDOYcoxnkDiTa
Yrbg==
X-Gm-Message-State: AKS2vOw7roQp4qJeCGGTkZhrnV9kS10BfR9PwEz2Yv4UDmI2oxY2RXsq
p/zUOYG8zrjA3w==
X-Received: by 10.223.176.133 with SMTP id i5mr15467299wra.53.1498505696085;
Mon, 26 Jun 2017 12:34:56 -0700 (PDT)
Received: from gmail.com (net-47-53-205-78.cust.vodafonedsl.it.
[47.53.205.78]) by smtp.gmail.com with ESMTPSA id
f73sm603123wmi.3.2017.06.26.12.34.55
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Mon, 26 Jun 2017 12:34:55 -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 v4 1/2] dt: bindings: fpga: add lattice machxo2 slave spi
binding description
Date: Mon, 26 Jun 2017 21:34:52 +0200
Message-Id: <1498505693-28314-2-git-send-email-p.pisati@gmail.com>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1498505693-28314-1-git-send-email-p.pisati@gmail.com>
References: <1498505693-28314-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
---
.../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..c3ef26bd
--- /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 = <60000000>;
+ reg = <0>;
+ };
+ };