Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3413745rwb; Tue, 16 Aug 2022 02:32:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR71p0Mn9w0OaSKOG73vxAx65ZzoKf2Q4EZEkHF02nxW7auXFmCMmZ5qy9Grjfhl9wVs3e1B X-Received: by 2002:a17:906:98c9:b0:730:a23e:2785 with SMTP id zd9-20020a17090698c900b00730a23e2785mr12908593ejb.622.1660642332326; Tue, 16 Aug 2022 02:32:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660642332; cv=none; d=google.com; s=arc-20160816; b=q2dSjemfbP86xxeB6wBXEhfianiZPEOBFHRvoh7b6dFre5eb5wtAVDCk4JN4+jST8X VL88id5P2or1GUseZNUy4NeUKTrrO5PWABUJjRhKJKytTd1KfxaORyCFvr/my5MZ2gDt 0ubvgQ/j/Bz6+gP/apuF9sVIktk9AM53KQxPP9FD2Gk93Fxg00poBIkB0HZQGDFsEan5 qkDcxNowXLmGy6Rrq017OBw2XXYAsHty9qu+1OrPpiuQkUHp/5D8nRl8NOdyhN1DoKSn ePozCqHoq1kbIyto/2mT8xyxF9gATqZMf0wlMDQoAZGuArjWG8GvmruUocXte81T9nMc Kxmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=bIMkYqSySecJbq1/obMkVdDjI7GGG5xmuZlU92hiCWo=; b=fuQqzwAbZu2npiOuBVGRgSogfA4UfVIIn7N4UDKuS9ReqrTjRlTW2rKwwZFMZwBDNX sPK+2ZWh3abqMqej7MZp+ZzH8b2yYxDMR2uXr23lmx4qnUy9rpGU27+H0JVSVRiPxpod /WOIIRrPJIxhHO+8sLZRniUvOeFvHgBFFnoOkJBnEOfSYpij4VUdUw+yjo8iQmMzdWyP bEK/7Nsg1aT4wWY18wpmkID0Kto1T8OOv0iuQNficsM6tbGgZz79qBKsEKu7rJW41jhN dWq3Pj7vH3/FKx5hCZDavk8B0kpLvohIgYzoxJnKCbMoHtIVmBfF3wEVTXlBW6jyrUPa GLeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr2-20020a170906d54200b0073832cabf3csi7884647ejc.567.2022.08.16.02.31.45; Tue, 16 Aug 2022 02:32:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230335AbiHPJ0Z (ORCPT + 99 others); Tue, 16 Aug 2022 05:26:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44570 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233023AbiHPJZx (ORCPT ); Tue, 16 Aug 2022 05:25:53 -0400 Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5422D12D05; Tue, 16 Aug 2022 00:42:19 -0700 (PDT) Received: from mailer.emlix.com (p5098be52.dip0.t-ipconnect.de [80.152.190.82]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 3553160763; Tue, 16 Aug 2022 09:42:17 +0200 (CEST) Date: Tue, 16 Aug 2022 09:42:16 +0200 From: Daniel =?iso-8859-1?Q?Gl=F6ckner?= To: Xu Yilun Cc: Ivan Bornyakov , mdf@kernel.org, hao.wu@intel.com, trix@redhat.com, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, linux-fpga@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, system@metrotek.ru Subject: Re: [PATCH v6 1/2] fpga: ecp5-spi: add Lattice ECP5 FPGA manager Message-ID: <20220816074216.GA31706@homes.emlix.com> References: <20220815132157.8083-1-i.bornyakov@metrotek.ru> <20220815132157.8083-2-i.bornyakov@metrotek.ru> <20220816045841.irhr5vigemdqknaw@x260> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 16, 2022 at 02:09:18PM +0800, Xu Yilun wrote: > We don't have to make everything fine, but start with machxo2 and ecp5 > first. If the change affects machxo2, other people may help. Programming MachXO* chips uses different sequences of commands. With ECP5 you put the chip into configuration mode and then upload the bitstream into RAM cells. With MachXO chips you write the bitstream to non-volatile storage and then tell the chip to go into configuration mode where it automatically loads the bitstream from non-volatile storage. There is no way to directly write the RAM cells. Best regards, Daniel