From patchwork Mon Apr 2 15:13:45 2018
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Paolo Pisati
X-Patchwork-Id: 10319997
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
A6B9860467 for ;
Mon, 2 Apr 2018 15:14:18 +0000 (UTC)
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 977E328B54
for ;
Mon, 2 Apr 2018 15:14:18 +0000 (UTC)
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
id 8BB1128B6B; Mon, 2 Apr 2018 15:14: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 1692528B54
for ;
Mon, 2 Apr 2018 15:14:18 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1752607AbeDBPOR (ORCPT
);
Mon, 2 Apr 2018 11:14:17 -0400
Received: from mail-wm0-f67.google.com ([74.125.82.67]:39702 "EHLO
mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1751990AbeDBPNu (ORCPT
); Mon, 2 Apr 2018 11:13:50 -0400
Received: by mail-wm0-f67.google.com with SMTP id f125so27790068wme.4;
Mon, 02 Apr 2018 08:13:49 -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=rq5FQ/ZZFzBUUPGSrTNPuJkA5zXlcQkYzYBC6eK1S7yHjAKpaWwTlwziwvqpi3n80m
MAwnNFCAX/YL7ZED4YU7uLVQBNa7c4Mt7xXFHAwyDo5sp9FsIFWquoKyuEplBra36IIf
Joi8v9zGAK/zByIXy6t3H0TngcSIHrP6dvnuN+OxiCgdAMJjB7WiJXCzeBUmoWrk0Y5W
TtNBchB32NASN5vzTiv7qYy6xikfnO6+UnWC/wnWlyoj/pEk3zoknw9LHIJJl1pleAnZ
+Z2x1CODQuciSJtAHPoX9g3Ow+oIDDiLbAMj6CiAXEDZTVIs2T0bQE2Y+X31Y/Mb21j0
Y+Dg==
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=CN+VD3SuYNSHxk3ZjiVq2dMSNSGfPLfaBhZkxIe67CP3uro8ERtjuk+iuDs8u+W8Ng
bxd0435kcMWg6JcxEZJWiG/w0YK1Qp54VcKb4Nmx0WT39lqIkV6EFOWJ5A0GLUiNB8uC
0CZtVomdl/6QBrCxBJKl/1KnljGuztA55OnzGV8o+nt9KG24UykwiCC1PuqoVl4WfjyS
u5CthFDbnZEBHnBt9AtavzRBdAGa43FL1s4YE9U4lHPRzFzonH36xGlxLrODsqtAeH80
y6ubXmaDilcyR2whqZxAb91BxRcDEXfNWbURD8c13+wYX/pp5mPI5mYC7/L0bZFjv77X
2FXA==
X-Gm-Message-State: AElRT7Hh8/yiWWqlJJ4/XuaycQZGkY9gr78FjRt/Adyj5xrERetqMBwj
sN0qRhTWhZ5TqEP+VCEISSQ=
X-Google-Smtp-Source:
AIpwx491OVOrE2b1vH4aooGECiRbNT0KuauGI7OIP9Ap/F6o4Rihe0XdIVkFf0dPLSvHJXhale61MA==
X-Received: by 10.80.195.6 with SMTP id a6mr13223090edb.178.1522682028909;
Mon, 02 Apr 2018 08:13:48 -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
j15sm447227edj.42.2018.04.02.08.13.48
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Mon, 02 Apr 2018 08:13:48 -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 v9 1/2] dt: bindings: fpga: add lattice machxo2 slave spi
binding description
Date: Mon, 2 Apr 2018 17:13:45 +0200
Message-Id: <1522682026-11395-2-git-send-email-p.pisati@gmail.com>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1522682026-11395-1-git-send-email-p.pisati@gmail.com>
References: <1522682026-11395-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>;
+ };
+ };