ramips: fix MTD EEPROM offset for TL-WR840N v5
[oweals/openwrt.git] / target / linux / ramips / dts / TPLINK-8M.dtsi
1 #include "mt7628an.dtsi"
2
3 / {
4         chosen {
5                 bootargs = "console=ttyS0,115200";
6         };
7
8         memory@0 {
9                 device_type = "memory";
10                 reg = <0x0 0x4000000>;
11         };
12 };
13
14 &spi0 {
15         status = "okay";
16
17         m25p80@0 {
18                 compatible = "jedec,spi-nor";
19                 reg = <0>;
20                 spi-max-frequency = <10000000>;
21                 m25p,chunked-io = <32>;
22
23                 partitions {
24                         compatible = "fixed-partitions";
25                         #address-cells = <1>;
26                         #size-cells = <1>;
27
28                         partition@0 {
29                                 label = "boot";
30                                 reg = <0x0 0x20000>;
31                                 read-only;
32                         };
33
34                         partition@20000 {
35                                 label = "firmware";
36                                 reg = <0x20000 0x7a0000>;
37                         };
38
39                         partition@7c0000 {
40                                 label = "config";
41                                 reg = <0x7c0000 0x10000>;
42                                 read-only;
43                         };
44
45                         factory: partition@7d0000 {
46                                 label = "factory";
47                                 reg = <0x7d0000 0x30000>;
48                                 read-only;
49                         };
50                 };
51         };
52 };
53
54 &ehci {
55         status = "disabled";
56 };
57
58 &ohci {
59         status = "disabled";
60 };
61
62 &wmac {
63         status = "okay";
64         mtd-mac-address = <&factory 0xf100>;
65         mediatek,mtd-eeprom = <&factory 0x20000>;
66 };
67
68 &ethernet {
69         mtd-mac-address = <&factory 0xf100>;
70         mediatek,portmap = "llllw";
71 };