Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp615808ybi; Wed, 17 Jul 2019 02:10:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHaboVcwc0pUxSW/rLDSY5olsgTCEanMBt9lZpkNVNVre6ZgaRUcIC2LfxS0xP+UJicAT2 X-Received: by 2002:a17:90a:9505:: with SMTP id t5mr42386499pjo.96.1563354642601; Wed, 17 Jul 2019 02:10:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563354642; cv=none; d=google.com; s=arc-20160816; b=CrbiotOnMOBC2xnNRZeOynOZ1jIJAq0rsENEToDUWKpuuTInhisdN3tcJ0VsDfmSTu NLoxrSMo7hJoAwUcjD3dNwrUlepXlEg3ebmlvxf9v04kDKovTfJR9dcWQIgxCbcejxSq GAAvb99FKSJQZZ6n2rgUI2ImtKRf6QTsGXQw/SLNF2sHTV2OiBXQKXVyP26AVyalYg6R DzAfJvY5+CBWJetY7IpFAQaMmqzL4LL0z+Ewa6gGlFwA6MJwNl1Q//2oTNpmYRa7jGZR XM/ReGr9wClcNy2lABx2YdJKqgaCFYBVgSGYeR+27ii1sWKQG/8pqyIfOvNOk8FnKKRN aE5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=k7UdXNTU/Lcm5T+73Mu9Lk3fJTqZdL2ygB2hxg/bvs0=; b=RZCWUNuPYpFZCun6y29ImiOPSLCiklKuQvVo/dek7guSCJ0OCSAeh7VbYb8xZuFrU2 m8ujM4arkIsZ6lVDUsOW4YjWSGHhW2lBGVmiJy28O5Q/Z81QXFfE466y12/baujGgdd6 nSlE8KV7PLppBSqOH/XF59JGBvtxT/unjkNyO7zHhZr8jj/sWJf2ZRvaU+ttPkpuBYul Xq0Ek4xv9kOW0lM9j3fUEefMZ38IBo6u+5v7qZQT4iO7FjhuoBwRlLdpqfnRsCRLgX1Y 7v3aQAsv4IJSpVO9ZFFiIzHjLni4UbODRqQkklx5v3PAvhUEAzuLQ7r5aHrLUvv2ua2P 6qLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=ARPF8ysR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ci19si21489485plb.165.2019.07.17.02.10.24; Wed, 17 Jul 2019 02:10:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=ARPF8ysR; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730745AbfGQJIM (ORCPT + 99 others); Wed, 17 Jul 2019 05:08:12 -0400 Received: from mail-lf1-f65.google.com ([209.85.167.65]:41547 "EHLO mail-lf1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730650AbfGQJIM (ORCPT ); Wed, 17 Jul 2019 05:08:12 -0400 Received: by mail-lf1-f65.google.com with SMTP id 62so10978746lfa.8 for ; Wed, 17 Jul 2019 02:08:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=k7UdXNTU/Lcm5T+73Mu9Lk3fJTqZdL2ygB2hxg/bvs0=; b=ARPF8ysRS2qme660bnfPo9Sf6dUPUtYkSPR39gw+zuIoL7NZtNifRCF1SXDGFunevB uB8IuWYM1iKac8uIBfwlUQMiC8nlsO8DxhVUztZfWDxGTVv0AP3VA2gNewP/19w1a1LW +DLcKtE6254Ku0JHNY1kGsvrzSV9XAaFc8P93ruj/1XfqkiXTeiLARokVfXAhvHNhUAp oU/deRwXfo0vLuXt+HfYNfQX609LSRr1XRlJKA2ojTpGANWQaz3QzdMP8uvHrMD7iW8j FKIENDnCF1zDqRZvKhZ/RJljDTl2EmbDSDS67+xcSz06fthg9HXQPPGsqQ0bzxxY3PqD Ki/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=k7UdXNTU/Lcm5T+73Mu9Lk3fJTqZdL2ygB2hxg/bvs0=; b=ukU0R2kj1rk37MmdWEQCb2IfKQpC4CWDe2cXA22t7BpRja8TR1oUOk9X3p7XSBtIv0 EcTpiFiInmZQ7yaCYUb0ma+BchbkIStcpvVh+OhQPD0tNtTTPuwvcSluUI/It8M72hJU iUpIzEXzfr0+h/grIAWy2jSQla0djh0oODgPuhaYvuiUiY0V/QPupBMhwE5/ZpxttzFF xjt2QuXB2yT89va4jOLlJr78rMMRli11mqAN4OKFsZBu6KET1hQaermZQpuym4Sm/nHq hjaS3EGQpx1384OSS+iTxetpGvjk1NJOF5szEy9tcR9bgbfb8GIGbAp+laAthNrGHR93 kMxg== X-Gm-Message-State: APjAAAW70fnpstcn+WGtCJTQUOL8R66WkOykxa9ukWOR/PeqVP2Zro6w 7Fz7exyfViU9Yp6IZUgHrqniq7SsJPWYJXQaGJ2/Zg== X-Received: by 2002:ac2:4644:: with SMTP id s4mr17067571lfo.158.1563354489475; Wed, 17 Jul 2019 02:08:09 -0700 (PDT) MIME-Version: 1.0 References: <1558611952-13295-1-git-send-email-yash.shah@sifive.com> <1558611952-13295-2-git-send-email-yash.shah@sifive.com> In-Reply-To: From: Yash Shah Date: Wed, 17 Jul 2019 14:37:33 +0530 Message-ID: Subject: Re: [PATCH 1/2] net/macb: bindings doc: add sifive fu540-c000 binding To: Nicolas Ferre Cc: Rob Herring , David Miller , netdev , "linux-kernel@vger.kernel.org List" , linux-riscv@lists.infradead.org, devicetree@vger.kernel.org, Mark Rutland , Palmer Dabbelt , Albert Ou , =?UTF-8?Q?Petr_=C5=A0tetiar?= , Paul Walmsley , Sachin Ghadi Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 24, 2019 at 9:08 PM wrote: > > On 23/05/2019 at 22:50, Rob Herring wrote: > > On Thu, May 23, 2019 at 6:46 AM Yash Shah wrote: > >> > >> Add the compatibility string documentation for SiFive FU540-C0000 > >> interface. > >> On the FU540, this driver also needs to read and write registers in a > >> management IP block that monitors or drives boundary signals for the > >> GEMGXL IP block that are not directly mapped to GEMGXL registers. > >> Therefore, add additional range to "reg" property for SiFive GEMGXL > >> management IP registers. > >> > >> Signed-off-by: Yash Shah > >> --- > >> Documentation/devicetree/bindings/net/macb.txt | 3 +++ > >> 1 file changed, 3 insertions(+) > >> > >> diff --git a/Documentation/devicetree/bindings/net/macb.txt b/Documentation/devicetree/bindings/net/macb.txt > >> index 9c5e944..91a2a66 100644 > >> --- a/Documentation/devicetree/bindings/net/macb.txt > >> +++ b/Documentation/devicetree/bindings/net/macb.txt > >> @@ -4,6 +4,7 @@ Required properties: > >> - compatible: Should be "cdns,[-]{macb|gem}" > >> Use "cdns,at91rm9200-emac" Atmel at91rm9200 SoC. > >> Use "cdns,at91sam9260-macb" for Atmel at91sam9 SoCs. > >> + Use "cdns,fu540-macb" for SiFive FU540-C000 SoC. > > > > This pattern that Atmel started isn't really correct. The vendor > > prefix here should be sifive. 'cdns' would be appropriate for a > > fallback. > > Ok, we missed this for the sam9x60 SoC that we added recently then. > > Anyway a little too late, coming back to this machine, and talking to > Yash, isn't "sifive,fu540-c000-macb" more specific and a better match > for being future proof? I would advice for the most specific possible > with other compatible strings on the same line in the DT, like: > > "sifive,fu540-c000-macb", "sifive,fu540-macb" > Yes, I agree that "sifive,fu540-c000-macb" is a better match. > Moreover, is it really a "macb" or a "gem" type of interface from > Cadence? Not a big deal, but just to discuss the topic to the bone... I believe it should be "gem". I will plan to submit the patch for these changes. Thanks for pointing it out. - Yash > > Note that I'm fine if you consider that what you have in net-next new is > correct. > > Regards, > Nicolas > > >> Use "cdns,sam9x60-macb" for Microchip sam9x60 SoC. > >> Use "cdns,np4-macb" for NP4 SoC devices. > >> Use "cdns,at32ap7000-macb" for other 10/100 usage or use the generic form: "cdns,macb". > >> @@ -17,6 +18,8 @@ Required properties: > >> Use "cdns,zynqmp-gem" for Zynq Ultrascale+ MPSoC. > >> Or the generic form: "cdns,emac". > >> - reg: Address and length of the register set for the device > >> + For "cdns,fu540-macb", second range is required to specify the > >> + address and length of the registers for GEMGXL Management block. > >> - interrupts: Should contain macb interrupt > >> - phy-mode: See ethernet.txt file in the same directory. > >> - clock-names: Tuple listing input clock names. > >> -- > >> 1.9.1 > >> > > > > > -- > Nicolas Ferre