From patchwork Fri Jun 2 10:27:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Pisati X-Patchwork-Id: 9762203 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 9B8716038E for ; Fri, 2 Jun 2017 10:27:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9925E28517 for ; Fri, 2 Jun 2017 10:27:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8800828531; Fri, 2 Jun 2017 10:27:47 +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 0A09128531 for ; Fri, 2 Jun 2017 10:27:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751220AbdFBK1T (ORCPT ); Fri, 2 Jun 2017 06:27:19 -0400 Received: from mail-wm0-f68.google.com ([74.125.82.68]:33430 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751160AbdFBK1R (ORCPT ); Fri, 2 Jun 2017 06:27:17 -0400 Received: by mail-wm0-f68.google.com with SMTP id b84so17936830wmh.0; Fri, 02 Jun 2017 03:27:16 -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=TIwET10sVtfhnDM0IDgL40zygS4RTpviN8WMoc94UzXw18H5lOankUgkJJvjHYHfJz eGkXzJTL0NuK+LbQr5H2EDB/Lg3oo4HrcK2WAjGMzTjrwIC379WDfaVVEjkVmdz/OxCr LSs4BMeK64Q7Vy60P7dWdimkclnLkNxriCpEFWaRC7Qi2T5JZisQxQX1VU/YWtkFh96K G0POuAYFRvON7MgXVFBhIMNa4T77L/fGZXHJ0/743ADNnqLT8n26Yz1zIk3hvyL7/UyB tHim9jYpk5XEQhL0176HNdkowFGBLhAB/pQDTFgctPESLm3AUgiG6iSCBb0ZBv2iKtyu OHTg== 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=e/Hh5nvsGNsmN1ga4yY8xixPCzx4sa+ezeb/EjddGgqDnhKWPoMRaa3btD/THg18+S qCNMK54fA+jktFe4l5PXOlHS/sTlZBrx0Tyo1WQHcEMy4+098c3VTpmo2agLSo18jkJf pcf87L7CtJphOYcPxTs4Q/pKFs5dLjOPmtqyoitR00MiXC8ju1Lo2HEoWXqpeVJmStl8 9VI5dmccH//RB/l+iz0jWjzkPDXMsFxLocrKuyzx2pTJ4Xp1mwlwUbRr1XG75yPT63Nz 9ToOWIydhFlK+i7k0N9J9GDwTSMM11v+3u1q7BisLpaoakeaG6PeemFe2r2dIxG3wX1Y WVfw== X-Gm-Message-State: AODbwcD+YfZfkN/pYJloKrjZj+5c8F+maqJTpZ3zw/Kc1FDbEfMUKEwd qx2pdHRxrEjsTQ== X-Received: by 10.28.158.134 with SMTP id h128mr2212129wme.99.1496399236089; Fri, 02 Jun 2017 03:27:16 -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 n27sm9801490wra.57.2017.06.02.03.27.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 03:27:15 -0700 (PDT) From: Paolo Pisati To: Alan Tull , Moritz Fischer , Mark Rutland , Rob Herring 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: Fri, 2 Jun 2017 12:27:12 +0200 Message-Id: <1496399233-21451-2-git-send-email-p.pisati@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496399233-21451-1-git-send-email-p.pisati@gmail.com> References: <1496399233-21451-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>; + }; + };