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