Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp420246imn; Fri, 29 Jul 2022 10:56:14 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vw0Y9Z90PeNkxSh0SQV0uj/2NjLLVKhhQWb3bB2xpwwFb6KkaD0JGJEVSLiSToC51oU3bd X-Received: by 2002:a65:42c8:0:b0:41a:8138:f47f with SMTP id l8-20020a6542c8000000b0041a8138f47fmr3861948pgp.476.1659117374510; Fri, 29 Jul 2022 10:56:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659117374; cv=none; d=google.com; s=arc-20160816; b=roGo6obeQFxRHj8iDeZdJbHzNPGSPcd8CpdKfZ0KGH6MTo5AWi8Vry7r6h+rWFe4Ch QR/FxuR3i4J4pfxRc0WEHj4BFOG0mf2ZCcgzd9ReiWeS3uimS/1/YKGj3MkZpZErsk2L kULqyww5wAjJC0t7QL9lvpEEeMqzdJ/CxYa6qjbWPqSZoPh1bTG/vnuV2Nv9v4TjaRiS SowbgBH25Tvj5SHxGk0M70hkMa4ZpDUV63Kq6FgWrx3VlpDHenGPFkIRwlxRhRpU7fwu pPqYJt7U6Jw0AeYl1aCZyaO+QqlgfbmhOnGXa3WyNRcTpK4/6Nx41/GOKPlatlRJ/Cg/ fdXw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=xqzePlCWrYuDRmIa8Q+irIZ80z1HTvEkYHJNEEyVaAM=; b=juanQKvHlle3PfG+kzfm0eQ2JnKDPJJ9IGFk8BOu1bLkaS85lXFYZS3CYLp+iR4tNs 2YS5hergrNaaOEU4cI5chu1mMTlOfq8ODw1AF1PcV2fRKRarRSLmMQAeDYYflJXp+4lY +Af7nNFT4QXWgbmN6pnqSavBpZ8cZ3a9fC7nKqtBBoBAIlXpuHrpfTHCJWEhotpbMdv+ j1Myb4GNNvMYlN0F5f3xxAjsQWiFtzUsQgsf0kbFKFKhylfwZcP/8iiEa+Ywgq6CfTqq XWmKfIXQvQsGizpG2BpcnldAy+eLQYRYJq4TJifp7ygm6cJzPeoPZsGLqeGBX9UsQoxe jzuQ== 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 b9-20020a170902d88900b0016d9e47d2fasi4599937plz.71.2022.07.29.10.55.56; Fri, 29 Jul 2022 10:56:14 -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 S238300AbiG2Rtu (ORCPT + 99 others); Fri, 29 Jul 2022 13:49:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58884 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238096AbiG2Rts (ORCPT ); Fri, 29 Jul 2022 13:49:48 -0400 Received: from mx1.emlix.com (mx1.emlix.com [136.243.223.33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E6CC89A9E; Fri, 29 Jul 2022 10:49:47 -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 7AC965FDAA; Fri, 29 Jul 2022 19:49:45 +0200 (CEST) Date: Fri, 29 Jul 2022 19:49:45 +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: <20220729174945.GA7164@homes.emlix.com> References: <20220719112335.9528-1-i.bornyakov@metrotek.ru> <20220719112335.9528-3-i.bornyakov@metrotek.ru> <20220729090123.GA28299@homes.emlix.com> <20220729163347.irqqqcvh2biliqg2@x260> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220729163347.irqqqcvh2biliqg2@x260> 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 On Fri, Jul 29, 2022 at 07:33:47PM +0300, Ivan Bornyakov wrote: > On Fri, Jul 29, 2022 at 11:01:24AM +0200, Daniel Gl?ckner wrote: > > 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/ true... MachXO2 to MachXO5 and those Nexus chips speak that protocol both over spi and i2c and the position in the device tree decides which one it should be. Maybe the compatible string in the existing driver should be changed to lattice,machxo2. After all there is no other MachXO2-specific interface/protocol except maybe jtag. Best regards, Daniel