aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts
diff options
context:
space:
mode:
authorRafał Miłecki <rafal@milecki.pl>2018-05-07 10:35:51 +0200
committerJohn Crispin <john@phrozen.org>2018-05-07 12:57:47 +0200
commit4edd4cb2b3a55962a6d3fa4611c7f2bc393eb902 (patch)
treea9362a62faf307984fbba1aee668ac11daa6154d /target/linux/ath79/dts/ar7161_netgear_wndr3800.dts
parent7fe77a5962093d06a064883a6bbb0bf44096ec88 (diff)
downloadupstream-4edd4cb2b3a55962a6d3fa4611c7f2bc393eb902.tar.gz
upstream-4edd4cb2b3a55962a6d3fa4611c7f2bc393eb902.tar.bz2
upstream-4edd4cb2b3a55962a6d3fa4611c7f2bc393eb902.zip
ath79: use the new DT fixed partitions syntax
This new syntax is slightly better designed & uses "compatible" string. For details see Documentation/devicetree/bindings/mtd/partition.txt . Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/ath79/dts/ar7161_netgear_wndr3800.dts')
-rw-r--r--target/linux/ath79/dts/ar7161_netgear_wndr3800.dts40
1 files changed, 23 insertions, 17 deletions
diff --git a/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts b/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts
index ba6e9ae03c..a175fd7698 100644
--- a/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts
+++ b/target/linux/ath79/dts/ar7161_netgear_wndr3800.dts
@@ -139,26 +139,32 @@
reg = <0>;
spi-max-frequency = <25000000>;
- partition@0 {
- label = "u-boot";
- reg = <0x000000 0x050000>;
- read-only;
- };
+ partitions {
+ compatible = "fixed-partitions";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x000000 0x050000>;
+ read-only;
+ };
- partition@1 {
- label = "u-boot-env";
- reg = <0x050000 0x020000>;
- };
+ partition@1 {
+ label = "u-boot-env";
+ reg = <0x050000 0x020000>;
+ };
- partition@2 {
- label = "firmware";
- reg = <0x70000 0xf80000>;
- };
+ partition@2 {
+ label = "firmware";
+ reg = <0x70000 0xf80000>;
+ };
- partition@3 {
- label = "art";
- reg = <0xff0000 0x010000>;
- read-only;
+ partition@3 {
+ label = "art";
+ reg = <0xff0000 0x010000>;
+ read-only;
+ };
};
};
};