From patchwork Tue Apr 3 19:02:31 2018
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Paolo Pisati
X-Patchwork-Id: 894734
Return-Path:
X-Original-To: incoming-dt@patchwork.ozlabs.org
Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org
Authentication-Results: ozlabs.org;
spf=none (mailfrom) smtp.mailfrom=vger.kernel.org
(client-ip=209.132.180.67; helo=vger.kernel.org;
envelope-from=devicetree-owner@vger.kernel.org; receiver=)
Authentication-Results: ozlabs.org;
dmarc=fail (p=none dis=none) header.from=gmail.com
Authentication-Results: ozlabs.org;
dkim=fail reason="signature verification failed" (2048-bit key;
unprotected) header.d=gmail.com header.i=@gmail.com
header.b="LenQdOre"; dkim-atps=neutral
Received: from vger.kernel.org (vger.kernel.org [209.132.180.67])
by ozlabs.org (Postfix) with ESMTP id 40Fz4q37VSz9s0n
for ;
Wed, 4 Apr 2018 05:03:07 +1000 (AEST)
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
id S1753163AbeDCTDF (ORCPT
);
Tue, 3 Apr 2018 15:03:05 -0400
Received: from mail-wm0-f66.google.com ([74.125.82.66]:35250 "EHLO
mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
with ESMTP id S1752832AbeDCTCg (ORCPT
); Tue, 3 Apr 2018 15:02:36 -0400
Received: by mail-wm0-f66.google.com with SMTP id r82so37510044wme.0;
Tue, 03 Apr 2018 12:02:35 -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=LenQdOreGyxnvxHFymuCVhmrurDNA0bw/HZPyk8vTAz88+569xHEwRNqDd8ojPbjQB
K11TGwm8ixlqEupFDf7N+4NHJ2YmbJH7WQUmXlJdItxk500MU9JFwob3z1NlylV566u3
OuIfGA/919P07XIYnfljxrqSRLqmSYCgJpPmAFPIKh8XEbFFDYB418plotRTIb9rqqUS
Bbmiz/KoGoR6z0diZQ3ErekmB/2w+h8cLgXNbJJSLBrV2r3g+Z9oqPWgrF6whSFIR7bm
kZFRmX+J6g5nB7pWxA6NLINL1HR+UVYGo22sELZ9YvHh+Y+cUs2DOVjH56aBdgUN1qfQ
+IQg==
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=XN2ImwPDyAQh0BcZQdVy52SF7kVjRWr+w0iX8uUW1Plzo52jSlTtY4VZR2CujqE91g
mRDS3RG04B0YQ2+GwGbdm/W9ugMd+O/zCpalZ5VZHGRfGY837We5C0/06/mp3DVmhXHt
HMu+iL+HXpaN4ESH/8X9JavJLiehOM0Veo27pzaSR82WVGLRCkOy7RGKk7DcdcI9Y4yk
78gKKfILSFkV8Yo0K9Sis7IMlt5ku6XjD1K4Hc6Ja1urSb79mqj4rXMUuFpx98LScobo
NP5k0hEYfcbOGf/mkAvX/U7+1wyYxWK4QU3rC1dwvDnNxjPOElvhQrP79f9HSF2cb3Kq
+0Ug==
X-Gm-Message-State: AElRT7FXnty/LGrgMcWee/5B2FGo9x/7S5taNSJns4Av8RvIREaZ1q3Y
TAHmHpPo6tpSuKVJIorOjswwYCvUWV8=
X-Google-Smtp-Source:
AIpwx4+no/VZhdyfCOXfKlS8rgSRQzDFdmopCoGZfaWay2ta7/a8bDLb7D3Z8k3elY3NHkTvq5zS4g==
X-Received: by 10.80.152.227 with SMTP id j90mr17864623edb.89.1522782155052;
Tue, 03 Apr 2018 12:02:35 -0700 (PDT)
Received: from gmail.com (net-93-144-128-215.cust.vodafonedsl.it.
[93.144.128.215]) by smtp.gmail.com with ESMTPSA id
y6sm2091856edh.3.2018.04.03.12.02.34
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Tue, 03 Apr 2018 12:02:34 -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 v10 1/2] dt: bindings: fpga: add lattice machxo2 slave spi
binding description
Date: Tue, 3 Apr 2018 21:02:31 +0200
Message-Id: <1522782152-27300-2-git-send-email-p.pisati@gmail.com>
X-Mailer: git-send-email 2.7.4
In-Reply-To: <1522782152-27300-1-git-send-email-p.pisati@gmail.com>
References: <1522782152-27300-1-git-send-email-p.pisati@gmail.com>
Sender: devicetree-owner@vger.kernel.org
Precedence: bulk
List-ID:
X-Mailing-List: devicetree@vger.kernel.org
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>;
+ };
+ };