8807f7f27488031d92710efdf70f21c89f9df99e
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_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         aliases {
10                 label-mac-device = &ethernet;
11         };
12 };
13
14 &spi0 {
15         status = "okay";
16
17         flash@0 {
18                 compatible = "jedec,spi-nor";
19                 reg = <0>;
20                 spi-max-frequency = <10000000>;
21
22                 partitions {
23                         compatible = "fixed-partitions";
24                         #address-cells = <1>;
25                         #size-cells = <1>;
26
27                         partition@0 {
28                                 label = "factory-uboot";
29                                 reg = <0x0 0x30000>;
30                                 read-only;
31                         };
32
33                         partition@30000 {
34                                 label = "boot";
35                                 reg = <0x30000 0x20000>;
36                                 read-only;
37                         };
38
39                         partition@50000 {
40                                 compatible = "tplink,firmware";
41                                 label = "firmware";
42                                 reg = <0x50000 0x770000>;
43                         };
44
45                         partition@7c0000 {
46                                 label = "config";
47                                 reg = <0x7c0000 0x10000>;
48                                 read-only;
49                         };
50
51                         rom: partition@7d0000 {
52                                 label = "rom";
53                                 reg = <0x7d0000 0x10000>;
54                                 read-only;
55                         };
56
57                         partition@7e0000 {
58                                 label = "romfile";
59                                 reg = <0x7e0000 0x10000>;
60                         };
61
62                         radio: partition@7f0000 {
63                                 label = "radio";
64                                 reg = <0x7f0000 0x10000>;
65                                 read-only;
66                         };
67                 };
68         };
69 };
70
71 &ehci {
72         status = "disabled";
73 };
74
75 &ohci {
76         status = "disabled";
77 };
78
79 &wmac {
80         status = "okay";
81         mtd-mac-address = <&rom 0xf100>;
82         mediatek,mtd-eeprom = <&radio 0x0>;
83 };
84
85 &ethernet {
86         mtd-mac-address = <&rom 0xf100>;
87         mediatek,portmap = "wllll";
88 };