mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 03:06:50 -04:00
ARM: dts: BCM5301X: Correct description of TP-Link partitions
TP-Link routers have flash space partitioned according to the partitions table. It may look like fixed partitioning but those partitions can be actually reorganized. New can be added (or some removed), offsets and sizes may change. Fix DT to use binding for the TP-Link SafeLoader partitioning method. Signed-off-by: Rafał Miłecki <rafal@milecki.pl> Link: https://lore.kernel.org/r/20221108110708.13693-1-zajec5@gmail.com Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
This commit is contained in:
committed by
Florian Fainelli
parent
566656dd1a
commit
2a5796e63e
@@ -95,30 +95,15 @@ &spi_nor {
|
||||
status = "okay";
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "tplink,safeloader-partitions";
|
||||
partitions-table-offset = <0xe50000>;
|
||||
|
||||
boot@0 {
|
||||
label = "boot";
|
||||
reg = <0x000000 0x040000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
os-image@100000 {
|
||||
label = "os-image";
|
||||
reg = <0x040000 0x200000>;
|
||||
partition-os-image {
|
||||
compatible = "brcm,trx";
|
||||
};
|
||||
|
||||
rootfs@240000 {
|
||||
label = "rootfs";
|
||||
reg = <0x240000 0xc00000>;
|
||||
};
|
||||
|
||||
nvram@ff0000 {
|
||||
label = "nvram";
|
||||
reg = <0xff0000 0x010000>;
|
||||
partition-file-system {
|
||||
linux,rootfs;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -104,30 +104,15 @@ &spi_nor {
|
||||
status = "okay";
|
||||
|
||||
partitions {
|
||||
compatible = "fixed-partitions";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
compatible = "tplink,safeloader-partitions";
|
||||
partitions-table-offset = <0xe50000>;
|
||||
|
||||
boot@0 {
|
||||
label = "boot";
|
||||
reg = <0x000000 0x040000>;
|
||||
read-only;
|
||||
};
|
||||
|
||||
os-image@100000 {
|
||||
label = "os-image";
|
||||
reg = <0x040000 0x200000>;
|
||||
partition-os-image {
|
||||
compatible = "brcm,trx";
|
||||
};
|
||||
|
||||
rootfs@240000 {
|
||||
label = "rootfs";
|
||||
reg = <0x240000 0xc00000>;
|
||||
};
|
||||
|
||||
nvram@ff0000 {
|
||||
label = "nvram";
|
||||
reg = <0xff0000 0x010000>;
|
||||
partition-file-system {
|
||||
linux,rootfs;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user