Received: by 10.223.185.111 with SMTP id b44csp803211wrg; Fri, 9 Mar 2018 14:07:09 -0800 (PST) X-Google-Smtp-Source: AG47ELsWxJ2egTczJyUeI9OzuGILPNKXQFrJeYxwHYqvtGr2jzusQBh6NUp+9Nie2FcWQwIFY5VA X-Received: by 2002:a17:902:6e8e:: with SMTP id v14-v6mr10622plk.258.1520633229445; Fri, 09 Mar 2018 14:07:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520633229; cv=none; d=google.com; s=arc-20160816; b=N0SEn9XMfpbYSJdHpMSpxEL+UjEUkkGuMpGgYyw4VyTp5sECWopVp5Vmq/Bn82MjWs voY8/qy5si4JaCyhQRtlbrwaibS49jiSxTj6uTusbHnjnONoWBs4Vo45HvX811x+X+Rs 4WnKgUgPpHNKtFVQUeUxcJ/16b7nyAp0wSgZl0Nba8kTQaAeAYttbhss8rx2CAWkgksa 9Z7Yhlzov+dlbnqK7QRDFQ76W4KfaIrc7nSU7x5/JMawDbcTZ3tMxD/tiaGwlpU9ixT+ ITbq33QSbW1+mdaq5FMbhNax/rrQkX1b7w9t0ECTNDJtazTus6eHq3f/u4OMZuuN363h 4eGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=zt/D8lTmby9eayGbLN0FVqJF8vUiVxKOYsLcLyWZqac=; b=YHZSq9DnufobHwtj9yZLJEZuVbexfUVKrssDHw2woRFREvGYyX0ibkXbheqdO3nCHq GzaaG05mpKYhHvnClhHNwtyaGfSzvggLg9w7VlEHAdg8zKp5sY6zB7R94+aaw5A8IEu+ VK/EYwHcd4B2Y2cmnTaSUHdWv3NV7fJf1p6FnNISK9HPgnXC5f1Jpz8wwHRKYkFhzRSp 9OnXggZiGs+Ayw43rTgtZR7mQSFgosVmozFqlvGMGwu0SRo9cuDKrDCM6KzZwdtXzelF ypPOw8z2EDGMRcqCjlF+vVluMrFKSBz6OrssGWAFdlBZE744kR/D6y9/rTsph0giaKHk 258w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=O9mgdD75; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e13-v6si1584867pln.204.2018.03.09.14.06.55; Fri, 09 Mar 2018 14:07:09 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=O9mgdD75; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932923AbeCIWFi (ORCPT + 99 others); Fri, 9 Mar 2018 17:05:38 -0500 Received: from mail-qt0-f193.google.com ([209.85.216.193]:34100 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932206AbeCIWFe (ORCPT ); Fri, 9 Mar 2018 17:05:34 -0500 Received: by mail-qt0-f193.google.com with SMTP id l25so12745401qtj.1; Fri, 09 Mar 2018 14:05:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=zt/D8lTmby9eayGbLN0FVqJF8vUiVxKOYsLcLyWZqac=; b=O9mgdD75+DzgDWyOYVOwc2XS08fhIVD+uASnfhyu0o/XBV3NdBQVRGNb+3IWs1h4l9 D4zHxhtIkZ4IzkDICbirSX6s4DNGtJ96wkwmqslMBYz8Ch2KHQOBvCRVzTFcKfKi+mjG v34YhCtPSD8YEBU2d+xHEflgF+bBYTMucjpLGVCgf8A4YeEC9CLghRlcOksJQEMY6KMj RLruW2P9MDOqzoNx5VC260YcjH4U4u4W80dAxnqG5o7Xjx7cYo8McNauLPRFWmbOuQGY +FB5/uSp3xUyxWG+5naGwTcT6tnsPdQb0Q1DCGycl+XyaNj3Oan8wBs+62kfMMSgw+3k p6NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=zt/D8lTmby9eayGbLN0FVqJF8vUiVxKOYsLcLyWZqac=; b=HqzVt9d90kGGOfLRvH6LwJ2tysYuUngpfzDogZlxewLqPb70W7reIgqdiMGt0/ffuA l3EsDbC/85voo6OzWtbh5gkJBaeYi7MK5ZNUFgB+9J+VpxF7d46sF+T0YTsmtAUAiPBG 9aNTcOdTq+yvneAeDk+q6G2o1Uo0sgN+9rfe9SqDM5uV9qeAmJG7mpfEAcky/3nUF8aa Xzs5kb5T018y/iz05GuPZHPqeyDaGrUJRn5AsmZ4NuQ5Z9ro3TrwnEEfN+gyIhWxAB5G u5Mhz0tPJLu1q2wVxbbp9993nt5Akio+WMTNUyvyk8obEKS5XY+421n00EebaAaoH1Rr MqSA== X-Gm-Message-State: AElRT7FACT2WsVhCt+hGJ92yhtcgTYjJWCXdAQQzGRDRuMnrN2ZJpmgE KAFeB8KkmLBiXRBxcXm+dVw= X-Received: by 10.237.60.87 with SMTP id u23mr50348562qte.235.1520633133761; Fri, 09 Mar 2018 14:05:33 -0800 (PST) Received: from osboxes (ool-18b82058.dyn.optonline.net. [24.184.32.88]) by smtp.gmail.com with ESMTPSA id k198sm1193638qke.5.2018.03.09.14.05.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 09 Mar 2018 14:05:32 -0800 (PST) Date: Fri, 9 Mar 2018 17:05:30 -0500 From: Vivek Unune To: Florian Fainelli Cc: hauke@hauke-m.de, zajec5@gmail.com, jonmason@broadcom.com, bcm-kernel-feedback-list@broadcom.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jon Mason Subject: Re: [PATCH v2] ARM: dts: BCM5301X: Add support for Linksys EA9500 Message-ID: <20180309220530.nz2qkuipjqabus5h@osboxes> References: <1489590033-4946-1-git-send-email-npcomplete13@gmail.com> <20180302194155.50808-1-npcomplete13@gmail.com> <88e9d209-c45e-0e8f-53ce-4705d0b7e3c2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <88e9d209-c45e-0e8f-53ce-4705d0b7e3c2@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Date: Fri, 9 Mar 2018 16:56:11 -0500 From: Vivek Unune To: Florian Fainelli Cc: hauke@hauke-m.de, zajec5@gmail.com, jonmason@broadcom.com, bcm-kernel-feedback-list@broadcom.com, robh+dt@kernel.org, mark.rutland@arm.com, linux@armlinux.org.uk, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Jon Mason Subject: Re: [PATCH v2] ARM: dts: BCM5301X: Add support for Linksys EA9500 Message-ID: <20180309215611.ip7uvnpwfkfwfmx3@osboxes> References: <1489590033-4946-1-git-send-email-npcomplete13@gmail.com> <20180302194155.50808-1-npcomplete13@gmail.com> <88e9d209-c45e-0e8f-53ce-4705d0b7e3c2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <88e9d209-c45e-0e8f-53ce-4705d0b7e3c2@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) Hi Florian, On Fri, Mar 09, 2018 at 11:17:21AM -0800, Florian Fainelli wrote: > > Glad you got it working finally! Out of curiosity, I am assuming you > have Broadcom tags enabled on the internal switch and disabled on the > external BCM53125 switch, is that correct? No, I did not enable tagging, as I thought this might have undesired effect with internal switch enabled and external disabled. I understand that BCM53125 needs additional plumbing and it's tagging is disabled in mainline. > > > > #include "bcm47094.dtsi" > > -#include "bcm5301x-nand-cs0-bch8.dtsi" > > +#include "bcm5301x-nand-cs0-bch1.dtsi" > > This sounds like an independent bugfix, can you submit that separately? Will do. > > + > > + port@5 { > > + reg = <5>; > > + ethernet = <&gmac0>; > > + label = "cpu"; > > + > > + fixed-link { > > + speed = <1000>; > > + full-duplex; > > + }; > > + }; > > + > > + port@7 { > > + reg = <7>; > > + ethernet = <&gmac1>; > > + label = "cpu"; > > + > > + fixed-link { > > + speed = <1000>; > > + full-duplex; > > + }; > > + }; > > + > > + port@8 { > > + reg = <8>; > > + ethernet = <&gmac2>; > > + label = "cpu"; > > + > > + fixed-link { > > + speed = <1000>; > > + full-duplex; > > + }; > > + }; > > None of this is wrong, but DSA effectively will take the first port > specified with a "cpu" label and declare it as the one and only CPU port > it supports. If the architecture on Northstar is similar to what is done > on Northstar Plus, port 5 can be either internal or external PHY, port 7 > is indeed gmac1, and port 8 is connected to the flow accelerator, which > should be in "bypass" mode by default. We can always change that later > on if we have to anyway. From what I understand from the source is that gmac0 and gmac1 in NorthStar are connected to FA while gmac2 is connected to port8 Although I could be completely wrong :) Snippet from GPL source [1]: * A typical GMAC configuration is: * GMAC#0 - port#5 - fwd0 <---> wl0 (radio 0) on CPU core0 * GMAC#1 - port#7 - fwd1 <---> wl1 (radio 1) on CPU core1 * * GMAC#2 - port#8 - eth0 <--- vlan1 ---> br0 Note: EA9500 has three radios, fwd0 is connected to even numbered radios While odd numbered radios are connected to fwd1. Also, fw0,fw1 and eth0 listed above are devices created by the factory firmware. > > + > > + sw0_p0: port@0 { > > switch0port0 would be a nicer label and unit name to use. > > > Similarly, this would be better with switch1port8? Will do. > > > > -/ { > > - usb3_phy: usb3-phy { > > - compatible = "brcm,ns-bx-usb3-phy"; > > - }; > > +&usb3_phy { > > + compatible = "brcm,ns-bx-usb3-phy"; > > }; > > I would probably create a separate commit which explains why yuo are > relocating the USB 3.0 PHY into the mdiomux node, and then only add > support for the EA9500 model. > Will do. Thanks, Vivek [1] https://github.com/RMerl/asuswrt-merlin/blob/master/release/src-rt-7.x.main/src/include/hndfwd.h