Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp146173imn; Fri, 29 Jul 2022 02:37:33 -0700 (PDT) X-Google-Smtp-Source: AA6agR4PpvuQML7eiAsdJ1/+Ax2p1+eKGiTQ2Ppg3G0a8VHBVvW/rsrc24wCuWxT24qyoswIf6oA X-Received: by 2002:a17:90a:2fca:b0:1f0:bb04:6660 with SMTP id n10-20020a17090a2fca00b001f0bb046660mr3120131pjm.95.1659087452879; Fri, 29 Jul 2022 02:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659087452; cv=none; d=google.com; s=arc-20160816; b=U3L3lLOAYdYLHOeLZN7biIeyVB5EQWpYU7YCSQXi/RJBA/mEfLnfXPRM1C95X7D9Cm wFJJ5trsPMFBznqyHVQxm2Nwh+yiINRsudyfQRhRbdfqT7/aTCI3FWGMSKHBZ9rS3x8j 6VZYpISj3GvjzJe+gE9FBhsn5kj+HaIDxpdniML4+2WgRPuwyvpV0tbOn9U73ZqNME7R wfzh/+1QEJIWrhbJmasm1Rqyz8OPXkhW3PM01kfCmxnSofuri+08an+QhXKgqyxTLSOh 2pmwUtd3yRt4SL38Yg1AWuqvNxfc81fBTGHXwwVZfOC00Kh1hdF6BEf+SDpN0vy6UHgX bTeQ== 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=/2BOiJJpSPI714wNvZW/TGTUS+SvP5DK2efQBTIZuts=; b=MjopgKHifbmQztTTXqv/KGVjT1hAStoBMD86FcDNr5ckPGDOdAKSqjD4KMnFiEnRf2 TkxGiSqgCugGTcy5Poz840tN4Qp7WTtmhLLpMA1pOnl9gLl8wAdjjlaQKLeh6asic3Mk FQOFPGd8Nn3GUnNwVsJvDd6Ci7js/v408SIPIkvV5/fTTp+yTLh2urIMdme7oPWQ/y2u dwBj/ydLw/9DuISRGvhcwmkqWEBNXTXni2kUh1eoszlZqt3jVEEYlgaC165ACX4XaB4c B8tBBf6AlcIgG+oznEtzFgLjZNjjwj2nA0w7Ch2+L7+MMfQSBDrgxtEK+1KjuMd29xmq zpQw== 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 n63-20020a622742000000b0051c28de280fsi2863849pfn.346.2022.07.29.02.37.18; Fri, 29 Jul 2022 02:37:32 -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 S235490AbiG2JId (ORCPT + 99 others); Fri, 29 Jul 2022 05:08:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231381AbiG2JIb (ORCPT ); Fri, 29 Jul 2022 05:08:31 -0400 X-Greylist: delayed 422 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 29 Jul 2022 02:08:29 PDT Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6520C84EF0; Fri, 29 Jul 2022 02:08:29 -0700 (PDT) Received: from mailer.emlix.com (unknown [81.20.119.6]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 7EB5F60344; Fri, 29 Jul 2022 11:01:24 +0200 (CEST) Date: Fri, 29 Jul 2022 11:01:24 +0200 From: Daniel =?iso-8859-1?Q?Gl=F6ckner?= To: Ivan Bornyakov Cc: mdf@kernel.org, hao.wu@intel.com, yilun.xu@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, Krzysztof Kozlowski Subject: Re: [PATCH v5 2/2] dt-bindings: fpga: add binding doc for ecp5-spi fpga mgr Message-ID: <20220729090123.GA28299@homes.emlix.com> References: <20220719112335.9528-1-i.bornyakov@metrotek.ru> <20220719112335.9528-3-i.bornyakov@metrotek.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220719112335.9528-3-i.bornyakov@metrotek.ru> 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 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 Hi, On Tue, Jul 19, 2022 at 02:23:35PM +0300, Ivan Bornyakov wrote: > +properties: > + compatible: > + enum: > + - lattice,ecp5-fpga-mgr Since this driver uses the same interface as the existing drivers/fpga/machxo2-spi.c driver, wouldn't it be advisable to use a similar compatible id, i.e. lattice,ecp5-slave-spi? > +required: > + - compatible > + - reg > + - program-gpios > + - init-gpios > + - done-gpios I think some of the GPIOs can be made optional by reading the status register or using the refresh command, assuming the slave spi interface stayed enabled after previous programming and we are not dealing with several chained FPGAs. But that can of course be left as an exercise for other developers. Best regards, Daniel