[PATCH v1 4/4] MIPS: tplink-mr3020.dts: add partition table

Oleksij Rempel linux at rempel-privat.de
Wed Aug 9 09:52:17 PDT 2017


We need partition table for barebox update handler
and for barebox environment

Signed-off-by: Oleksij Rempel <linux at rempel-privat.de>
---
 arch/mips/dts/tplink-mr3020.dts | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/arch/mips/dts/tplink-mr3020.dts b/arch/mips/dts/tplink-mr3020.dts
index 1e843ee00..eaae11edd 100644
--- a/arch/mips/dts/tplink-mr3020.dts
+++ b/arch/mips/dts/tplink-mr3020.dts
@@ -4,4 +4,23 @@
 	aliases {
 		spiflash = &spiflash;
 	};
+
+	chosen {
+		environment at 0 {
+			compatible = "barebox,environment";
+			device-path = &spiflash, "partname:barebox-environment";
+		};
+	};
+};
+
+&spiflash {
+	partition at 0 {
+		label = "barebox";
+		reg = <0 0x80000>;
+	};
+
+	partition at 80000 {
+		label = "barebox-environment";
+		reg = <0x80000 0x10000>;
+	};
 };
-- 
2.11.0




More information about the barebox mailing list