From: Christian Lamparter <chunkeey@gmail.com>
To: "Rafał Miłecki" <zajec5@gmail.com>,
"Florian Fainelli" <f.fainelli@gmail.com>
Cc: "Hauke Mehrtens" <hauke@hauke-m.de>,
"Rob Herring" <robh+dt@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org,
bcm-kernel-feedback-list@broadcom.com,
"Rafał Miłecki" <rafal@milecki.pl>
Subject: Re: [PATCH] ARM: dts: BCM5301X: Describe switch ports in the main DTS
Date: Wed, 7 Jun 2023 21:37:12 +0200 [thread overview]
Message-ID: <785c76d5-bfe2-3491-45d1-e78efd750e6a@gmail.com> (raw)
In-Reply-To: <20230605132109.7933-1-zajec5@gmail.com>
On 6/5/23 15:21, Rafał Miłecki wrote:
> From: Rafał Miłecki <rafal@milecki.pl>
>
> All Northstar SoCs have BCM5301x switches (BCM53011, BCM53012) with 8
> ports (0-8 without 6). By design 3 switch ports (5, 7 and 8) are
> hardwired to 3 on-SoC Ethernet interfaces. Switch port 8 requires
> forcing link state.
>
> It seems that global Northstar .dtsi file is the best place to describe
> those hw details. Only device specific bits (like labels) should go to
> device .dts files.
>
> This seems to fit well with a tiny exception of Asus RT-AC88U which
> somehow was designed to have switch 5 connected to an extra switch. This
> case was simply handled with a /delete-property/.
>
> Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
No, I was wrong. Both the MR26 and MR32 use the Gbit PHY integrated into
the SoCs. There is no extra PHY chip to be found anywhere on the PCBs.
phytool does confirm this.
# mr26 + mr32 outputs are indentical.
| $ phytool poe/0
| ieee-phy: id:0x600d8760
| ieee-phy: reg:BMCR(0x00) val:0x1140
| flags: -reset -loopback +aneg-enable -power-down -isolate -aneg-restart -collision-test
| speed: 1000-full
|
| ieee-phy: reg:BMSR(0x01) val:0x79ed
| capabilities: -100-b4 +100-f +100-h +10-f +10-h -100-t2-f -100-t2-h
| flags: +ext-status +aneg-complete -remote-fault +aneg-capable +link -jabber +ext-register
Reviewed-by: Christian Lamparter <chunkeey@gmail.com> (MR32+MR26)
Thank you!
> ---
> arch/arm/boot/dts/bcm53015-meraki-mr26.dts | 3 --
> arch/arm/boot/dts/bcm53016-meraki-mr32.dts | 3 --
> 22 files changed, 51 insertions(+), 163 deletions(-)
>
> diff --git a/arch/arm/boot/dts/bcm-ns.dtsi b/arch/arm/boot/dts/bcm-ns.dtsi
> index 43d670746f05..dae9c47ace76 100644
> --- a/arch/arm/boot/dts/bcm-ns.dtsi
> +++ b/arch/arm/boot/dts/bcm-ns.dtsi
> @@ -313,10 +313,49 @@ srab: ethernet-switch@18007000 {
>
> status = "disabled";
>
> - /* ports are defined in board DTS */
> ports {
> #address-cells = <1>;
> #size-cells = <0>;
> +
> + port@0 {
> + reg = <0>;
> + };
> +
> + port@1 {
> + reg = <1>;
> + };
> +
> + port@2 {
> + reg = <2>;
> + };
> +
> + port@3 {
> + reg = <3>;
> + };
> +
> + port@4 {
> + reg = <4>;
> + };
> +
> + port@5 {
> + reg = <5>;
> + ethernet = <&gmac0>;
> + };
> +
> + port@7 {
> + reg = <7>;
> + ethernet = <&gmac1>;
> + };
> +
> + port@8 {
> + reg = <8>;
> + ethernet = <&gmac2>;
> +
> + fixed-link {
> + speed = <1000>;
> + full-duplex;
> + };
> + };
> };
> };
>
> diff --git a/arch/arm/boot/dts/bcm53015-meraki-mr26.dts b/arch/arm/boot/dts/bcm53015-meraki-mr26.dts
> index 071f2cb97251..24ba467c67b9 100644
> --- a/arch/arm/boot/dts/bcm53015-meraki-mr26.dts
> +++ b/arch/arm/boot/dts/bcm53015-meraki-mr26.dts
> @@ -115,14 +115,11 @@ &srab {
>
> ports {
> port@0 {
> - reg = <0>;
> label = "poe";
> };
>
> port@5 {
> - reg = <5>;
> label = "cpu";
> - ethernet = <&gmac0>;
>
> fixed-link {
> speed = <1000>;
> diff --git a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
> index 46c2c93b01d8..559d6c371d67 100644
> --- a/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
> +++ b/arch/arm/boot/dts/bcm53016-meraki-mr32.dts
> @@ -176,14 +176,11 @@ &srab {
>
> ports {
> port@0 {
> - reg = <0>;
> label = "poe";
> };
>
> port@5 {
> - reg = <5>;
> label = "cpu";
> - ethernet = <&gmac0>;
>
> fixed-link {
> speed = <1000>;
next prev parent reply other threads:[~2023-06-07 19:37 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-06-05 13:21 [PATCH] ARM: dts: BCM5301X: Describe switch ports in the main DTS Rafał Miłecki
2023-06-07 19:37 ` Christian Lamparter [this message]
2023-06-08 22:05 ` Florian Fainelli
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=785c76d5-bfe2-3491-45d1-e78efd750e6a@gmail.com \
--to=chunkeey@gmail.com \
--cc=bcm-kernel-feedback-list@broadcom.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=f.fainelli@gmail.com \
--cc=hauke@hauke-m.de \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=rafal@milecki.pl \
--cc=robh+dt@kernel.org \
--cc=zajec5@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).