ramips: clean and improve MAC address setup in 02_network
[oweals/openwrt.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
9 &spi0 {
10         status = "okay";
11
12         m25p80@0 {
13                 compatible = "jedec,spi-nor";
14                 reg = <0>;
15                 spi-max-frequency = <10000000>;
16
17                 partitions {
18                         compatible = "fixed-partitions";
19                         #address-cells = <1>;
20                         #size-cells = <1>;
21
22                         partition@0 {
23                                 label = "boot";
24                                 reg = <0x0 0x20000>;
25                                 read-only;
26                         };
27
28                         partition@20000 {
29                                 compatible = "tplink,firmware";
30                                 label = "firmware";
31                                 reg = <0x20000 0x7a0000>;
32                         };
33
34                         partition@7c0000 {
35                                 label = "config";
36                                 reg = <0x7c0000 0x10000>;
37                                 read-only;
38                         };
39
40                         factory: partition@7d0000 {
41                                 label = "factory";
42                                 reg = <0x7d0000 0x30000>;
43                                 read-only;
44                         };
45                 };
46         };
47 };
48
49 &ehci {
50         status = "disabled";
51 };
52
53 &ohci {
54         status = "disabled";
55 };
56
57 &wmac {
58         status = "okay";
59         mtd-mac-address = <&factory 0xf100>;
60         mediatek,mtd-eeprom = <&factory 0x20000>;
61 };
62
63 &ethernet {
64         mtd-mac-address = <&factory 0xf100>;
65         mediatek,portmap = "llllw";
66 };