summaryrefslogtreecommitdiffstats
path: root/arch/mips/dts
diff options
context:
space:
mode:
authorOleksij Rempel <linux@rempel-privat.de>2017-08-09 18:52:17 +0200
committerLucas Stach <l.stach@pengutronix.de>2017-08-15 15:39:25 +0200
commit62cfa303d76c92403645c68081b285aa5a8c6a98 (patch)
tree92e2918aa7de387d6a8764481ba96a09fd615aeb /arch/mips/dts
parentc688e56c2c543b3c9e678767933f08d6d9e5cfeb (diff)
downloadbarebox-62cfa303d76c92403645c68081b285aa5a8c6a98.tar.gz
barebox-62cfa303d76c92403645c68081b285aa5a8c6a98.tar.xz
MIPS: tplink-mr3020.dts: add partition table
We need partition table for barebox update handler and for barebox environment Signed-off-by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'arch/mips/dts')
-rw-r--r--arch/mips/dts/tplink-mr3020.dts19
1 files changed, 19 insertions, 0 deletions
diff --git a/arch/mips/dts/tplink-mr3020.dts b/arch/mips/dts/tplink-mr3020.dts
index 1e843ee003..eaae11eddf 100644
--- a/arch/mips/dts/tplink-mr3020.dts
+++ b/arch/mips/dts/tplink-mr3020.dts
@@ -4,4 +4,23 @@
aliases {
spiflash = &spiflash;
};
+
+ chosen {
+ environment@0 {
+ compatible = "barebox,environment";
+ device-path = &spiflash, "partname:barebox-environment";
+ };
+ };
+};
+
+&spiflash {
+ partition@0 {
+ label = "barebox";
+ reg = <0 0x80000>;
+ };
+
+ partition@80000 {
+ label = "barebox-environment";
+ reg = <0x80000 0x10000>;
+ };
};