From patchwork Fri Mar 23 12:27:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Pisati X-Patchwork-Id: 10304491 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 2614560385 for ; Fri, 23 Mar 2018 12:27:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3A38928CDC for ; Fri, 23 Mar 2018 12:27:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2E91228CED; Fri, 23 Mar 2018 12:27:46 +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 BE0F028CDC for ; Fri, 23 Mar 2018 12:27:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751873AbeCWM1p (ORCPT ); Fri, 23 Mar 2018 08:27:45 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:40744 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752139AbeCWM1Q (ORCPT ); Fri, 23 Mar 2018 08:27:16 -0400 Received: by mail-wm0-f66.google.com with SMTP id t6so3201135wmt.5; Fri, 23 Mar 2018 05:27:15 -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=QW5AESnOs9nxew+qYUMCfsEwaN9E0e/6f7K4ZSZ7quINQf/5sgfvMrqPDMz6ukm7zC EPtyaY/rZ1OEcFnTMFtIeXWhwnV1RYh5x5xrkrx/OjYLuVP11iXx6yCtbJ5R+XgFsMe/ /sOnX4ymnSTUnkaD4j1wWfUZEKVdM7qoc4Ki88GsxJJP9zt7bwHgzKO/024gzJpUbf4n 6NXLUQx0VcS0rfZnYLKFuaGMVotVXe6gK0J7elvFJmi7prujRroW4oPhlH4hMfhteuGQ sfpalA9xFuEbGWiw+NqRTQqaO3Fr7tMgUN6cUKUwXB22R/rel6TWBVdnrS8m+r5wF745 hwsw== 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=dk99/TVapU9VLakDXlE9MmD0sInW9dY+qIIENotCo3gqNjORwtWJZjWTDyzfwFe/gy zV7hM8FcaP+lfptgyKozLjoY2N5KlorG21XGSKi/vIR/vLfHvooH6jBumWfRnWYf1/JV r5pW6SH2UPZe1ikyBeid5bhnrXnXA+JMad4FfD3QIgw7h8+/t2513jtxAx17YxF+emQ0 eQApzrjwsqOiYHZS9i10eZr3UU9Oq/WvKzkLTF6TgnA2kjhi1QpoGtyroBE9R/kCxfud 8nF9BFD+KvkMjfxMrQ+2hiqBVk+27IU1IpdYihYfxHx7e5OrHIGJrqg14yMCPKJLUOlb e2Vw== X-Gm-Message-State: AElRT7Ftg/jKodj4yaLN6wr5PV/oRJ+w1t3QZ+5XjUKnr/+CyJKtBVXJ N2YxIIxL9/tdVxgN40oYCCc= X-Google-Smtp-Source: AG47ELsb1NIbhfw4E1IQ4zlPlSMOXIkkUL/LCVsKEckqlBF8RMVm6Dod+tOPKlcrI+s79EPBntkCag== X-Received: by 10.80.174.142 with SMTP id e14mr18396449edd.201.1521808035279; Fri, 23 Mar 2018 05:27:15 -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 a7sm6097817edl.11.2018.03.23.05.27.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 23 Mar 2018 05:27:14 -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: Fri, 23 Mar 2018 13:27:11 +0100 Message-Id: <1521808032-29645-2-git-send-email-p.pisati@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1521808032-29645-1-git-send-email-p.pisati@gmail.com> References: <1521808032-29645-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>; + }; + };