Skip to contentSkip to conversation

OpenBMC variant of aspeed-ast2500-evb.dts

PATCH New Rick Altherr 1 participant 4 messages Jun 29, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

cover OpenBMC variant of aspeed-ast2500-evb.dts

Add an OpenBMC-specific varient of aspeed-ast2500-evb.dts that specifies the OpenBMC flash layout needed to boot a phosphor image.

Rick Altherr (3):
ARM: dts: Add FMC to AST2500 EVB device tree
ARM: dts: Refactor aspeed-ast2500-evb.dts into a dtsi
ARM: dts: OpenBMC variant of AST2500 EVB

 arch/arm/boot/dts/aspeed-ast2500-evb.dts         |  89 +-------------------
 arch/arm/boot/dts/aspeed-ast2500-evb.dtsi        | 102 +++++++++++++++++++++++
 arch/arm/boot/dts/aspeed-bmc-opp-ast2500-evb.dts |   9 ++
 3 files changed, 112 insertions(+), 88 deletions(-)
 create mode 100644 arch/arm/boot/dts/aspeed-ast2500-evb.dtsi
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-ast2500-evb.dts
Signature · 1 line
2.8.0.rc3.226.g39d4020
#1 lore raw

PATCH 1/3 ARM: dts: Add FMC to AST2500 EVB device tree

---
 arch/arm/boot/dts/aspeed-ast2500-evb.dts | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
arch/arm/boot/dts/aspeed-ast2500-evb.dts +14 -0
index 87cfa4f..a80a6b9 100644
@@ -18,6 +18,20 @@
 	memory {
 		reg = <0x80000000 0x20000000>;
 	};
+
+	ahb {
+		bmc_pnor: fmc@1e620000 {
+			reg = < 0x1e620000 0x94
+				0x20000000 0x02000000 >;
+			#address-cells = <1>;
+			#size-cells = <0>;
+			compatible = "aspeed,fmc";
+			flash@0 {
+				reg = < 0 >;
+				compatible = "jedec,spi-nor" ;
+			};
+		};
+	};
 };
 
 &uart5 {
Signature · 1 line
2.8.0.rc3.226.g39d4020
#2 lore raw

PATCH 2/3 ARM: dts: Refactor aspeed-ast2500-evb.dts into a dtsi

In reply to Rick Altherr

Booting a normal image on the AST2500 EVB doesn't require a flash layout but OpenBMC does. Move the contents of the EVB dts into a dtsi so it can be extended in an OpenBMC-specific dts.

---
 arch/arm/boot/dts/aspeed-ast2500-evb.dts  | 103 +-----------------------------
 arch/arm/boot/dts/aspeed-ast2500-evb.dtsi | 102 +++++++++++++++++++++++++++++
 2 files changed, 103 insertions(+), 102 deletions(-)
 create mode 100644 arch/arm/boot/dts/aspeed-ast2500-evb.dtsi
arch/arm/boot/dts/aspeed-ast2500-evb.dts +1 -102
index a80a6b9..f08b552 100644
@@ -1,104 +1,3 @@
 /dts-v1/;
 
-#include "aspeed-g5.dtsi"
-
-/ {
-	model = "AST2500 EVB";
-	compatible = "aspeed,ast2500-evb", "aspeed,ast2500";
-
-	aliases {
-		serial4 = &uart5;
-	};
-
-	chosen {
-		stdout-path = &uart5;
-		bootargs = "console=ttyS4,115200 earlyprintk";
-	};
-
-	memory {
-		reg = <0x80000000 0x20000000>;
-	};
-
-	ahb {
-		bmc_pnor: fmc@1e620000 {
-			reg = < 0x1e620000 0x94
-				0x20000000 0x02000000 >;
-			#address-cells = <1>;
-			#size-cells = <0>;
-			compatible = "aspeed,fmc";
-			flash@0 {
-				reg = < 0 >;
-				compatible = "jedec,spi-nor" ;
-			};
-		};
-	};
-};
-
-&uart5 {
-	status = "okay";
-};
-
-&mac0 {
-	status = "okay";
-};
-
-&i2c0 {
-	status = "okay";
-};
-
-&i2c1 {
-	status = "okay";
-};
-
-&i2c2 {
-	status = "okay";
-};
-
-&i2c3 {
-	status = "okay";
-};
-
-&i2c4 {
-	status = "okay";
-};
-
-&i2c5 {
-	status = "okay";
-
-//	eeprom@50 {
-//		compatible = "atmel,24c08";
-//		reg = <0xa0>;
-//	};
-};
-
-&i2c6 {
-	status = "okay";
-};
-
-&i2c7 {
-	status = "okay";
-};
-
-&i2c8 {
-	status = "okay";
-};
-
-&i2c9 {
-	status = "okay";
-};
-
-&i2c10 {
-	status = "okay";
-};
-
-&i2c11 {
-	status = "okay";
-};
-
-&i2c12 {
-	status = "okay";
-};
-
-&i2c13 {
-	status = "okay";
-};
+#include "aspeed-ast2500-evb.dtsi"
arch/arm/boot/dts/aspeed-ast2500-evb.dtsi new file +102 -0

102 lines not on this page · raw message

Signature · 1 line
2.8.0.rc3.226.g39d4020
#3 lore raw

PATCH 3/3 ARM: dts: OpenBMC variant of AST2500 EVB

In reply to Rick Altherr
---
 arch/arm/boot/dts/aspeed-bmc-opp-ast2500-evb.dts | 9 +++++++++
 1 file changed, 9 insertions(+)
 create mode 100644 arch/arm/boot/dts/aspeed-bmc-opp-ast2500-evb.dts
arch/arm/boot/dts/aspeed-bmc-opp-ast2500-evb.dts new file +9 -0
new file mode 100644
index 0000000..76feae1
@@ -0,0 +1,9 @@
+/dts-v1/;
+
+#include "aspeed-ast2500-evb.dtsi"
+
+&bmc_pnor {
+	flash@0 {
+#include "aspeed-bmc-opp-flash-layout.dtsi"
+	};
+};
Signature · 1 line
2.8.0.rc3.226.g39d4020