From 4aacd6388aed857ed20afa9943257722a4d24ec4 Mon Sep 17 00:00:00 2001
From: Russell Senior <russell@personaltelco.net>
Date: Mon, 7 May 2018 13:06:31 +0200
Subject: [PATCH] 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>
---
 target/linux/ath79/dts/ar7241_ubnt-unifi.dts     | 1 +
 target/linux/ath79/dts/ar7241_ubnt-xm.dtsi       | 1 +
 target/linux/ath79/dts/ar9132_tl_wr1043nd_v1.dts | 1 +
 3 files changed, 3 insertions(+)

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 {
-- 
2.25.1