diff options
author | Mathias Kresin <dev@kresin.me> | 2018-12-06 11:53:05 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2018-12-06 13:28:22 +0100 |
commit | 9d8fcab77aab6a9133cd6898a68ad512b0b31310 (patch) | |
tree | 746dea6a49e36d61499915c0396ddad735dfd472 /target/linux/ath79/dts/qca9531_glinet_ar300m-nand.dts | |
parent | 8d6f128d390753ea8f4deae5cc9a1d75435164b4 (diff) | |
download | upstream-9d8fcab77aab6a9133cd6898a68ad512b0b31310.tar.gz upstream-9d8fcab77aab6a9133cd6898a68ad512b0b31310.tar.bz2 upstream-9d8fcab77aab6a9133cd6898a68ad512b0b31310.zip |
ath79: fix GL.iNet GL-AR300M sysupgrade
The userspace boardname derived from the dts compatible was out of sync
with the expected board added to the image metadata. This way a
sysupgrade is refused.
Sync the userspace boardname and the baordname used in the image metdata
to allow a seamless sasupgrade.
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'target/linux/ath79/dts/qca9531_glinet_ar300m-nand.dts')
-rw-r--r-- | target/linux/ath79/dts/qca9531_glinet_ar300m-nand.dts | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/target/linux/ath79/dts/qca9531_glinet_ar300m-nand.dts b/target/linux/ath79/dts/qca9531_glinet_ar300m-nand.dts new file mode 100644 index 0000000000..82f8418b31 --- /dev/null +++ b/target/linux/ath79/dts/qca9531_glinet_ar300m-nand.dts @@ -0,0 +1,68 @@ +/dts-v1/; + +#include "qca9531_glinet_ar300m.dtsi" + +/ { + compatible = "glinet,ar300m-nand", "qca,qca9531"; + model = "GL.iNet GL-AR300M (NAND)"; +}; + +&spi { + status = "okay"; + num-cs = <1>; + + flash@0 { + compatible = "winbond,w25q128", "jedec,spi-nor"; + reg = <0>; + spi-max-frequency = <25000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "u-boot"; + reg = <0x000000 0x040000>; + read-only; + }; + + partition@1 { + label = "u-boot-env"; + reg = <0x040000 0x010000>; + }; + + partition@2 { + label = "reserved"; + reg = <0x050000 0xfa0000>; + }; + + art: partition@3 { + label = "art"; + reg = <0xff0000 0x010000>; + }; + }; + }; + + flash@1 { + compatible = "spinand,mt29f"; + reg = <1>; + spi-max-frequency = <25000000>; + + partitions { + compatible = "fixed-partitions"; + #address-cells = <1>; + #size-cells = <1>; + + partition@0 { + label = "kernel"; + reg = <0x000000 0x0200000>; + }; + + partition@1 { + label = "ubi"; + reg = <0x200000 0x7e00000>; + }; + }; + }; +}; |