arm/dts/aspeed: Add minimal Facebook CMM BMC board based on AST2500
Subsystems (3)
PATCH v2 1/1 arm/dts/aspeed: Add minimal Facebook CMM BMC board based on AST2500
Minimal device tree for CMM bmc board to boot into a console over UART with some drivers functional.
---
Rebased patch on the openbmc github dev-4.7 branch
v2:
Removed commented out eeprom
Removed of_machine_is_compatible for LPC/UART config checkpatch whitespace fixup
arch/arm/boot/dts/Makefile | 1 + .../dts/aspeed-bmc-facebook-cmm-flash-layout.dtsi | 24 +++++ arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 104 +++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-cmm-flash-layout.dtsi create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -895,6 +895,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-firestone.dtb \ aspeed-bmc-opp-garrison.dtb \ aspeed-bmc-opp-witherspoon.dtb \ + aspeed-bmc-facebook-cmm.dtb \ aspeed-ast2500-evb.dtb endif
arch/arm/boot/dts/aspeed-bmc-facebook-cmm-flash-layout.dtsi new file +24 -0
@@ -0,0 +1,24 @@ +/* This file is the label for the bmc primary flash and its partitions */ + label = "bmc"; + #address-cells = < 1 >; + #size-cells = < 1 >; + u-boot { + reg = < 0 0x80000 >; + label = "u-boot"; + }; + u-boot-env { + reg = < 0x60000 0x20000 >; + label = "u-boot-env"; + }; + kernel { + reg = < 0x80000 0x280000 >; + label = "kernel"; + }; + initramfs { + reg = < 0x300000 0x300000 >; + label = "initramfs"; + }; + pd_rootfs { + reg = < 0x4c0000 0x1740000 >; + label = "pd_rootfs"; + };
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +104 -0
104 lines not on this page · raw message
Signature · 1 line
2.8.0.rc2
Joel Stanley
maintainerQuoted 1 line · Matthew Conolly
Minimal device tree for CMM bmc board to boot into a console over UART with some drivers functional.
Nice. There are a few updates you will need for 4.7.
Quoted 84 lines
Signed-off-by Matthew Conolly <[email protected]>---
Rebased patch on the openbmc github dev-4.7 branch
v2:
Removed commented out eeprom
Removedof_machine_is_compatiblefor LPC/UART config checkpatch whitespace fixuparch/arm/boot/dts/Makefile | 1 + .../dts/aspeed-bmc-facebook-cmm-flash-layout.dtsi | 24 +++++ arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 104 +++++++++++++++++++++ 3 files changed, 129 insertions(+) create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-cmm-flash-layout.dtsi create mode 100644 arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dtsarch/arm/boot/dts/Makefile +1
-0@@ -895,6 +895,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-firestone.dtb \ aspeed-bmc-opp-garrison.dtb \ aspeed-bmc-opp-witherspoon.dtb \ + aspeed-bmc-facebook-cmm.dtb \ aspeed-ast2500-evb.dtb endifarch/arm/boot/dts/aspeed-bmc-facebook-cmm-flash-layout.dtsi new file +24
-0@@ -0,0 +1,24 @@ +/* This file is the label for the bmc primary flash and its partitions */ + label = "bmc"; + #address-cells = < 1 >; + #size-cells = < 1 >; + u-boot { + reg = < 0 0x80000 >; + label = "u-boot"; + }; + u-boot-env { + reg = < 0x60000 0x20000 >; + label = "u-boot-env"; + }; + kernel { + reg = < 0x80000 0x280000 >; + label = "kernel"; + }; + initramfs { + reg = < 0x300000 0x300000 >; + label = "initramfs"; + }; + pd_rootfs { + reg = < 0x4c0000 0x1740000 >; + label = "pd_rootfs"; + };arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +18
-0@@ -0,0 +1,104 @@ +/dts-v1/; + +#include "aspeed-g5.dtsi" + +/ { + model = "FACEBOOK CMM BMC"; + compatible = "facebook,cmm-bmc", "aspeed,ast2500"; + + aliases { + serial1 = &uart1; + }; + + chosen { + stdout-path = &uart1; + bootargs = "console=ttyS1,115200 earlyprintk"; + }; + + memory {
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts line 28
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +10
-0+ reg = <0x80000000 0x3f000000>; + }; + + ahb { + bmc_pnor: fmc@1e620000 { + reg = < 0x1e620000 0x94 + 0x20000000 0x02000000 >; + #address-cells = <1>; + #size-cells = <0>; + compatible = "aspeed,fmc";
The compatible string is now aspeed,ast2400-fmc.
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts line 40
Quoted 12 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +12
-0+ flash@0 { + reg = < 0 >; + compatible = "jedec,spi-nor" ; +#include "aspeed-bmc-facebook-cmm-flash-layout.dtsi" + }; + }; + }; +}; + +&uart1 { + status = "okay"; +};
We might need some kind of pinmux configuration for uart1. Andrew?
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts line 44
Quoted 4 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +4
-0+ +&mac0 { + status = "disabled"; +};
Everything defaults to disabled, so you should be able to omit this.
Quoted 67 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +60
-1+ +&mac1 { + 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"; +}; + +&i2c11 { + status = "okay"; +}; + +&i2c12 { + status = "okay"; +}; + +&i2c13 { + status = "okay"; +}; --2.8.0.rc2
_______________________________________________
openbmc mailing list
[email protected]
https://lists.ozlabs.org/listinfo/openbmc
Quoted 103 lines · Joel Stanley
Quoted 2 lines · Matthew Conolly
Minimal device tree for CMM bmc board to boot into a console over UART with some drivers functional.
Nice. There are a few updates you will need for 4.7.
Quoted 85 lines
Signed-off-by Matthew Conolly <[email protected]>---
Rebased patch on the openbmc github dev-4.7 branch
v2:
Removed commented out eeprom
Removedof_machine_is_compatiblefor LPC/UART config checkpatch whitespace fixuparch/arm/boot/dts/Makefile | 1 + .../dts/aspeed-bmc-facebook-cmm-flash-layout.dtsi | 24 +++++ arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts | 104 +++++++++++++++++++++
3 files changed, 129 insertions(+)create mode 100644
arch/arm/boot/dts/aspeed-bmc-facebook-cmm-flash-layout.dtsicreate mode 100644arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dtsarch/arm/boot/dts/Makefile +1
-0@@ -895,6 +895,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-firestone.dtb \ aspeed-bmc-opp-garrison.dtb \ aspeed-bmc-opp-witherspoon.dtb \ + aspeed-bmc-facebook-cmm.dtb \aspeed-ast2500-evb.dtb
endifarch/arm/boot/dts/aspeed-bmc-facebook-cmm-flash-layout.dtsi new file +24
-0@@ -0,0 +1,24 @@ +/* This file is the label for the bmc primary flash and its partitions */ + label = "bmc"; + #address-cells = < 1 >; + #size-cells = < 1 >; + u-boot { + reg = < 0 0x80000 >; + label = "u-boot"; + }; + u-boot-env { + reg = < 0x60000 0x20000 >; + label = "u-boot-env"; + }; + kernel { + reg = < 0x80000 0x280000 >; + label = "kernel"; + }; + initramfs { + reg = < 0x300000 0x300000 >; + label = "initramfs"; + }; + pd_rootfs { + reg = < 0x4c0000 0x1740000 >; + label = "pd_rootfs"; + };arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +18
-0@@ -0,0 +1,104 @@ +/dts-v1/; + +#include "aspeed-g5.dtsi" + +/ { + model = "FACEBOOK CMM BMC"; + compatible = "facebook,cmm-bmc", "aspeed,ast2500"; + + aliases { + serial1 = &uart1; + }; + + chosen { + stdout-path = &uart1; + bootargs = "console=ttyS1,115200 earlyprintk"; + }; + + memory {arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts line 28
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +10
-0+ reg = <0x80000000 0x3f000000>; + }; + + ahb { + bmc_pnor: fmc@1e620000 { + reg = < 0x1e620000 0x94 + 0x20000000 0x02000000 >; + #address-cells = <1>; + #size-cells = <0>; + compatible = "aspeed,fmc";The compatible string is now aspeed,ast2400-fmc.
Quoted 1 line
Quoted 13 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts line 40
Quoted 12 lines
+ flash@0 {
+ reg = < 0 >;
+ compatible = "jedec,spi-nor" ;arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +9
-0+#include "aspeed-bmc-facebook-cmm-flash-layout.dtsi" + }; + }; + }; +}; + +&uart1 { + status = "okay"; +};We might need some kind of pinmux configuration for uart1. Andrew?
Yes, looks like we will need a patch adding the pin/group/function definitions to pinctrl-aspeed-g5.c (GPIOL bank, for reference), and then add the devicetree directives here to request the mux configuration. UART1 is one of the "fun" cases where each signal is enabled by its own unique bit pattern. This case is handled by defining a group and function for each signal and then requesting them individually as required in the devicetree.
Matthew: ping me via IRC (amboar in #openbmc) or email if you have questions on the pinctrl driver. The implementation is... a little hairy, but I like to think most of the hairiness is driven by the hardware design.
Cheers,
Andrew
Quoted 76 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts line 44
Quoted 6 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +4
-0+ +&mac0 { + status = "disabled"; +};Everything defaults to disabled, so you should be able to omit this.
Quoted 68 lines
arch/arm/boot/dts/aspeed-bmc-facebook-cmm.dts new file +60
-1+ +&mac1 { + 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"; +}; + +&i2c11 { + status = "okay"; +}; + +&i2c12 { + status = "okay"; +}; + +&i2c13 { + status = "okay"; +}; --2.8.0.rc2
_______________________________________________
openbmc mailing list
[email protected]
https://lists.ozlabs.org/listinfo/openbmc