539f476dce6e1fe43769f3ed41ae94d5f6fbc2cc
[openwrt/openwrt.git] / target / linux / ramips / dts / TPLINK-8M-SPLIT-UBOOT.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 #include "mt7628an.dtsi"
3
4 / {
5 chosen {
6 bootargs = "console=ttyS0,115200";
7 };
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x0 0x4000000>;
12 };
13 };
14
15 &spi0 {
16 status = "okay";
17
18 flash@0 {
19 compatible = "jedec,spi-nor";
20 reg = <0>;
21 spi-max-frequency = <10000000>;
22 m25p,chunked-io = <32>;
23
24 partitions {
25 compatible = "fixed-partitions";
26 #address-cells = <1>;
27 #size-cells = <1>;
28
29 partition@0 {
30 label = "factory-uboot";
31 reg = <0x0 0x30000>;
32 read-only;
33 };
34
35 partition@30000 {
36 label = "boot";
37 reg = <0x30000 0x20000>;
38 read-only;
39 };
40
41 partition@50000 {
42 compatible = "tplink,firmware";
43 label = "firmware";
44 reg = <0x50000 0x770000>;
45 };
46
47 partition@7c0000 {
48 label = "config";
49 reg = <0x7c0000 0x10000>;
50 read-only;
51 };
52
53 rom: partition@7d0000 {
54 label = "rom";
55 reg = <0x7d0000 0x10000>;
56 read-only;
57 };
58
59 partition@7e0000 {
60 label = "romfile";
61 reg = <0x7e0000 0x10000>;
62 };
63
64 radio: partition@7f0000 {
65 label = "radio";
66 reg = <0x7f0000 0x10000>;
67 read-only;
68 };
69 };
70 };
71 };
72
73 &ehci {
74 status = "disabled";
75 };
76
77 &ohci {
78 status = "disabled";
79 };
80
81 &wmac {
82 status = "okay";
83 mtd-mac-address = <&rom 0xf100>;
84 mediatek,mtd-eeprom = <&radio 0x0>;
85 };
86
87 &ethernet {
88 mtd-mac-address = <&rom 0xf100>;
89 mediatek,portmap = "llllw";
90 };