From patchwork Thu Jul 6 10:01:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Pisati X-Patchwork-Id: 9827931 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 F085F60361 for ; Thu, 6 Jul 2017 10:01:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1B76223A5 for ; Thu, 6 Jul 2017 10:01:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D66A4284FE; Thu, 6 Jul 2017 10:01:51 +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 7A3FF223A5 for ; Thu, 6 Jul 2017 10:01:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751992AbdGFKBj (ORCPT ); Thu, 6 Jul 2017 06:01:39 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:36775 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751011AbdGFKBO (ORCPT ); Thu, 6 Jul 2017 06:01:14 -0400 Received: by mail-wr0-f193.google.com with SMTP id 77so3813236wrb.3; Thu, 06 Jul 2017 03:01:13 -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=iiDY0d3ShbOCLc/h0IpupOxcKOEha4YRdaBym0Oc8Tw4gzrc/NUJzHsOldF71nIMrh PRkUp0z6oYHlWnoiqKf3hSwpV3U9bR2dBIWjPu5WfIb/vAl1u4Jj1Yb+G/aXX1x7C02x gyw9CEnQqOr9KXw6RQJjgfIuOd3hPmYOe/0RWeBfj0Z4G4CGYhAt7XEul5tpUBbv0UbN 19QZ+O0UBUvWbEd+04aoOdeS+u/xvpkJFLCmsai/8+/ePUmEtIKL7zsbIXJr+FBDImzT Bh6a8Waq7LaaABh4eRwVMCHrvrYJrTxZRX8fB84eq+uokr+/3fI9clrkrKK7LbRTYOaS nppw== 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=Dyp5rH1wRttfHyz2K6w3XzLe1ghEUrZbLFSD+X/lI+MbiLwoUVXv9Sl1Lk7pHeIqo7 4mLfX0ix5/0CRssmB71EzhKgtKT1D7rpjxx/Sfwl30PQkQZq/8YIbKm/6prrkn5urIUk EzRI+JyKjCPBPxMCQtLaK56YcB9dqaIYTDVNL+1xJRIpMdyUcUA2bU6z0u3ef6zT/Do0 CcOAzSwvcvQ1Yar4n7JLDYLzIgaFeeYA5qoxOZA4n/1NEHGfWlFK+mAbbcTlqJfcinly aE5s1VzmSsDDDw9to+wY5xQtTBnqPIiB6YfsbtgkjwvvScgZPvZd1khf4XvuyrfqbaQA ryOA== X-Gm-Message-State: AIVw113Vt20oI0rzmE5XxV7FVC3Ypn8aijzqazWHBY8UL/FG1abIsr2H 4EuJ5Opk+7AVvJPjggA= X-Received: by 10.28.175.212 with SMTP id y203mr9267405wme.2.1499335272800; Thu, 06 Jul 2017 03:01:12 -0700 (PDT) Received: from gmail.com (net-47-53-205-78.cust.vodafonedsl.it. [47.53.205.78]) by smtp.gmail.com with ESMTPSA id y124sm19129427wmd.21.2017.07.06.03.01.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jul 2017 03:01:12 -0700 (PDT) From: Paolo Pisati To: Alan Tull , Moritz Fischer Cc: Rob Herring , Mark Rutland , 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: Thu, 6 Jul 2017 12:01:09 +0200 Message-Id: <1499335270-6512-2-git-send-email-p.pisati@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499335270-6512-1-git-send-email-p.pisati@gmail.com> References: <1499335270-6512-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>; + }; + };