summaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/dts
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2022-06-12 11:48:01 +0200
committerChristian Lamparter <chunkeey@gmail.com>2022-06-19 12:31:02 +0200
commit5f7828fcc274ec7c381298c92cf3a946182168a0 (patch)
tree0d28d8d927aa59c18f4b704a8987bd1badb894a3 /target/linux/apm821xx/dts
parent6006f73383cc7626552175010de23530bdcc8718 (diff)
downloadopenwrt-5f7828fcc274ec7c381298c92cf3a946182168a0.tar.gz
openwrt-5f7828fcc274ec7c381298c92cf3a946182168a0.tar.bz2
openwrt-5f7828fcc274ec7c381298c92cf3a946182168a0.zip
apm821xx: MBL: make mtd chip work
The MBL has a 512KiB Microchip SST39VF040 chip for uboot and not much else. Thanks to Ewald who figured out that the "jedec-probe" vs. "jedec-flash" was the wrong binding. With this information and the jedec-probe support enabled => the chip works. | physmap-flash 4fff80000.nor_flash: physmap platform flash device: [mem 0x4fff80000-0x4ffffffff] | Found: SST 39LF040 | 4fff80000.nor_flash: Found 1 x8 devices at 0x0 in 8-bit bank Suggested-by: Ewald Comhaire <e.comhaire@gmail.com> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/dts')
-rw-r--r--target/linux/apm821xx/dts/wd-mybooklive.dts5
1 files changed, 4 insertions, 1 deletions
diff --git a/target/linux/apm821xx/dts/wd-mybooklive.dts b/target/linux/apm821xx/dts/wd-mybooklive.dts
index 2cc4dd8b79..5fcddb0cd8 100644
--- a/target/linux/apm821xx/dts/wd-mybooklive.dts
+++ b/target/linux/apm821xx/dts/wd-mybooklive.dts
@@ -22,7 +22,7 @@
ebc {
nor_flash@0,0 {
status = "okay";
- compatible = "amd,s29gl512n", "jedec-probe", "cfi-flash", "mtd-rom";
+ compatible = "microchip,sst39vf040", "jedec-flash";
bank-width = <1>;
reg = <0x00000000 0x00000000 0x00080000>;
#address-cells = <1>;
@@ -32,16 +32,19 @@
/* Part of bootrom - Don't use it without a jump */
label = "free";
reg = <0x00000000 0x0001e000>;
+ read-only;
};
partition@1e000 {
label = "env";
reg = <0x0001e000 0x00002000>;
+ read-only;
};
partition@20000 {
label = "uboot";
reg = <0x00020000 0x00050000>;
+ read-only;
};
};
};