ARM: dts: aspeed: Add Mihawk BMC platform
Subsystems (3)
PATCH v4 4/4 ARM: dts: aspeed: Add Mihawk BMC platform
The Mihawk BMC is an ASPEED ast2500 based BMC that is part of an OpenPower Power9 server.
--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts | 918 ++++++++++++++++++++ 2 files changed, 919 insertions(+) create mode 100755 arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts
arch/arm/boot/dts/Makefile +1 -0
@@ -1275,6 +1275,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-lenovo-hr630.dtb \ aspeed-bmc-microsoft-olympus.dtb \ aspeed-bmc-opp-lanyang.dtb \ + aspeed-bmc-opp-mihawk.dtb \ aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-romulus.dtb \ aspeed-bmc-opp-swift.dtb \
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +918 -0
918 lines not on this page · raw message
Signature · 8 lines
2.17.1 --------------------------------------------------------------------------------------------------------------------------------------------------------------- This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or distribution of this email or the content of this email is strictly prohibited. If you are not the intended recipient, you may reply to the sender and should delete this e-mail immediately. ---------------------------------------------------------------------------------------------------------------------------------------------------------------
Joel Stanley
maintainerHi Ben,
Quoted 29 lines · Ben Pai
The Mihawk BMC is an ASPEED ast2500 based BMC that is part of an OpenPower Power9 server.
Signed-off-by Ben Pai <[email protected]>--- arch/arm/boot/dts/Makefile | 1 + arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts | 918 ++++++++++++++++++++ 2 files changed, 919 insertions(+) create mode 100755 arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dtsarch/arm/boot/dts/Makefile +1
-0@@ -1275,6 +1275,7 @@ dtb-$(CONFIG_ARCH_ASPEED) += \ aspeed-bmc-lenovo-hr630.dtb \ aspeed-bmc-microsoft-olympus.dtb \ aspeed-bmc-opp-lanyang.dtb \ + aspeed-bmc-opp-mihawk.dtb \ aspeed-bmc-opp-palmetto.dtb \ aspeed-bmc-opp-romulus.dtb \ aspeed-bmc-opp-swift.dtb \arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +0
-0
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts line 1
Quoted 1 line
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +1
-0@@ -0,0 +1,918 @@ +/dts-v1/;
You need to add a SPDX copyright tag, and optionally a copyright line.
When applying this patch a number of whitespace warnings showed up. Please delete trailing whitespace. You can check this with scripts/checkpatch.pl
Is this patch intended for the openbmc tree? If so, we have rules about tagging it for inclusion. You should put the branch name in the subject:
git format-patch --subject-prefix="PATCH linux dev-5.2"
Please see this documentation for guidelines:
https://github.com/openbmc/linux/wiki/SubmittingPatches
The subject is confusing, it says 4/4 but the first three patches are missing. Are there others you intended to send?
Quoted 7 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +7
-0+ +#include "aspeed-g5.dtsi" +#include <dt-bindings/gpio/aspeed-gpio.h> +#include <dt-bindings/leds/leds-pca955x.h> + +/ { + model = "Mihawk BMC";
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts line 18
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +10
-0+ compatible = "ibm,mihawk-bmc", "aspeed,ast2500"; + + + chosen { + stdout-path = &uart5; + bootargs = "console=ttyS4,115200 earlyprintk"; + }; + + memory@80000000 { + reg = <0x80000000 0x20000000>; /* address and size of RAM(512MB) */
This comment is unnecessary. If you want to put /* 512 MB */ that is fine.
Quoted 11 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +11
-0+ }; + + reserved-memory { + #address-cells = <1>; + #size-cells = <1>; + ranges; + + flash_memory: region@98000000 { + no-map; + reg = <0x98000000 0x04000000>; /* 64M */ + };
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts line 39
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +10
-0+ + gfx_memory: framebuffer { + size = <0x01000000>; + alignment = <0x01000000>; + compatible = "shared-dma-pool"; + reusable; + }; + + video_engine_memory: jpegbuffer { + size = <0x02000000>; /* 32MM */
MM?
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts line 353
Quoted 3 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +3
-0+&fmc { + status = "okay"; + flash@0 {
There is no reg property so I think the @0 is incorrect.
Quoted 13 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +13
-0+ status = "okay"; + label = "bmc"; + m25p,fast-read; + spi-max-frequency = <50000000>; + partitions { + #address-cells = < 1 >; + #size-cells = < 1 >; + compatible = "fixed-partitions"; + u-boot@0 { + reg = < 0 0x60000 >; + label = "u-boot"; + }; + u-boot-env@60000 {
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts line 376
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +10
-0+ reg = < 0x60000 0x20000 >; + label = "u-boot-env"; + }; + obmc-ubi@80000 { + reg = < 0x80000 0x1F80000 >; + label = "obmc-ubi"; + }; + }; + }; + flash@1 {
as above.
Quoted 20 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +20
-0+ status = "okay"; + label = "alt-bmc"; + m25p,fast-read; + spi-max-frequency = <50000000>; + partitions { + #address-cells = < 1 >; + #size-cells = < 1 >; + compatible = "fixed-partitions"; + u-boot@0 { + reg = < 0 0x60000 >; + label = "alt-u-boot"; + }; + u-boot-env@60000 { + reg = < 0x60000 0x20000 >; + label = "alt-u-boot-env"; + }; + obmc-ubi@80000 { + reg = < 0x80000 0x1F80000 >; + label = "alt-obmc-ubi"; + };
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts line 406
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +10
-0+ }; + }; +}; + +&spi1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi1_default>; + + flash@0 {
as above.
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +6
-1+ status = "okay"; + label = "pnor"; + m25p,fast-read; + spi-max-frequency = <100000000>; + }; +}; ---------------------------------------------------------------------------------------------------------------------------------------------------------------
Quoted 4 lines
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or distribution of this email or the content of this email is strictly prohibited. If you are not the intended recipient, you may reply to the sender and should delete this e-mail immediately.
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Please submit without this message.
Hi Joel, and Ben.
On 08/09/2019 around 01:59AM in some timezone, Joel Stanley wrote:>Hi Ben,
Quoted 9 lines · Ben Pai
Review
Quoted 5 lines
Quoted 3 lines
+&fmc {
(quoted diff) +2
-0+ status = "okay"; + flash@0 {There is no reg property so I think the @0 is incorrect.
The reg property is in the aspeed-g5.dtsi and the @0 is correct.
The layout is shared with witherspoon and the capacity matches. Perhaps we should create a openbmc-ubi-32m.dtsi similar to openbmc-flash-layout.dtsi.
Quoted 24 lines
Quoted 13 lines
Quoted 1 line
+ status = "okay";
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +12
-0+ label = "bmc"; + m25p,fast-read; + spi-max-frequency = <50000000>; + partitions { + #address-cells = < 1 >; + #size-cells = < 1 >; + compatible = "fixed-partitions"; + u-boot@0 { + reg = < 0 0x60000 >; + label = "u-boot"; + }; + u-boot-env@60000 {arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts line 376
Quoted 10 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +10
-0+ reg = < 0x60000 0x20000 >; + label = "u-boot-env"; + }; + obmc-ubi@80000 { + reg = < 0x80000 0x1F80000 >; + label = "obmc-ubi"; + }; + }; + }; + flash@1 {
Quoted 1 line
as above.
as above.
Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts line 380
Quoted 5 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +4
-0+ status = "okay"; + label = "alt-bmc"; + m25p,fast-read; + spi-max-frequency = <50000000>;
This would need a second include for the alt- labels.
Quoted 20 lines
Quoted 20 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +20
-0+ partitions { + #address-cells = < 1 >; + #size-cells = < 1 >; + compatible = "fixed-partitions"; + u-boot@0 { + reg = < 0 0x60000 >; + label = "alt-u-boot"; + }; + u-boot-env@60000 { + reg = < 0x60000 0x20000 >; + label = "alt-u-boot-env"; + }; + obmc-ubi@80000 { + reg = < 0x80000 0x1F80000 >; + label = "alt-obmc-ubi"; + }; + }; + }; +}; +
Quoted 8 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts line 406
Quoted 6 lines
+&spi1 {
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +5
-0+ status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_spi1_default>; + + flash@0 {as above.
here too, reg is in dtsi along with compatible.
Quoted 7 lines
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts line 412
Quoted 6 lines
Quoted 1 line
+ status = "okay";
arch/arm/boot/dts/aspeed-bmc-opp-mihawk.dts new file +5
-0+ label = "pnor"; + m25p,fast-read; + spi-max-frequency = <100000000>; + }; +};
milton