diff mbox series

[v1] ARM: dts: Aspeed: Add Facebook Minerva DTS

Message ID 20240604095720.2902647-1-peteryin.openbmc@gmail.com
State New
Headers show
Series [v1] ARM: dts: Aspeed: Add Facebook Minerva DTS | expand

Commit Message

Peter Yin June 4, 2024, 9:57 a.m. UTC
Initial introduction of Facebook Minerva
equipped with Aspeed 2600 BMC SoC.

Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com>
---
 arch/arm/dts/Makefile            |  1 +
 arch/arm/dts/ast2600-minerva.dts | 66 ++++++++++++++++++++++++++++++++
 2 files changed, 67 insertions(+)
 create mode 100644 arch/arm/dts/ast2600-minerva.dts

Comments

Patrick Williams June 4, 2024, 8:13 p.m. UTC | #1
On Tue, Jun 04, 2024 at 05:57:20PM +0800, Peter Yin wrote:
> Initial introduction of Facebook Minerva
> equipped with Aspeed 2600 BMC SoC.
> 
> Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com>
> ---
>  arch/arm/dts/Makefile            |  1 +
>  arch/arm/dts/ast2600-minerva.dts | 66 ++++++++++++++++++++++++++++++++
>  2 files changed, 67 insertions(+)
>  create mode 100644 arch/arm/dts/ast2600-minerva.dts

Is this targeting u-boot?
Andrew Jeffery June 5, 2024, 12:44 a.m. UTC | #2
On Tue, 2024-06-04 at 15:13 -0500, Patrick Williams wrote:
> On Tue, Jun 04, 2024 at 05:57:20PM +0800, Peter Yin wrote:
> > Initial introduction of Facebook Minerva
> > equipped with Aspeed 2600 BMC SoC.
> > 
> > Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com>
> > ---
> >  arch/arm/dts/Makefile            |  1 +
> >  arch/arm/dts/ast2600-minerva.dts | 66 ++++++++++++++++++++++++++++++++
> >  2 files changed, 67 insertions(+)
> >  create mode 100644 arch/arm/dts/ast2600-minerva.dts
> 
> Is this targeting u-boot?
> 

(if so, please add 'u-boot' via `--subject-prefix` for downstream
openbmc patches, to help us route them to the expected repo)

Andrew
Peter Yin June 5, 2024, 9:37 a.m. UTC | #3
Andrew Jeffery 於 6/5/24 08:44 寫道:
> On Tue, 2024-06-04 at 15:13 -0500, Patrick Williams wrote:
>> On Tue, Jun 04, 2024 at 05:57:20PM +0800, Peter Yin wrote:
>>> Initial introduction of Facebook Minerva
>>> equipped with Aspeed 2600 BMC SoC.
>>>
>>> Signed-off-by: Peter Yin <peteryin.openbmc@gmail.com>
>>> ---
>>>   arch/arm/dts/Makefile            |  1 +
>>>   arch/arm/dts/ast2600-minerva.dts | 66 ++++++++++++++++++++++++++++++++
>>>   2 files changed, 67 insertions(+)
>>>   create mode 100644 arch/arm/dts/ast2600-minerva.dts
>>
>> Is this targeting u-boot?
>>
> 
> (if so, please add 'u-boot' via `--subject-prefix` for downstream
> openbmc patches, to help us route them to the expected repo)
> 
> Andrew

Yes, It is for u-boot. I will send it again.

Thanks,
Peter.
diff mbox series

Patch

diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile
index 6f4b4d8a17..e1773eee97 100755
--- a/arch/arm/dts/Makefile
+++ b/arch/arm/dts/Makefile
@@ -690,6 +690,7 @@  dtb-$(CONFIG_ARCH_ASPEED) += \
 	ast2600-greatlakes.dtb \
 	ast2600-intel.dtb \
 	ast2600-intel.dtb \
+	ast2600-minerva.dtb \
 	ast2600-ncsi.dtb \
 	ast2600-p10bmc.dtb \
 	ast2600-pfr.dtb \
diff --git a/arch/arm/dts/ast2600-minerva.dts b/arch/arm/dts/ast2600-minerva.dts
new file mode 100644
index 0000000000..4f54cf7b7c
--- /dev/null
+++ b/arch/arm/dts/ast2600-minerva.dts
@@ -0,0 +1,66 @@ 
+// SPDX-License-Identifier: GPL-2.0+
+// Copyright (c) 2024 Meta Platforms Inc.
+/dts-v1/;
+
+#include "ast2600-u-boot.dtsi"
+
+/ {
+	model = "Facebook Minerva BMC";
+	compatible = "facebook,minerva-bmc", "aspeed,ast2600";
+
+	memory {
+		device_type = "memory";
+		reg = <0x80000000 0x40000000>;
+	};
+
+	chosen {
+		stdout-path = &uart5;
+	};
+
+	aliases {
+		spi0 = &fmc;
+	};
+
+	cpus {
+		cpu@0 {
+			clock-frequency = <800000000>;
+		};
+		cpu@1 {
+			clock-frequency = <800000000>;
+		};
+	};
+};
+
+&uart5 {
+	u-boot,dm-pre-reloc;
+	status = "okay";
+};
+
+&sdrammc {
+	clock-frequency = <400000000>;
+};
+
+&fmc {
+	status = "okay";
+
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_fmcquad_default>;
+
+	flash@0 {
+		status = "okay";
+		spi-max-frequency = <50000000>;
+		spi-tx-bus-width = <2>;
+		spi-rx-bus-width = <2>;
+	};
+
+	flash@1 {
+		status = "okay";
+		spi-max-frequency = <50000000>;
+		spi-tx-bus-width = <2>;
+		spi-rx-bus-width = <2>;
+	};
+};
+
+&hace {
+	status = "okay";
+};