Skip to contentSkip to conversation

ARM: dts: aspeed: Add a palmetto board (AST2400)

PATCH In review Cédric Le Goater 2 participants 2 messages Jun 19, 2022 – Jun 20, 2022 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 ARM: dts: aspeed: Add a palmetto board (AST2400)

Palmettos were the first OpenPOWER systems built by Tyan with the product name: GN70-BP010. They contained an IBM POWER8 Turismo SCM processor and an Aspeed AST2400 SoC.

Tested on real HW using the evb-ast2400 defconfig, plus these extras :

CONFIG_BOOTCOMMAND="bootm 20080000"
CONFIG_DEFAULT_DEVICE_TREE="ast2400-palmetto"

Cc Zev Weiss <[email protected]>
Cc Frédéric Barrat <[email protected]>
Cc Joel Stanley <[email protected]>

---

Since v2:

- DT cleanups (Zev)
- Dropped the defconfig because only the default boot command needs an update to boot Linux
- Tested on real HW ! Thanks to Frédéric.

 arch/arm/dts/Makefile             |  1 +
 arch/arm/dts/ast2400-palmetto.dts | 73 +++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)
 create mode 100644 arch/arm/dts/ast2400-palmetto.dts
arch/arm/dts/Makefile +1 -0
index 35cdd0952d33..6dc9aeab24ff 100755
@@ -677,6 +677,7 @@ dtb-$(CONFIG_ARCH_BCM6858) += \
 dtb-$(CONFIG_ARCH_ASPEED) += \
 	ast2400-evb.dtb \
 	ast2400-ahe-50dc.dtb \
+	ast2400-palmetto.dtb \
 	ast2500-evb.dtb \
 	ast2600a0-evb.dtb \
 	ast2600a1-evb.dtb \
arch/arm/dts/ast2400-palmetto.dts new file +73 -0

73 lines not on this page · raw message

Signature · 1 line
2.35.3
Reviewed-by on v3 1/1
#1 lore raw
Quoted 7 lines · Cédric Le Goater

Palmettos were the first OpenPOWER systems built by Tyan with the product name: GN70-BP010. They contained an IBM POWER8 Turismo SCM processor and an Aspeed AST2400 SoC.

Tested on real HW using the evb-ast2400 defconfig, plus these extras :

Quoted 7 lines

CONFIG_BOOTCOMMAND="bootm 20080000"
CONFIG_DEFAULT_DEVICE_TREE="ast2400-palmetto"

Cc Zev Weiss <[email protected]>
Cc Frédéric Barrat <[email protected]>
Cc Joel Stanley <[email protected]>

Looks good, thanks Cédric.

Quoted 108 lines

---

Since v2:

- DT cleanups (Zev)
- Dropped the defconfig because only the default boot command needs an update to boot Linux
- Tested on real HW ! Thanks to Frédéric.

 arch/arm/dts/Makefile             |  1 +
 arch/arm/dts/ast2400-palmetto.dts | 73 +++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)
 create mode 100644 arch/arm/dts/ast2400-palmetto.dts
arch/arm/dts/Makefile +1 -0
index 35cdd0952d33..6dc9aeab24ff 100755
@@ -677,6 +677,7 @@ dtb-$(CONFIG_ARCH_BCM6858) += \
 dtb-$(CONFIG_ARCH_ASPEED) += \
        ast2400-evb.dtb \
        ast2400-ahe-50dc.dtb \
+       ast2400-palmetto.dtb \
        ast2500-evb.dtb \
        ast2600a0-evb.dtb \
        ast2600a1-evb.dtb \
arch/arm/dts/ast2400-palmetto.dts new file +73 -1
new file mode 100644
index 000000000000..43b141a8379d
@@ -0,0 +1,73 @@
+// SPDX-License-Identifier: GPL-2.0+
+/dts-v1/;
+
+#include "ast2400-u-boot.dtsi"
+
+/ {
+       model = "Palmetto BMC";
+       compatible = "tyan,palmetto-bmc", "aspeed,ast2400";
+
+       memory@40000000 {
+               device_type = "memory";
+               reg = <0x40000000 0x10000000>;
+       };
+
+       chosen {
+               stdout-path = &uart5;
+       };
+
+       aliases {
+               spi0 = &fmc;
+               spi1 = &spi1;
+       };
+};
+
+&uart5 {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
+&sdrammc {
+       clock-frequency = <200000000>;
+};
+
+&wdt1 {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
+&wdt2 {
+       u-boot,dm-pre-reloc;
+       status = "okay";
+};
+
+&mac0 {
+       status = "okay";
+
+       phy-mode = "NC-SI";
+       use-ncsi;
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_rmii1_default>;
+};
+
+&fmc {
+       status = "okay";
+       flash@0 {
+               status = "okay";
+               spi-max-frequency = <50000000>;
+               spi-tx-bus-width = <2>;
+               spi-rx-bus-width = <2>;
+       };
+};
+
+&spi1 {
+       status = "okay";
+       flash@0 {
+               pinctrl-names = "default";
+               pinctrl-0 = <&pinctrl_spi1_default>;
+               status = "okay";
+               spi-max-frequency = <50000000>;
+               spi-tx-bus-width = <2>;
+               spi-rx-bus-width = <2>;
+       };
+};
--

2.35.3