ARM: dts: aspeed: wedge400: Use common flash layout
authorTao Ren <rentao.bupt@gmail.com>
Thu, 5 Aug 2021 22:28:14 +0000 (15:28 -0700)
committerJoel Stanley <joel@jms.id.au>
Fri, 13 Aug 2021 01:32:11 +0000 (11:02 +0930)
Simplify wedge400 flash layout by using the common layout defined in
"facebook-bmc-flash-layout-128.dtsi".

Signed-off-by: Tao Ren <rentao.bupt@gmail.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
Link: https://lore.kernel.org/r/20210805222818.8391-3-rentao.bupt@gmail.com
Signed-off-by: Joel Stanley <joel@jms.id.au>
arch/arm/boot/dts/aspeed-bmc-facebook-wedge400.dts

index 63a3dd548f307c25dfd2191616a1153d39b5449c..a901c8be49b95cb9ed1e69861f7a650018f498af 100644 (file)
  * Both firmware flashes are 128MB on Wedge400 BMC.
  */
 &fmc_flash0 {
-       partitions {
-               compatible = "fixed-partitions";
-               #address-cells = <1>;
-               #size-cells = <1>;
-
-               /*
-                * u-boot partition: 384KB.
-                */
-               u-boot@0 {
-                       reg = <0x0 0x60000>;
-                       label = "u-boot";
-               };
-
-               /*
-                * u-boot environment variables: 128KB.
-                */
-               u-boot-env@60000 {
-                       reg = <0x60000 0x20000>;
-                       label = "env";
-               };
-
-               /*
-                * FIT image: 123.5 MB.
-                */
-               fit@80000 {
-                       reg = <0x80000 0x7b80000>;
-                       label = "fit";
-               };
-
-               /*
-                * "data0" partition (4MB) is reserved for persistent
-                * data store.
-                */
-               data0@7c00000 {
-                       reg = <0x7c00000 0x400000>;
-                       label = "data0";
-               };
-
-               /*
-                * "flash0" partition (covering the entire flash) is
-                * explicitly created to avoid breaking legacy applications.
-                */
-               flash0@0 {
-                       reg = <0x0 0x8000000>;
-                       label = "flash0";
-               };
-       };
+#include "facebook-bmc-flash-layout-128.dtsi"
 };
 
 &fmc_flash1 {