ARM: dts: Add Facebook AST2600 BMCs
Subsystems (3)
v2 cover ARM: dts: Add Facebook AST2600 BMCs
From: Tao Ren <[email protected]>
The patch series introuces 3 new BMC platforms for the Facebook's next generation switch platforms: Cloudripper, Elbert and Fuji.
Patch #1 adds dtsi file to describe the fixed flash layout of 128MB mtd device. The flash layout is used by all the 3 AST2600 BMC as well as Wedge400 (AST2500).
Patch #2 simplies Wedge400 dts by including the flash layout dtsi.
Patch #3 adds common dtsi which is included by all the new Facebook AST2600 Network BMC platforms.
Patch #4 adds the device tree for Facebook Cloudripper (AST2600) BMC.
Patch #5 adds the device tree for Facebook Elbert (AST2600) BMC.
Patch #6 adds the device tree for Facebook Fuji (AST2600) BMC.
Tao Ren (6):
ARM: dts: Add Facebook BMC 128MB flash layout
ARM: dts: aspeed: wedge400: Use common flash layout
ARM: dts: aspeed: Common dtsi for Facebook AST2600 Network BMCs
ARM: dts: aspeed: Add Facebook Cloudripper (AST2600) BMC
ARM: dts: aspeed: Add Facebook Elbert (AST2600) BMC
ARM: dts: aspeed: Add Facebook Fuji (AST2600) BMC
arch/arm/boot/dts/Makefile | 3 + .../dts/aspeed-bmc-facebook-cloudripper.dts | 539 +++++++ .../boot/dts/aspeed-bmc-facebook-elbert.dts | 185 +++ .../arm/boot/dts/aspeed-bmc-facebook-fuji.dts | 1251 +++++++++++++++++ .../boot/dts/aspeed-bmc-facebook-wedge400.dts | 48 +- .../dts/ast2600-facebook-netbmc-common.dtsi | 169 +++ .../dts/facebook-bmc-flash-layout-128.dtsi | 60 + 7 files changed, 2208 insertions(+), 47 deletions(-) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-cloudripper.dts create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-fuji.dts create mode 100644 arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi create mode 100644 arch/arm/boot/dts/facebook-bmc-flash-layout-128.dtsi
Signature · 1 line
2.17.1
PATCH v2 1/6 ARM: dts: Add Facebook BMC 128MB flash layout
From: Tao Ren <[email protected]>
This is the layout used by Facebook BMC systems. It describes the fixed flash layout of a 128MB mtd device.
---
Changes in v2:
- None.
.../dts/facebook-bmc-flash-layout-128.dtsi | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 arch/arm/boot/dts/facebook-bmc-flash-layout-128.dtsi
arch/arm/boot/dts/facebook-bmc-flash-layout-128.dtsi new file +60 -0
@@ -0,0 +1,60 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2020 Facebook Inc. + +partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + /* + * u-boot partition: 896KB. + */ + u-boot at 0 { + reg = <0x0 0xe0000>; + label = "u-boot"; + }; + + /* + * u-boot environment variables: 64KB. + */ + u-boot-env at e0000 { + reg = <0xe0000 0x10000>; + label = "env"; + }; + + /* + * image metadata partition (64KB), used by Facebook internal + * tools. + */ + image-meta at f0000 { + reg = <0xf0000 0x10000>; + label = "meta"; + }; + + /* + * FIT image: 119 MB. + */ + fit at 100000 { + reg = <0x100000 0x7700000>; + label = "fit"; + }; + + /* + * "data0" partition (8MB) is used by Facebook BMC platforms as + * persistent data store. + */ + data0 at 7800000 { + reg = <0x7800000 0x800000>; + label = "data0"; + }; + + /* + * Although the master partition can be created by enabling + * MTD_PARTITIONED_MASTER option, below "flash0" partition is + * explicitly created to avoid breaking legacy applications. + */ + flash0 at 0 { + reg = <0x0 0x8000000>; + label = "flash0"; + }; +};
Signature · 1 line
2.17.1
PATCH v2 2/6 ARM: dts: aspeed: wedge400: Use common flash layout
In reply to [email protected]From: Tao Ren <[email protected]>
Simplify wedge400 flash layout by using the common layout defined in "facebook-bmc-flash-layout-128.dtsi".
---
Changes in v2:
- None.
.../boot/dts/aspeed-bmc-facebook-wedge400.dts | 48 +------------------ 1 file changed, 1 insertion(+), 47 deletions(-)
arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts +1 -47
@@ -91,53 +91,7 @@ * Both firmware flashes are 128MB on Wedge400 BMC. */ &fmc_flash0 { - partitions { - compatible = "fixed-partitions"; - #address-cells = <1>; - #size-cells = <1>; - - /* - * u-boot partition: 384KB. - */ - u-boot at 0 { - reg = <0x0 0x60000>; - label = "u-boot"; - }; - - /* - * u-boot environment variables: 128KB. - */ - u-boot-env at 60000 { - reg = <0x60000 0x20000>; - label = "env"; - }; - - /* - * FIT image: 123.5 MB. - */ - fit at 80000 { - reg = <0x80000 0x7b80000>; - label = "fit"; - }; - - /* - * "data0" partition (4MB) is reserved for persistent - * data store. - */ - data0 at 7c00000 { - reg = <0x7c00000 0x400000>; - label = "data0"; - }; - - /* - * "flash0" partition (covering the entire flash) is - * explicitly created to avoid breaking legacy applications. - */ - flash0 at 0 { - reg = <0x0 0x8000000>; - label = "flash0"; - }; - }; +#include "facebook-bmc-flash-layout-128.dtsi" }; &fmc_flash1 {
Signature · 1 line
2.17.1
PATCH v2 3/6 ARM: dts: aspeed: Common dtsi for Facebook AST2600 Network BMCs
In reply to [email protected]From: Tao Ren <[email protected]>
This common descirption is included by all Facebook AST2600 Network BMC platforms to minimize duplicated device entries across Facebook Network BMC device trees.
---
Changes in v2:
- "mac3" is removed from the dtsi (moved to platform dts files).
.../dts/ast2600-facebook-netbmc-common.dtsi | 169 ++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +169 -0
@@ -0,0 +1,169 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2020 Facebook Inc. + +#include "aspeed-g6.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> + +/ { + aliases { + mmc0 = &emmc; + spi1 = &spi1; + spi2 = &spi_gpio; + }; + + chosen { + bootargs = "console=ttyS0,9600n8 root=/dev/ram rw vmalloc=640M"; + }; + + memory at 80000000 { + device_type = "memory"; + reg = <0x80000000 0x80000000>; + }; + + /* + * GPIO-based SPI Master is required to access SPI TPM, because + * full-duplex SPI transactions are not supported by ASPEED SPI + * Controllers. + */ + spi_gpio: spi-gpio { + status = "okay"; + compatible = "spi-gpio"; + #address-cells = <1>; + #size-cells = <0>; + + gpio-sck = <&gpio0 ASPEED_GPIO(X, 3) GPIO_ACTIVE_HIGH>; + gpio-mosi = <&gpio0 ASPEED_GPIO(X, 4) GPIO_ACTIVE_HIGH>; + gpio-miso = <&gpio0 ASPEED_GPIO(X, 5) GPIO_ACTIVE_HIGH>; + + tpmdev at 0 { + compatible = "tcg,tpm_tis-spi"; + spi-max-frequency = <33000000>; + reg = <0>; + }; + }; +}; + +&fmc { + status = "okay"; + + flash at 0 { + status = "okay"; + m25p,fast-read; + label = "spi0.0"; + +#include "facebook-bmc-flash-layout-128.dtsi" + }; + + flash at 1 { + status = "okay"; + m25p,fast-read; + label = "spi0.1"; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + flash1 at 0 { + reg = <0x0 0x8000000>; + label = "flash1"; + }; + }; + }; +}; + +&spi1 { + status = "okay"; +}; + +&uart1 { + status = "okay"; +}; + +&uart2 { + status = "okay"; +}; + +&uart5 { + status = "okay"; +}; + +&wdt1 { + status = "okay"; +}; + +&i2c0 { + status = "okay"; +}; + +&i2c1 { + status = "okay"; +}; + +&i2c2 { + status = "okay"; +}; + +&i2c3 { + status = "okay"; +}; + +&i2c4 { + status = "okay"; +}; + +&i2c5 { + status = "okay"; +}; + +&i2c6 { + status = "okay"; +}; + +&i2c7 { + status = "okay"; +}; + +&i2c8 { + status = "okay"; +}; + +&i2c9 { + status = "okay"; +}; + +&i2c10 { + status = "okay"; +}; + +&i2c12 { + status = "okay"; +}; + +&i2c13 { + status = "okay"; +}; + +&i2c15 { + status = "okay"; +}; + +&vhub { + status = "okay"; +}; + +&emmc_controller { + status = "okay"; +}; + +&emmc { + status = "okay"; + + non-removable; + max-frequency = <25000000>; + bus-width = <4>; +}; + +&rtc { + status = "okay"; +};
Signature · 1 line
2.17.1
Re: [PATCH v2 3/6] ARM: dts: aspeed: Common dtsi for Facebook AST2600 Network BMCs
Quoted 3 lines · rentao.bupt at gmail.com
This common descirption is included by all Facebook AST2600 Network BMC platforms to minimize duplicated device entries across Facebook Network BMC device trees.
[...]
Quoted 2 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +0
-0
[...]
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi line 39
Quoted 2 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +2
-0+ tpmdev at 0 { + compatible = "tcg,tpm_tis-spi";
What's the chip used on this board? Going forward, the DT schema for TPMs requires the exact chip name in addition to the generic "tcg,tpm_tis-spi".
Quoted 3 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +3
-0+ spi-max-frequency = <33000000>; + reg = <0>; + };
Re: [PATCH v2 3/6] ARM: dts: aspeed: Common dtsi for Facebook AST2600 Network BMCs
Hi Lukas,
Quoted 5 lines · Lukas Wunner
Quoted 3 lines · rentao.bupt at gmail.com
This common descirption is included by all Facebook AST2600 Network BMC platforms to minimize duplicated device entries across Facebook Network BMC device trees.
[...]
Quoted 8 lines
Quoted 2 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +0
-0[...]
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi line 39
Quoted 2 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +2
-0+ tpmdev at 0 { + compatible = "tcg,tpm_tis-spi";What's the chip used on this board? Going forward, the DT schema for TPMs requires the exact chip name in addition to the generic "tcg,tpm_tis-spi".
Sorry about the late response. It's "infineon,slb9670", and I will submit a patch for fix it soon.
Cheers,
- Tao
Re: [PATCH v2 3/6] ARM: dts: aspeed: Common dtsi for Facebook AST2600 Network BMCs
Quoted 9 lines · Tao Ren
Quoted 8 lines · Lukas Wunner
Quoted 3 lines · rentao.bupt at gmail.com
This common descirption is included by all Facebook AST2600 Network BMC platforms to minimize duplicated device entries across Facebook Network BMC device trees.
[...]
Quoted 2 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +0
-0[...]
Quoted 8 lines
Quoted 5 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi line 39
Quoted 2 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +2
-0+ tpmdev at 0 { + compatible = "tcg,tpm_tis-spi";What's the chip used on this board? Going forward, the DT schema for TPMs requires the exact chip name in addition to the generic "tcg,tpm_tis-spi".
Sorry about the late response. It's "infineon,slb9670", and I will submit a patch for fix it soon.
Thank you Tao and Patrick for the replies. I've prepared two commits to fix all violations of the TPM schema on this branch:
https://github.com/l1k/linux/commits/tpm-dt3
The commits are named:
e95bdbc arm64: dts: Fix TPM schema violations
63e5dfd ARM: dts: Fix TPM schema violations
I've now amended the ARM commit to use "infineon,slb9670" for:
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-bletchley.dts arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-wedge400.dts arch/arm/boot/dts/aspeed/ast2600-facebook-netbmc-common.dtsi
I intend to submit the two commits once the TPM schema is applied either to Jarkko's or Rob's tree:
https://lore.kernel.org/all/20231220160422.GA282877-robh at kernel.org/
Thanks,
Lukas
Patrick Williams
Reviewed-byRe: [PATCH v2 3/6] ARM: dts: aspeed: Common dtsi for Facebook AST2600 Network BMCs
Quoted 22 lines · Lukas Wunner
Quoted 9 lines · Tao Ren
Quoted 8 lines · Lukas Wunner
Quoted 3 lines · rentao.bupt at gmail.com
This common descirption is included by all Facebook AST2600 Network BMC platforms to minimize duplicated device entries across Facebook Network BMC device trees.
[...]
Quoted 2 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +0
-0[...]
Quoted 8 lines
Quoted 5 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi line 39
Quoted 2 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +2
-0+ tpmdev at 0 { + compatible = "tcg,tpm_tis-spi";What's the chip used on this board? Going forward, the DT schema for TPMs requires the exact chip name in addition to the generic "tcg,tpm_tis-spi".
Sorry about the late response. It's "infineon,slb9670", and I will submit a patch for fix it soon.
Thank you Tao and Patrick for the replies. I've prepared two commits to fix all violations of the TPM schema on this branch:
Quoted 6 lines
https://github.com/l1k/linux/commits/tpm-dt3
The commits are named:
e95bdbc arm64: dts: Fix TPM schema violations
63e5dfd ARM: dts: Fix TPM schema violations
Feel free to add to "63e5dfd (ARM: dts: Fix TPM schema violations)":
Quoted 15 lines
I've now amended the ARM commit to use "infineon,slb9670" for:
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-bletchley.dtsarch/arm/boot/dts/aspeed/aspeed-bmc-facebook-wedge400.dtsarch/arm/boot/dts/aspeed/ast2600-facebook-netbmc-common.dtsiI intend to submit the two commits once the TPM schema is applied either to Jarkko's or Rob's tree:
https://lore.kernel.org/all/20231220160422.GA282877-robh at kernel.org/
Thanks,
Lukas
Signature · 8 lines
Patrick Williams -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 833 bytes Desc: not available URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20240103/27f5a874/attachment-0001.sig>
Tao Ren
Reviewed-byRe: [PATCH v2 3/6] ARM: dts: aspeed: Common dtsi for Facebook AST2600 Network BMCs
In reply to Lukas WunnerHi Lukas,
Quoted 35 lines · Lukas Wunner
Quoted 9 lines · Tao Ren
Quoted 8 lines · Lukas Wunner
Quoted 3 lines · rentao.bupt at gmail.com
This common descirption is included by all Facebook AST2600 Network BMC platforms to minimize duplicated device entries across Facebook Network BMC device trees.
[...]
Quoted 2 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +0
-0[...]
Quoted 8 lines
Quoted 5 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi line 39
Quoted 2 lines
arch/arm/boot/dts/ast2600-facebook-netbmc-common.dtsi new file +2
-0+ tpmdev at 0 { + compatible = "tcg,tpm_tis-spi";What's the chip used on this board? Going forward, the DT schema for TPMs requires the exact chip name in addition to the generic "tcg,tpm_tis-spi".
Sorry about the late response. It's "infineon,slb9670", and I will submit a patch for fix it soon.
Thank you Tao and Patrick for the replies. I've prepared two commits to fix all violations of the TPM schema on this branch:
https://github.com/l1k/linux/commits/tpm-dt3
The commits are named:
e95bdbc arm64: dts: Fix TPM schema violations
63e5dfd ARM: dts: Fix TPM schema violationsI've now amended the ARM commit to use "infineon,slb9670" for:
arch/arm/boot/dts/aspeed/aspeed-bmc-facebook-bletchley.dtsarch/arm/boot/dts/aspeed/aspeed-bmc-facebook-wedge400.dtsarch/arm/boot/dts/aspeed/ast2600-facebook-netbmc-common.dtsi
Quoted 8 lines
I intend to submit the two commits once the TPM schema is applied either to Jarkko's or Rob's tree:
https://lore.kernel.org/all/20231220160422.GA282877-robh at kernel.org/
Thanks,
Lukas
I've confirmed it's "infineon,slb9670" for both wedge400 and ast2600-facebook-netbmc-common.
Pleasr free to add to "63e5dfd (ARM: dts: Fix TPM schema violations)":
Cheers,
- Tao
PATCH v2 4/6 ARM: dts: aspeed: Add Facebook Cloudripper (AST2600) BMC
In reply to [email protected]From: Tao Ren <[email protected]>
Add initial version of device tree for Facebook Cloudripper (AST2600) BMC.
Cloudripper is Facebook's next generation switch platform with an AST2600 BMC integrated for health monitoring purpose.
---
Changes in v2:
- added more notes about the new platform in patch description.
- "spi1" was removed as the driver is not ready.
- "mac3" properties were updated with pinctrl, and etc.
arch/arm/boot/dts/Makefile | 1 + .../dts/aspeed-bmc-facebook-cloudripper.dts | 539 ++++++++++++++++++ 2 files changed, 540 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-cloudripper.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -1409,6 +1409,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-arm-stardragon4800-rep2.dtb \ aspeed-bmc-asrock-e3c246d4i.dtb \ aspeed-bmc-bytedance-g220a.dtb \ + aspeed-bmc-facebook-cloudripper.dtb \ aspeed-bmc-facebook-cmm.dtb \ aspeed-bmc-facebook-galaxy100.dtb \ aspeed-bmc-facebook-minipack.dtb \
arch/arm/boot/dts/aspeed-bmc-facebook-cloudripper.dts new file +539 -0
539 lines not on this page · raw message
Signature · 1 line
2.17.1
Joel Stanley
maintainerRe: [PATCH v2 4/6] ARM: dts: aspeed: Add Facebook Cloudripper (AST2600) BMC
Quoted 2 lines · On Thu, 5 Aug 2021 at 22:28, <[email protected]> wrote:
+&mdio1 {
+ status = "okay";
You're enabling this but it looks like it's unused?
Quoted 18 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cloudripper.dts new file +18
-0+}; + +&mdio3 { + status = "okay"; + + ethphy1: ethernet-phy at 13 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0x0d>; + }; +}; + +&mac3 { + status = "okay"; + phy-mode = "rgmii"; + phy-handle = <ðphy1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rgmii4_default>; +};
Re: [PATCH v2 4/6] ARM: dts: aspeed: Add Facebook Cloudripper (AST2600) BMC
Quoted 5 lines · Joel Stanley
Quoted 2 lines · On Thu, 5 Aug 2021 at 22:28, <[email protected]> wrote:
+&mdio1 {
+ status = "okay";You're enabling this but it looks like it's unused?
Thanks Joel for the careful review. The MDIO controller is not paired with BMC MAC; instead, it's connected to the MDC/MDIO interface of the on-board switch (whose ports are connected to BMC, Host and front panel management port).
In other word, the MDIO controller is used, but we do need some user space scripts to control the controller. What's your suggestion? For example, should I add some comments to explain the purpose?
Cheers,
Tao
Quoted 19 lines
Quoted 19 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cloudripper.dts new file +18
-0+}; + +&mdio3 { + status = "okay"; + + ethphy1: ethernet-phy at 13 { + compatible = "ethernet-phy-ieee802.3-c22"; + reg = <0x0d>; + }; +}; + +&mac3 { + status = "okay"; + phy-mode = "rgmii"; + phy-handle = <ðphy1>; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rgmii4_default>; +};
Joel Stanley
maintainerRe: [PATCH v2 4/6] ARM: dts: aspeed: Add Facebook Cloudripper (AST2600) BMC
Quoted 6 lines · Tao Ren
Quoted 4 lines · Joel Stanley
Quoted 2 lines · On Thu, 5 Aug 2021 at 22:28, <[email protected]> wrote:
+&mdio1 {
+ status = "okay";
Quoted 6 lines
Quoted 1 line
You're enabling this but it looks like it's unused?
Thanks Joel for the careful review. The MDIO controller is not paired with BMC MAC; instead, it's connected to the MDC/MDIO interface of the on-board switch (whose ports are connected to BMC, Host and front panel management port).
I see!
Quoted 4 lines
In other word, the MDIO controller is used, but we do need some user space scripts to control the controller. What's your suggestion? For example, should I add some comments to explain the purpose?
Yes, that would make sense.
I've applied your patch, so if you want to add comments please send a diff against this tree:
https://git.kernel.org/pub/scm/linux/kernel/git/joel/bmc.git/log/?h=dt-for-v5.15
Re: [PATCH v2 4/6] ARM: dts: aspeed: Add Facebook Cloudripper (AST2600) BMC
In reply to Tao RenQuoted 11 lines · Tao Ren
Quoted 5 lines · Joel Stanley
Quoted 2 lines · On Thu, 5 Aug 2021 at 22:28, <[email protected]> wrote:
+&mdio1 {
+ status = "okay";You're enabling this but it looks like it's unused?
Thanks Joel for the careful review. The MDIO controller is not paired with BMC MAC; instead, it's connected to the MDC/MDIO interface of the on-board switch (whose ports are connected to BMC, Host and front panel management port).
What switch is it? Is there a DSA driver for it? drivers/net/dsa/* Ideally you want Linux to be controlling the switch, in the standard linux way.
Andrew
Re: [PATCH v2 4/6] ARM: dts: aspeed: Add Facebook Cloudripper (AST2600) BMC
Hi Andrew,
Quoted 13 lines · Andrew Lunn
Quoted 11 lines · Tao Ren
Quoted 5 lines · Joel Stanley
Quoted 2 lines · On Thu, 5 Aug 2021 at 22:28, <[email protected]> wrote:
+&mdio1 {
+ status = "okay";You're enabling this but it looks like it's unused?
Thanks Joel for the careful review. The MDIO controller is not paired with BMC MAC; instead, it's connected to the MDC/MDIO interface of the on-board switch (whose ports are connected to BMC, Host and front panel management port).
Quoted 5 lines
What switch is it? Is there a DSA driver for it?
drivers/net/dsa/*Ideally you want Linux to be controlling the switch, in the standard linux way.Andrew
Thanks for jumping in. We are using BCM5389 and the MDIO bus is used to access BCM5389 MDC/MDIO interface in Pseudo-PHY mode.
I didn't know drivers/net/dsa, but let me check out the drivers and see if it works in the Cloudripper environment.
Thanks,
Tao
Re: [PATCH v2 4/6] ARM: dts: aspeed: Add Facebook Cloudripper (AST2600) BMC
Quoted 5 lines
Thanks for jumping in. We are using BCM5389 and the MDIO bus is used to access BCM5389 MDC/MDIO interface in Pseudo-PHY mode.
I didn't know
drivers/net/dsa, but let me check out the drivers and see if it works in the Cloudripper environment.
The b53 driver knows about this switch, so please make use of that driver. See Documentation/devicetree/bindings/net/dsa/brcm,b53.yaml for how you describe it in DT.
Andrew
Re: [PATCH v2 4/6] ARM: dts: aspeed: Add Facebook Cloudripper (AST2600) BMC
Quoted 11 lines · Andrew Lunn
Quoted 5 lines
Thanks for jumping in. We are using BCM5389 and the MDIO bus is used to access BCM5389 MDC/MDIO interface in Pseudo-PHY mode.
I didn't know
drivers/net/dsa, but let me check out the drivers and see if it works in the Cloudripper environment.The b53 driver knows about this switch, so please make use of that driver. See
Documentation/devicetree/bindings/net/dsa/brcm,b53.yamlfor how you describe it in DT.Andrew
Thank you Andrew for looking into it. I will update dts and send out followup patch after validation (perhaps after v5.15 merge window).
Thanks,
Tao
PATCH v2 5/6 ARM: dts: aspeed: Add Facebook Elbert (AST2600) BMC
In reply to [email protected]From: Tao Ren <[email protected]>
Add initial version of device tree for Facebook Elbert (AST2600) BMC.
Elbert is Facebook's next generation switch platform with an AST2600 BMC integrated for health monitoring purpose.
---
Changes in v2:
- added more notes about the new platform in patch description.
- "mac3" was disabled (because it was removed from Facebook AST2600 NetBMC common dtsi). Will add "mac3" back when "fixed-link" is supported in the MAC driver.
arch/arm/boot/dts/Makefile | 1 + .../boot/dts/aspeed-bmc-facebook-elbert.dts | 185 ++++++++++++++++++ 2 files changed, 186 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -1411,6 +1411,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-bytedance-g220a.dtb \ aspeed-bmc-facebook-cloudripper.dtb \ aspeed-bmc-facebook-cmm.dtb \ + aspeed-bmc-facebook-elbert.dtb \ aspeed-bmc-facebook-galaxy100.dtb \ aspeed-bmc-facebook-minipack.dtb \ aspeed-bmc-facebook-tiogapass.dtb \
arch/arm/boot/dts/aspeed-bmc-facebook-elbert.dts new file +185 -0
185 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH v2 6/6 ARM: dts: aspeed: Add Facebook Fuji (AST2600) BMC
In reply to [email protected]From: Tao Ren <[email protected]>
Add initial version of device tree for Facebook Fuji (AST2600) BMC.
Fuji is Facebook's next generation switch platform with an AST2600 BMC integrated for health monitoring purpose.
---
Changes in v2:
- added more notes about the new platform in patch description.
- "spi1" was removed as the driver is not ready.
- "mac3" properties were updated with pinctrl, and etc.
arch/arm/boot/dts/Makefile | 1 + .../arm/boot/dts/aspeed-bmc-facebook-fuji.dts | 1251 +++++++++++++++++ 2 files changed, 1252 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-fuji.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -1412,6 +1412,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-facebook-cloudripper.dtb \ aspeed-bmc-facebook-cmm.dtb \ aspeed-bmc-facebook-elbert.dtb \ + aspeed-bmc-facebook-fuji.dtb \ aspeed-bmc-facebook-galaxy100.dtb \ aspeed-bmc-facebook-minipack.dtb \ aspeed-bmc-facebook-tiogapass.dtb \
arch/arm/boot/dts/aspeed-bmc-facebook-fuji.dts new file +1251 -0
1,251 lines not on this page · raw message
Signature · 1 line
2.17.1