017f5acd6e5aecfbfde55d6c0c0ee51a8005d65c
[openwrt/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 compatible = "tplink,firmware";
36 label = "firmware";
37 reg = <0x20000 0x7a0000>;
38 };
39
40 partition@7c0000 {
41 label = "config";
42 reg = <0x7c0000 0x10000>;
43 read-only;
44 };
45
46 factory: partition@7d0000 {
47 label = "factory";
48 reg = <0x7d0000 0x30000>;
49 read-only;
50 };
51 };
52 };
53 };
54
55 &ehci {
56 status = "disabled";
57 };
58
59 &ohci {
60 status = "disabled";
61 };
62
63 &wmac {
64 status = "okay";
65 mtd-mac-address = <&factory 0xf100>;
66 mediatek,mtd-eeprom = <&factory 0x20000>;
67 };
68
69 &ethernet {
70 mtd-mac-address = <&factory 0xf100>;
71 mediatek,portmap = "llllw";
72 };