From patchwork Wed Mar 21 17:35:25 2018
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Paolo Pisati
X-Patchwork-Id: 10299911
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
010E4600CC for ;
Wed, 21 Mar 2018 17:36:10 +0000 (UTC)
Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1])
by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E3ADD28BAE
for ;
Wed, 21 Mar 2018 17:36:09 +0000 (UTC)
Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486)
id D77BC298B1; Wed, 21 Mar 2018 17:36: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=-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 52AC728BAE
for ;
Wed, 21 Mar 2018 17:36:09 +0000 (UTC)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1752390AbeCURfp (ORCPT
);
Wed, 21 Mar 2018 13:35:45 -0400
Received: from mail-wm0-f67.google.com ([74.125.82.67]:33188 "EHLO
mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1751713AbeCURfa (ORCPT
); Wed, 21 Mar 2018 13:35:30 -0400
Received: by mail-wm0-f67.google.com with SMTP id i189so7396716wmf.0;
Wed, 21 Mar 2018 10:35:29 -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=RsYYze/6oS8AgvcgFWJ3eu7Sp6DK/BnetW6OU2s9+e0=;
b=WOTz/agnTLP5dH6+rYhGro70QuwyGSZ4y8xiRJGhcg0onGBEdKOeCsGeCtlkDZge91
/RPwmzVMkapLA3XNdVTDboJkYWc5C//oZmkCCTu1GJ6Uuis05AaTQUnzFP78IF4AR/y2
0cI3kly1HXJofLWi55h9+QuV25blAggirEMns6k1fyfeZSgVxDb6LuM3LSgaBMaQYUIb
fb2VDVYo5kn6GqTqOYqKJDfL37F5KtA6HxYZvzFQgyqdxWTK53zwZ1lJ1k8tpVuVDF83
8vsGWqZxV7FupeatkPcOImOmvZG1s8XzRZa+zHvpVjgT/fOrSlPtqc9TVU+qqUws4FFm
Rs5g==
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=RsYYze/6oS8AgvcgFWJ3eu7Sp6DK/BnetW6OU2s9+e0=;
b=uFBkEv2CtqS/t9ta60If0nmmWomiWY+jB/iVp3d5C/RzcVsEx4gYXGVpnkqqVsRt5H
4AO/5Qh83wjMeGhDXrLXINp/8+MkhLwrKza5p4ii8x17lpHLY6MeZHWI+R2Cag0Uavzh
Md316P29zno7/C5DfMNEgzEZni2tBjakDp2lnD0fSBpP8/0bh/BfRbVwX5OWvu4HRs79
ZAzlPlTgiSie0HSLVw0V/ZUzBKUuQAh4P1AUn0EyYE/rJwHu44Ks+FfNAST4gEDncmaU
9tnPfgWMvv0HbeF6wRi44GPa+A6gwa+Q8UfC1YORATtd5QkC0nOdzGRd1iE0OztiBF0i
I6Fg==
X-Gm-Message-State: AElRT7GNMniyVTlEv11i04qqN8BEdh2eSGgGaohvmTrP0IJmKidYUCGF
1awU5xjhydFZf48M765pNFE=
X-Google-Smtp-Source:
AG47ELsgsIKeFi98uvTu8/FAwYEQ+o7NPib1Kc8Yjm3WHtbKuvzv08/KbPxQZE6JCK+sKOjyPEn3MA==
X-Received: by 10.80.213.203 with SMTP id g11mr11964517edj.101.1521653728944;
Wed, 21 Mar 2018 10:35:28 -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
y46sm1584313edd.77.2018.03.21.10.35.28
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Wed, 21 Mar 2018 10:35:28 -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: Wed, 21 Mar 2018 18:35:25 +0100
Message-Id: <1521653726-24625-2-git-send-email-p.pisati@gmail.com>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1521653726-24625-1-git-send-email-p.pisati@gmail.com>
References: <1521653726-24625-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
+a '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>;
+ };
+ };