mediatek: use mac-base
[openwrt/staging/hauke.git] / target / linux / ramips / dts / mt7628an_vocore_vocore2.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4
5 / {
6 compatible = "vocore,vocore2", "mediatek,mt7628an-soc";
7
8 aliases {
9 label-mac-device = &wmac;
10 };
11
12 chosen {
13 bootargs = "console=ttyS2,115200";
14 };
15 };
16
17 &spi0 {
18 status = "okay";
19
20 flash@0 {
21 compatible = "jedec,spi-nor";
22 reg = <0>;
23 spi-max-frequency = <10000000>;
24
25 partitions {
26 compatible = "fixed-partitions";
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 partition@0 {
31 label = "u-boot";
32 reg = <0x0 0x30000>;
33 read-only;
34 };
35
36 partition@30000 {
37 label = "u-boot-env";
38 reg = <0x30000 0x10000>;
39 read-only;
40 };
41
42 factory: partition@40000 {
43 compatible = "nvmem-cells";
44 label = "factory";
45 reg = <0x40000 0x10000>;
46 #address-cells = <1>;
47 #size-cells = <1>;
48 read-only;
49
50 eeprom_factory_0: eeprom@0 {
51 reg = <0x0 0x400>;
52 };
53
54 macaddr_factory_28: macaddr@28 {
55 reg = <0x28 0x6>;
56 };
57 };
58
59 firmware: partition@50000 {
60 compatible = "denx,uimage";
61 label = "firmware";
62 /* reg property is set based on flash size in DTS files */
63 };
64 };
65 };
66 };
67
68 &state_default {
69 gpio {
70 groups = "wled_an", "refclk", "wdt";
71 function = "gpio";
72 };
73 };
74
75 &wmac {
76 status = "okay";
77
78 nvmem-cells = <&eeprom_factory_0>;
79 nvmem-cell-names = "eeprom";
80 };
81
82 &ethernet {
83 nvmem-cells = <&macaddr_factory_28>;
84 nvmem-cell-names = "mac-address";
85 };
86
87 &esw {
88 mediatek,portmap = <0x7>;
89 mediatek,portdisable = <0x3a>;
90 };
91
92 &i2s {
93 status = "okay";
94 };
95
96 &gdma {
97 status = "okay";
98 };
99
100 &pwm {
101 status = "okay";
102 };
103
104 &uart1 {
105 status = "okay";
106 };
107
108 &uart2 {
109 status = "okay";
110 };