ARM: dts: aspeed: Add Facebook Galaxy100 BMC
Subsystems (3)
cover ARM: dts: aspeed: Add Facebook Galaxy100 BMC
From: Tao Ren <[email protected]>
The patch series adds the initial version of device tree for Facebook Galaxy100 (AST2400) BMC.
Patch #1 adds common dtsi to minimize duplicated device entries across Facebook Network AST2400 BMC device trees.
Patch #2 simplfies Wedge40 device tree by using the common dtsi.
Patch #3 simplfies Wedge100 device tree by using the common dtsi.
Patch #4 adds the initial version of device tree for Facebook Galaxy100 BMC.
Tao Ren (4):
ARM: dts: aspeed: Common dtsi for Facebook AST2400 Network BMCs
ARM: dts: aspeed: wedge40: Use common dtsi
ARM: dts: aspeed: wedge100: Use common dtsi
ARM: dts: aspeed: Add Facebook Galaxy100 (AST2400) BMC
arch/arm/boot/dts/Makefile | 1 + .../dts/aspeed-bmc-facebook-galaxy100.dts | 57 +++++++++ .../boot/dts/aspeed-bmc-facebook-wedge100.dts | 120 +++--------------- .../boot/dts/aspeed-bmc-facebook-wedge40.dts | 112 +--------------- .../dts/ast2400-facebook-netbmc-common.dtsi | 117 +++++++++++++++++ 5 files changed, 191 insertions(+), 216 deletions(-) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts create mode 100644 arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi
Signature · 1 line
2.17.1
PATCH 1/4 ARM: dts: aspeed: Common dtsi for Facebook AST2400 Network BMCs
From: Tao Ren <[email protected]>
This common descirption is included by all Facebook AST2400 Network BMC platforms to minimize duplicated device entries across Facebook Network BMC device trees.
--- .../dts/ast2400-facebook-netbmc-common.dtsi | 117 ++++++++++++++++++ 1 file changed, 117 insertions(+) create mode 100644 arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi
arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi new file +117 -0
@@ -0,0 +1,117 @@ +// SPDX-License-Identifier: GPL-2.0+ +// Copyright (c) 2020 Facebook Inc. +/dts-v1/; + +#include "aspeed-g4.dtsi" + +/ { + aliases { + /* + * Override the default uart aliases to avoid breaking + * the legacy applications. + */ + serial0 = &uart5; + serial1 = &uart1; + serial2 = &uart3; + serial3 = &uart4; + }; + + memory at 40000000 { + reg = <0x40000000 0x20000000>; + }; +}; + +&wdt1 { + status = "okay"; + aspeed,reset-type = "system"; +}; + +&fmc { + status = "okay"; + flash at 0 { + status = "okay"; + m25p,fast-read; + label = "spi0.0"; +#include "facebook-bmc-flash-layout.dtsi" + }; +}; + +&uart1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_txd1_default + &pinctrl_rxd1_default>; +}; + +&uart3 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_txd3_default + &pinctrl_rxd3_default>; +}; + +&uart4 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_txd4_default + &pinctrl_rxd4_default + &pinctrl_ndts4_default>; +}; + +&uart5 { + status = "okay"; +}; + +&mac1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>; +}; + +&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"; +}; + +&i2c11 { + status = "okay"; +}; + +&i2c12 { + status = "okay"; +}; + +&vhub { + status = "okay"; +};
Signature · 1 line
2.17.1
PATCH 2/4 ARM: dts: aspeed: wedge40: Use common dtsi
In reply to [email protected]From: Tao Ren <[email protected]>
Simplify the Wedge40 device tree by using the common dtsi.
--- .../boot/dts/aspeed-bmc-facebook-wedge40.dts | 112 +----------------- 1 file changed, 1 insertion(+), 111 deletions(-)
arch/arm/boot/dts/aspeed-bmc-facebook-wedge40.dts +1 -111
@@ -2,137 +2,27 @@ // Copyright (c) 2018 Facebook Inc. /dts-v1/; -#include "aspeed-g4.dtsi" +#include "ast2400-facebook-netbmc-common.dtsi" / { model = "Facebook Wedge 40 BMC"; compatible = "facebook,wedge40-bmc", "aspeed,ast2400"; - aliases { - /* - * Override the default uart aliases to avoid breaking - * the legacy applications. - */ - serial0 = &uart5; - serial1 = &uart1; - serial2 = &uart3; - serial3 = &uart4; - }; - chosen { stdout-path = &uart3; bootargs = "console=ttyS2,9600n8 root=/dev/ram rw"; }; - memory at 40000000 { - reg = <0x40000000 0x20000000>; - }; - ast-adc-hwmon { compatible = "iio-hwmon"; io-channels = <&adc 5>, <&adc 6>, <&adc 7>, <&adc 8>, <&adc 9>; }; }; -&wdt1 { - status = "okay"; - aspeed,reset-type = "system"; -}; - &wdt2 { status = "disabled"; }; -&fmc { - status = "okay"; - flash at 0 { - status = "okay"; - m25p,fast-read; - label = "spi0.0"; -#include "facebook-bmc-flash-layout.dtsi" - }; -}; - -&uart1 { - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_txd1_default - &pinctrl_rxd1_default>; -}; - -&uart3 { - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_txd3_default - &pinctrl_rxd3_default>; -}; - -&uart4 { - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_txd4_default - &pinctrl_rxd4_default - &pinctrl_ndts4_default>; -}; - -&uart5 { - status = "okay"; -}; - -&mac1 { - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>; -}; - -&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"; -}; - -&i2c11 { - status = "okay"; -}; - -&i2c12 { - status = "okay"; -}; - -&vhub { - status = "okay"; -}; - &adc { status = "okay"; };
Signature · 1 line
2.17.1
PATCH 3/4 ARM: dts: aspeed: wedge100: Use common dtsi
In reply to [email protected]From: Tao Ren <[email protected]>
Simplify the Wedge100 device tree by using the common dtsi.
In addition this enables the second firmware flash, and turns on the "i2c-mux-idle-disconnect" flag for I2C switch 7-0070.
--- .../boot/dts/aspeed-bmc-facebook-wedge100.dts | 120 +++--------------- 1 file changed, 15 insertions(+), 105 deletions(-)
arch/arm/boot/dts/aspeed-bmc-facebook-wedge100.dts +15 -105
@@ -2,36 +2,16 @@ // Copyright (c) 2018 Facebook Inc. /dts-v1/; -#include "aspeed-g4.dtsi" +#include "ast2400-facebook-netbmc-common.dtsi" / { model = "Facebook Wedge 100 BMC"; compatible = "facebook,wedge100-bmc", "aspeed,ast2400"; - aliases { - /* - * Override the default uart aliases to avoid breaking - * the legacy applications. - */ - serial0 = &uart5; - serial1 = &uart1; - serial2 = &uart3; - serial3 = &uart4; - }; - chosen { stdout-path = &uart3; bootargs = "console=ttyS2,9600n8 root=/dev/ram rw"; }; - - memory at 40000000 { - reg = <0x40000000 0x20000000>; - }; -}; - -&wdt1 { - status = "okay"; - aspeed,reset-type = "system"; }; &wdt2 {
@@ -40,108 +20,38 @@ }; &fmc { - status = "okay"; - flash at 0 { + flash at 1 { status = "okay"; m25p,fast-read; - label = "fmc0"; -#include "facebook-bmc-flash-layout.dtsi" + label = "spi0.1"; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + flash1 at 0 { + reg = <0x0 0x2000000>; + label = "flash1"; + }; + }; }; }; -&uart1 { - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_txd1_default - &pinctrl_rxd1_default>; -}; - -&uart3 { - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_txd3_default - &pinctrl_rxd3_default>; -}; - -&uart4 { - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_txd4_default - &pinctrl_rxd4_default>; -}; - -&uart5 { - status = "okay"; -}; - -&mac1 { - status = "okay"; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_rgmii2_default &pinctrl_mdio2_default>; -}; - -&i2c0 { - status = "okay"; -}; - -&i2c1 { - status = "okay"; -}; - -&i2c2 { - status = "okay"; -}; - -&i2c3 { - status = "okay"; -}; - -&i2c4 { - status = "okay"; -}; - -&i2c5 { - status = "okay"; -}; - -&i2c6 { - status = "okay"; -}; - &i2c7 { - status = "okay"; - i2c-switch at 70 { compatible = "nxp,pca9548"; #address-cells = <1>; #size-cells = <0>; reg = <0x70>; + i2c-mux-idle-disconnect; }; }; -&i2c8 { - status = "okay"; -}; - &i2c9 { status = "okay"; }; -&i2c10 { - status = "okay"; -}; - -&i2c11 { - status = "okay"; -}; - -&i2c12 { - status = "okay"; -}; - -&i2c13 { - status = "okay"; -}; &vhub { status = "okay";
Signature · 1 line
2.17.1
PATCH 4/4 ARM: dts: aspeed: Add Facebook Galaxy100 (AST2400) BMC
In reply to [email protected]From: Tao Ren <[email protected]>
Add initial version of device tree for Facebook Galaxy100 (AST2400) BMC.
--- arch/arm/boot/dts/Makefile | 1 + .../dts/aspeed-bmc-facebook-galaxy100.dts | 57 +++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -1383,6 +1383,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-arm-stardragon4800-rep2.dtb \ aspeed-bmc-bytedance-g220a.dtb \ aspeed-bmc-facebook-cmm.dtb \ + aspeed-bmc-facebook-galaxy100.dtb \ aspeed-bmc-facebook-minipack.dtb \ aspeed-bmc-facebook-tiogapass.dtb \ aspeed-bmc-facebook-wedge40.dtb \
arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts new file +57 -0
57 lines not on this page · raw message
Signature · 1 line
2.17.1
Quoted 9 lines · On Wed, 11 Nov 2020 at 23:23, <[email protected]> wrote:
From: Tao Ren <[email protected]>
The patch series adds the initial version of device tree for Facebook Galaxy100 (AST2400) BMC.
Patch #1 adds common dtsi to minimize duplicated device entries across Facebook Network AST2400 BMC device trees.
Quoted 6 lines
Patch #2 simplfies Wedge40 device tree by using the common dtsi.
Patch #3 simplfies Wedge100 device tree by using the common dtsi.
Patch #4 adds the initial version of device tree for Facebook Galaxy100 BMC.
Nice. They look good to me.
Is there another person familiar with the design you would like to review before I merge?
Quoted 19 lines
Tao Ren (4):
ARM: dts: aspeed: Common dtsi for Facebook AST2400 Network BMCs
ARM: dts: aspeed: wedge40: Use common dtsi
ARM: dts: aspeed: wedge100: Use common dtsi
ARM: dts: aspeed: Add Facebook Galaxy100 (AST2400) BMCarch/arm/boot/dts/Makefile | 1 + .../dts/aspeed-bmc-facebook-galaxy100.dts | 57 +++++++++ .../boot/dts/aspeed-bmc-facebook-wedge100.dts | 120 +++--------------- .../boot/dts/aspeed-bmc-facebook-wedge40.dts | 112 +--------------- .../dts/ast2400-facebook-netbmc-common.dtsi | 117 +++++++++++++++++ 5 files changed, 191 insertions(+), 216 deletions(-) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-galaxy100.dts create mode 100644 arch/arm/boot/dts/ast2400-facebook-netbmc-common.dtsi--
2.17.1
Quoted 12 lines · Joel Stanley
Quoted 11 lines · On Wed, 11 Nov 2020 at 23:23, <[email protected]> wrote:
From: Tao Ren <[email protected]>
The patch series adds the initial version of device tree for Facebook Galaxy100 (AST2400) BMC.
Patch #1 adds common dtsi to minimize duplicated device entries across Facebook Network AST2400 BMC device trees.
Patch #2 simplfies Wedge40 device tree by using the common dtsi.
Quoted 8 lines
Quoted 4 lines
Patch #3 simplfies Wedge100 device tree by using the common dtsi.
Patch #4 adds the initial version of device tree for Facebook Galaxy100 BMC.
Nice. They look good to me.
Reviewed-by Joel Stanley <[email protected]>
Thanks a lot for the quick review, Joel.
Quoted 2 lines
Is there another person familiar with the design you would like to review before I merge?
Patrick Williams sometimes helps reviewing my patches although he doesn't work on Network BMCs. Let me see if he has bandwidth this time :)
Cheers,
Tao
Patrick Williams
Reviewed-byQuoted 17 lines · Joel Stanley
Quoted 9 lines · On Wed, 11 Nov 2020 at 23:23, <[email protected]> wrote:
From: Tao Ren <[email protected]>
The patch series adds the initial version of device tree for Facebook Galaxy100 (AST2400) BMC.
Patch #1 adds common dtsi to minimize duplicated device entries across Facebook Network AST2400 BMC device trees.
Quoted 6 lines
Patch #2 simplfies Wedge40 device tree by using the common dtsi.
Patch #3 simplfies Wedge100 device tree by using the common dtsi.
Patch #4 adds the initial version of device tree for Facebook Galaxy100 BMC.
Quoted 6 lines
Nice. They look good to me.
Reviewed-by Joel Stanley <[email protected]>Is there another person familiar with the design you would like to review before I merge?
Also,
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/20201111/ef6252c4/attachment.sig>
Quoted 20 lines · Patrick Williams
Quoted 19 lines · Joel Stanley
Quoted 9 lines · On Wed, 11 Nov 2020 at 23:23, <[email protected]> wrote:
From: Tao Ren <[email protected]>
The patch series adds the initial version of device tree for Facebook Galaxy100 (AST2400) BMC.
Patch #1 adds common dtsi to minimize duplicated device entries across Facebook Network AST2400 BMC device trees.
Quoted 6 lines
Patch #2 simplfies Wedge40 device tree by using the common dtsi.
Patch #3 simplfies Wedge100 device tree by using the common dtsi.
Patch #4 adds the initial version of device tree for Facebook Galaxy100 BMC.
Nice. They look good to me.
Quoted 11 lines
Quoted 4 lines
Reviewed-by Joel Stanley <[email protected]>Is there another person familiar with the design you would like to review before I merge?
Also,
Reviewed-by Patrick Williams <[email protected]>Signature · 1 line
Patrick Williams
Thank you Patrick!
Cheers,
Tao
Joel Stanley
maintainerQuoted 21 lines · Patrick Williams
Quoted 19 lines · Joel Stanley
Quoted 9 lines · On Wed, 11 Nov 2020 at 23:23, <[email protected]> wrote:
From: Tao Ren <[email protected]>
The patch series adds the initial version of device tree for Facebook Galaxy100 (AST2400) BMC.
Patch #1 adds common dtsi to minimize duplicated device entries across Facebook Network AST2400 BMC device trees.
Quoted 6 lines
Patch #2 simplfies Wedge40 device tree by using the common dtsi.
Patch #3 simplfies Wedge100 device tree by using the common dtsi.
Patch #4 adds the initial version of device tree for Facebook Galaxy100 BMC.
Nice. They look good to me.
Quoted 8 lines
Quoted 4 lines
Reviewed-by Joel Stanley <[email protected]>Is there another person familiar with the design you would like to review before I merge?
Also,
Reviewed-by Patrick Williams <[email protected]>
Thanks. I have merged them into the aspeed tree for 5.11.
Cheers,
Joel
Quoted 29 lines · Joel Stanley
Quoted 28 lines · Patrick Williams
Quoted 17 lines · Joel Stanley
Quoted 9 lines · On Wed, 11 Nov 2020 at 23:23, <[email protected]> wrote:
From: Tao Ren <[email protected]>
The patch series adds the initial version of device tree for Facebook Galaxy100 (AST2400) BMC.
Patch #1 adds common dtsi to minimize duplicated device entries across Facebook Network AST2400 BMC device trees.
Quoted 6 lines
Patch #2 simplfies Wedge40 device tree by using the common dtsi.
Patch #3 simplfies Wedge100 device tree by using the common dtsi.
Patch #4 adds the initial version of device tree for Facebook Galaxy100 BMC.
Quoted 6 lines
Nice. They look good to me.
Reviewed-by Joel Stanley <[email protected]>Is there another person familiar with the design you would like to review before I merge?
Also,
Quoted 7 lines
Quoted 1 line
Reviewed-by Patrick Williams <[email protected]>Thanks. I have merged them into the aspeed tree for 5.11.
Cheers,
Joel
Thank you Joel.
BTW, I sent out another 2 patches for AST2500 dts earlier this week; not sure if they were successfully delivered; if not, I will resend them earlier next week.
Cheers,
Tao