diff mbox

[LEDE-DEV,6/9] lantiq: VGV7519 - fix brn partition layout

Message ID 1464296907-28020-6-git-send-email-dev@kresin.me
State Accepted
Headers show

Commit Message

Mathias Kresin May 26, 2016, 9:08 p.m. UTC
Use the brnboot partition layout as it is listed in the OpenWrt wiki
article for this board.

Configure the brnboot root selector for this device as well.

Signed-off-by: Mathias Kresin <dev@kresin.me>
---
 target/linux/lantiq/dts/VGV7519BRN.dts | 54 +++++++++++++++++++++++++++++++---
 1 file changed, 50 insertions(+), 4 deletions(-)
diff mbox

Patch

diff --git a/target/linux/lantiq/dts/VGV7519BRN.dts b/target/linux/lantiq/dts/VGV7519BRN.dts
index cc365ec..b225acf 100644
--- a/target/linux/lantiq/dts/VGV7519BRN.dts
+++ b/target/linux/lantiq/dts/VGV7519BRN.dts
@@ -8,14 +8,60 @@ 
 		localbus@0 {
 			nor-boot@0 {
 				partitions {
+					partition@0 {
+						label = "Boot";
+						reg = <0x00000 0x40000>;
+						read-only;
+					};
+
+					partition@50000 {
+						label = "Certificate";
+						reg = <0x50000 0x10000>;
+						read-only;
+					};
+					partition@60000 {
+						label = "Special_Area";
+						reg = <0x60000 0x10000>;
+						read-only;
+					};
+
+					partition@70000 {
+						label = " Reserve_0";
+						reg = <0x70000 0x10000>;
+						read-only;
+					};
+
 					partition@80000 {
-						label = "firmware";
+						label = "Code_Image_0";
 						reg = <0x80000 0x780000>;
+						brnboot,root-id = <0x00>;
 						read-only;
 					};
-					partition@880000 {
-						label = "rootfs_data";
-						reg = <0x880000 0x780000>;
+
+					partition@4000000 {
+						compatible = "brnboot,root-selector";
+						label = "Primary_Setting";
+						reg = <0x4000000 0x10000>;
+						read-only;
+					};
+
+					partition@4010000 {
+						label = "Configuration";
+						reg = <0x4010000 0x60000>;
+						read-only;
+					};
+
+					partition@4070000 {
+						label = " Reserve_1";
+						reg = <0x4070000 0x10000>;
+						read-only;
+					};
+
+					partition@4080000 {
+						label = "Code_Image_1";
+						reg = <0x4080000 0x780000>;
+						brnboot,root-id = <0x01>;
+						read-only;
 					};
 				};
 			};