1 From c8ee9f119bfb4244f76c9971c341ec06b49332cd Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
3 Date: Tue, 8 Nov 2022 12:07:08 +0100
4 Subject: [PATCH] ARM: dts: BCM5301X: Correct description of TP-Link partitions
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 TP-Link routers have flash space partitioned according to the partitions
10 table. It may look like fixed partitioning but those partitions can be
11 actually reorganized. New can be added (or some removed), offsets and
14 Fix DT to use binding for the TP-Link SafeLoader partitioning method.
16 Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
17 Link: https://lore.kernel.org/r/20221108110708.13693-1-zajec5@gmail.com
18 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
20 .../boot/dts/bcm47081-tplink-archer-c5-v2.dts | 25 ++++---------------
21 .../boot/dts/bcm4709-tplink-archer-c9-v1.dts | 25 ++++---------------
22 2 files changed, 10 insertions(+), 40 deletions(-)
24 --- a/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
25 +++ b/arch/arm/boot/dts/bcm47081-tplink-archer-c5-v2.dts
30 - compatible = "fixed-partitions";
31 - #address-cells = <1>;
33 + compatible = "tplink,safeloader-partitions";
34 + partitions-table-offset = <0xe50000>;
38 - reg = <0x000000 0x040000>;
44 - reg = <0x040000 0x200000>;
45 + partition-os-image {
46 compatible = "brcm,trx";
51 - reg = <0x240000 0xc00000>;
56 - reg = <0xff0000 0x010000>;
57 + partition-file-system {
62 --- a/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
63 +++ b/arch/arm/boot/dts/bcm4709-tplink-archer-c9-v1.dts
68 - compatible = "fixed-partitions";
69 - #address-cells = <1>;
71 + compatible = "tplink,safeloader-partitions";
72 + partitions-table-offset = <0xe50000>;
76 - reg = <0x000000 0x040000>;
82 - reg = <0x040000 0x200000>;
83 + partition-os-image {
84 compatible = "brcm,trx";
89 - reg = <0x240000 0xc00000>;
94 - reg = <0xff0000 0x010000>;
95 + partition-file-system {