From patchwork Thu Jun 15 11:15:58 2017
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Paolo Pisati
X-Patchwork-Id: 9788663
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
524F760384 for ;
Thu, 15 Jun 2017 11:16:38 +0000 (UTC)
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B6C12018E
for ;
Thu, 15 Jun 2017 11:16:38 +0000 (UTC)
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
id 40521284BE; Thu, 15 Jun 2017 11:16:38 +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.8 required=2.0 tests=BAYES_00,
DKIM_ADSP_CUSTOM_MED,
DKIM_SIGNED, FREEMAIL_FROM, 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 E35A42018E
for ;
Thu, 15 Jun 2017 11:16:37 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1752417AbdFOLQZ (ORCPT
);
Thu, 15 Jun 2017 07:16:25 -0400
Received: from mail-wr0-f194.google.com ([209.85.128.194]:34849 "EHLO
mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1751742AbdFOLQD (ORCPT
); Thu, 15 Jun 2017 07:16:03 -0400
Received: by mail-wr0-f194.google.com with SMTP id z45so2898606wrb.2;
Thu, 15 Jun 2017 04:16:02 -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=iu9Mr3RvkYd/tV91ZoSZTZM+wi6OlOKgibuytCY1yEM3SikLkycJmQneL0iVcpFyD5
J3aNmZQ4+bq+Wx0vjgc8DGBf58nngtCs/nBu2Y9MOzJmWVmC4W2hwu4hYPW+pcTv+Q0L
y3E2/EwJzwI77yjab7PXtzCJNeNjekWB4Ua/8Z1YafV7DZDX1z+PsAZUseZwxLjhlNZH
ZZEGL98S0EO80sSWwoBZCZYyiWx0Dscb0Dj/dMlSDGJYuDv8rloK9AtVpP69OPzZkk59
WBr4I26ZrwP/adokmuk4nTedUiFG+cS5+H/T1dZWR/papXgCy0N+lVwnqqkeaDNvDWeB
8cCw==
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=uL24lH+9QFmKXCO5f8LYAsXJ4GIFVdZcPkvoD2EJOuew2igWdshPaF3gKzBMfhvZih
kjLpdSFOLw9XJsiVCwi5td0UQ0Kx6AJ6gPhbOjXlIPTY1pP/upMrzw5+x5RsAh/t5l7B
PgUL7W7oqFfycxNn0R5FWLFNRdaHrJhKgUJia2jj/MPELfvUarSvHnsaDIhtmk/yhuo/
KQ5YVrjagNm17Uv5vBKaU0Yy9m+gQUCGsGv1jdQChLeKFIR06hE+SrsyF4u7zChcVL27
ruhEqj15MRdsO1liDI4WY4BRZ1Uqv7CrC6bCRiQ7+f/gqr1j8m1AL9lWCrbb7GhPUwUQ
vgJw==
X-Gm-Message-State: AKS2vOxM1fA8oqUFhYC+RrumNHngcuN2ccWrKOn+lCOkwb7uVYw/uShj
M72eUeQKqjdhsA==
X-Received: by 10.223.134.196 with SMTP id 4mr3546900wry.127.1497525361728;
Thu, 15 Jun 2017 04:16:01 -0700 (PDT)
Received: from gmail.com (net-93-146-98-251.cust.vodafonedsl.it.
[93.146.98.251]) by smtp.gmail.com with ESMTPSA id
n2sm4046702wrn.30.2017.06.15.04.16.01
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Thu, 15 Jun 2017 04:16:01 -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 v3 1/2] dt: bindings: fpga: add lattice machxo2 slave spi
binding description
Date: Thu, 15 Jun 2017 13:15:58 +0200
Message-Id: <1497525359-30519-2-git-send-email-p.pisati@gmail.com>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1497525359-30519-1-git-send-email-p.pisati@gmail.com>
References: <1497525359-30519-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>;
+ };
+ };