Skip to contentSkip to conversation

ARM: dts: aspeed: zaius: Update with new spi-nor binding

PATCH Applied Xo Wang 2 participants 2 messages Nov 2, 2016 – Nov 3, 2016

Subsystems (2)
lore
Share & tools
lore

Xo Wang

author
#0 lore raw

PATCH v2 1/1 ARM: dts: aspeed: zaius: Update with new spi-nor binding

Zaius has one flash module for the BMC firmware, one flash module for the host firmware, and one more flash module on SPI2.

Changes since v1:
- Added SPI2 pinctrl selectors

---
 arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 73 ++++++++++++++----------------
 1 file changed, 33 insertions(+), 40 deletions(-)
arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts +33 -40
index eef045b..9e59649 100644
@@ -20,46 +20,6 @@
 		reg = <0x80000000 0x40000000>;
 	};
 
-	ahb {
-		bmc_pnor: fmc@1e620000 {
-			reg = < 0x1e620000 0xc4
-				0x20000000 0x04000000 >;
-			#address-cells = <1>;
-			#size-cells = <0>;
-			compatible = "aspeed,ast2500-fmc";
-			flash@0 {
-				reg = < 0 >;
-				compatible = "jedec,spi-nor" ;
-#include "aspeed-bmc-opp-flash-layout.dtsi"
-			};
-		};
-
-		host_pnor: spi@1e630000 {
-			reg = < 0x1e630000 0xc4
-				0x30000000 0x04000000 >;
-			#address-cells = <1>;
-			#size-cells = <0>;
-			compatible = "aspeed,ast2500-smc";
-			flash@0 {
-				reg = < 0 >;
-				compatible = "jedec,spi-nor" ;
-				label = "pnor";
-			};
-		};
-
-		data_pnor: spi@1e631000 {
-			reg = < 0x1e631000 0xc4
-				0x38000000 0x00800000 >;
-			#address-cells = <1>;
-			#size-cells = <0>;
-			compatible = "aspeed,ast2500-smc";
-			flash@0 {
-				reg = < 0 >;
-				compatible = "jedec,spi-nor" ;
-			};
-		};
-	};
-
 	leds {
 		compatible = "gpio-leds";
 
@@ -85,6 +45,39 @@
 	};
 };
 
+&fmc {
+	status = "okay";
+	flash@0 {
+		status = "okay";
+#include "aspeed-bmc-opp-flash-layout.dtsi"
+	};
+};
+
+&spi1 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_spi1_default>;
+
+	flash@0 {
+		status = "okay";
+		label = "pnor";
+	};
+};
+
+&spi2 {
+	status = "okay";
+	pinctrl-names = "default";
+	pinctrl-0 = <&pinctrl_spi2ck_default
+		     &pinctrl_spi2cs0_default
+		     &pinctrl_spi2cs1_default
+		     &pinctrl_spi2miso_default
+		     &pinctrl_spi2mosi_default>;
+
+	flash@0 {
+		status = "okay";
+	};
+};
+
 &uart5 {
 	status = "okay";
 };
Signature · 1 line
2.8.0.rc3.226.g39d4020
maintainer Applied
#1 lore raw
Quoted 4 lines · Xo Wang

Zaius has one flash module for the BMC firmware, one flash module for the host firmware, and one more flash module on SPI2.

Applied to dev-4.7.

Cheers,

Joel

Quoted 105 lines

Changes since v1:
- Added SPI2 pinctrl selectors

---
 arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts | 73 ++++++++++++++----------------
 1 file changed, 33 insertions(+), 40 deletions(-)
arch/arm/boot/dts/aspeed-bmc-opp-zaius.dts +33 -41
index eef045b..9e59649 100644
@@ -20,46 +20,6 @@
                reg = <0x80000000 0x40000000>;
        };
 
-       ahb {
-               bmc_pnor: fmc@1e620000 {
-                       reg = < 0x1e620000 0xc4
-                               0x20000000 0x04000000 >;
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-                       compatible = "aspeed,ast2500-fmc";
-                       flash@0 {
-                               reg = < 0 >;
-                               compatible = "jedec,spi-nor" ;
-#include "aspeed-bmc-opp-flash-layout.dtsi"
-                       };
-               };
-
-               host_pnor: spi@1e630000 {
-                       reg = < 0x1e630000 0xc4
-                               0x30000000 0x04000000 >;
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-                       compatible = "aspeed,ast2500-smc";
-                       flash@0 {
-                               reg = < 0 >;
-                               compatible = "jedec,spi-nor" ;
-                               label = "pnor";
-                       };
-               };
-
-               data_pnor: spi@1e631000 {
-                       reg = < 0x1e631000 0xc4
-                               0x38000000 0x00800000 >;
-                       #address-cells = <1>;
-                       #size-cells = <0>;
-                       compatible = "aspeed,ast2500-smc";
-                       flash@0 {
-                               reg = < 0 >;
-                               compatible = "jedec,spi-nor" ;
-                       };
-               };
-       };
-
        leds {
                compatible = "gpio-leds";
 
@@ -85,6 +45,39 @@
        };
 };
 
+&fmc {
+       status = "okay";
+       flash@0 {
+               status = "okay";
+#include "aspeed-bmc-opp-flash-layout.dtsi"
+       };
+};
+
+&spi1 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_spi1_default>;
+
+       flash@0 {
+               status = "okay";
+               label = "pnor";
+       };
+};
+
+&spi2 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&pinctrl_spi2ck_default
+                    &pinctrl_spi2cs0_default
+                    &pinctrl_spi2cs1_default
+                    &pinctrl_spi2miso_default
+                    &pinctrl_spi2mosi_default>;
+
+       flash@0 {
+               status = "okay";
+       };
+};
+
 &uart5 {
        status = "okay";
 };
--

2.8.0.rc3.226.g39d4020

_______________________________________________
openbmc mailing list
[email protected]
https://lists.ozlabs.org/listinfo/openbmc