From: Russell Senior <russell@personaltelco.net>
Date: Mon, 7 May 2018 11:06:31 +0000 (+0200)
Subject: ath79: u-boot partitions should be read-only in dts
X-Git-Tag: v18.06.0-rc1~237
X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=4aacd6388aed857ed20afa9943257722a4d24ec4;p=oweals%2Fopenwrt.git

ath79: u-boot partitions should be read-only in dts

Some of the new ath79 device trees were missing read-only tags on the
u-boot partitions.  This adds the tags where previously missing.

Signed-off-by: Russell Senior <russell@personaltelco.net>
---

diff --git a/target/linux/ath79/dts/ar7241_ubnt-unifi.dts b/target/linux/ath79/dts/ar7241_ubnt-unifi.dts
index 1fa2d82db3..1cb45e6afc 100644
--- a/target/linux/ath79/dts/ar7241_ubnt-unifi.dts
+++ b/target/linux/ath79/dts/ar7241_ubnt-unifi.dts
@@ -76,6 +76,7 @@
 			partition@0 {
 				label = "u-boot";
 				reg = <0x000000 0x040000>;
+				read-only;
 			};
 
 			partition@1 {
diff --git a/target/linux/ath79/dts/ar7241_ubnt-xm.dtsi b/target/linux/ath79/dts/ar7241_ubnt-xm.dtsi
index ac0a79dc9d..bea9adc5d4 100644
--- a/target/linux/ath79/dts/ar7241_ubnt-xm.dtsi
+++ b/target/linux/ath79/dts/ar7241_ubnt-xm.dtsi
@@ -85,6 +85,7 @@
 			partition@0 {
 				label = "u-boot";
 				reg = <0x000000 0x040000>;
+				read-only;
 			};
 
 			partition@1 {
diff --git a/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts b/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts
index 0ad865bea6..c3efe6631a 100644
--- a/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts
+++ b/target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts
@@ -102,6 +102,7 @@
 			partition@0 {
 				label = "u-boot";
 				reg = <0x000000 0x020000>;
+				read-only;
 			};
 
 			partition@1 {