Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp405511imn; Fri, 29 Jul 2022 10:25:19 -0700 (PDT) X-Google-Smtp-Source: AA6agR614ohYA8r2c0kdlkxnXE0x5I/yruI8b0fcLgMGxhzhQgCq5p/+tB4NhwLRtKINLA/fUex1 X-Received: by 2002:a17:902:bb90:b0:16d:2d15:3a91 with SMTP id m16-20020a170902bb9000b0016d2d153a91mr4824708pls.4.1659115519118; Fri, 29 Jul 2022 10:25:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659115519; cv=none; d=google.com; s=arc-20160816; b=Ld81FNHDL3urWrMNOXTOYqWkfdE8rdw+tDsO+JlEImbfHIDMa4pzDhv3xoSHISUjC2 emFRntTuGw0se/PevodiTnn4NikWKn3IoopY8Qgj5HZk1ME1DOhno6ic2TrQr6+BVmLa GVXxd+LJ7gMQT1nonuA1s6DY6KquDl+Fs4hCI3fxrrTrzk26Lq2vHXgxN8hqJX+Ldsc+ 767QIK1cJhfpSI/IbY1cly1sCj+npPRstp/a76YXZrnahPxM9JvS3rcJ83vIKTU7nDJ1 nI6w/hFuaMTqP+9gHJLPXOeIL0ItJ5GYiIndNhuvJhp7hoesGTtW8NebkDYcDGP10y2/ vY5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PGDrHuIVzDKsj5WTde9lIzzT/ym6RegWlNZg33K1TOo=; b=OqrOfRpE3h4Kpjpq2CJKa/gf7SSOHuLMlLt1GK+sPIcsr1uBK6dRf4M67etiFQBkVs jxDvzd/VsBWJWNP0FsanEXfbfk3w7dVo9Frw1iuRfqvdLXsHoz6DyuaBYGLkfpPBoWu1 4VAKGB16Ix6w8ZSWu65RPSSGB4Aw71K/RDuis6AqfZqpl7xAaU2Up+YjjyIk1tAmz6bT vqBEVVurDl1OlVetE6xhKe9kPSki3HAK0U1tmLheMocFc1eqvSZhFWou3IFQh9BNsHCz EmkN6ivc5SfyGaxZCx1i42D/Ml6/m+bkhCv4so7in21mwQTa3bu3r69kcTf5TGCq6OEw bnBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@metrotek.ru header.s=mail header.b=cjwCDrbF; 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 z36-20020a630a64000000b0040d7ac04fafsi4768054pgk.36.2022.07.29.10.25.04; Fri, 29 Jul 2022 10:25:19 -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; dkim=fail header.i=@metrotek.ru header.s=mail header.b=cjwCDrbF; 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 S237794AbiG2Q66 (ORCPT + 99 others); Fri, 29 Jul 2022 12:58:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232321AbiG2Q65 (ORCPT ); Fri, 29 Jul 2022 12:58:57 -0400 Received: from mail.pr-group.ru (mail.pr-group.ru [178.18.215.3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C881E89A63; Fri, 29 Jul 2022 09:58:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=metrotek.ru; s=mail; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=HcyS1kHLPZESdGp9R+oyPMtufBfDWfydet05Vxb7ves=; b=cjwCDrbFQMPGAFMf7CwS3hbVeF0L1QgdRtCzntfr6jV/Nde1TBFZlb+iQ1Go80mbJBsNC5wxGBzNg Po6YVgkyCIjsNH9NMTnXj7MZud6wK91Aw3GrM7jtIo+r5ke1lLEqvtbUUbXhgwnaEFg30SoykgSNDu GXLKyQ0jQZNOhYXQsLAWnh1TOqCR1zHgB+bJAZCn5nuNGzQoTHDdlJVqAK4IMX/DyblhVE5dZbjdci VzlNoUGHc3AqGEY7BF0dI3umPdyQoKAxQzxup33pYjF3hASj0BNeImHt1LLyv89CrpDZsOEnam9dpa K0zDQ35r5/9PLn19/BebA1KzYIPKKxA== X-Kerio-Anti-Spam: Build: [Engines: 2.16.3.1424, Stamp: 3], Multi: [Enabled, t: (0.000012,0.006052)], BW: [Enabled, t: (0.000035,0.000001)], RTDA: [Enabled, t: (0.081346), Hit: No, Details: v2.41.0; Id: 15.52k00k.1g95ealga.9p5; mclb], total: 0(700) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: X-Footer: bWV0cm90ZWsucnU= Received: from x260 ([85.93.58.13]) (authenticated user i.bornyakov@metrotek.ru) by mail.pr-group.ru with ESMTPSA (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256 bits)); Fri, 29 Jul 2022 19:58:36 +0300 Date: Fri, 29 Jul 2022 19:33:47 +0300 From: Ivan Bornyakov To: Daniel =?utf-8?B?R2zDtmNrbmVy?= 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: <20220729163347.irqqqcvh2biliqg2@x260> References: <20220719112335.9528-1-i.bornyakov@metrotek.ru> <20220719112335.9528-3-i.bornyakov@metrotek.ru> <20220729090123.GA28299@homes.emlix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220729090123.GA28299@homes.emlix.com> 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 Fri, Jul 29, 2022 at 11:01:24AM +0200, Daniel Gl?ckner wrote: > 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? > To quote Krzysztof Kozlowski from v1 review: > Do not encode interface name in compatible so no "spi" See https://lore.kernel.org/linux-fpga/044a9736-a4ec-c250-7755-c80a5bcbe38b@linaro.org/ > > +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. I would prefer the latter.