ramips: set the wifi mac address to the same as LAN on witi
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / WITI.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7 model = "MQmaker WiTi";
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x0 0x10000000>;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,57600";
16 };
17
18 sdhci@10130000 {
19 status = "okay";
20 };
21
22 xhci@1E1C0000 {
23 status = "okay";
24 };
25
26 palmbus@1E000000 {
27 spi@b00 {
28 status = "okay";
29
30 m25p80@0 {
31 #address-cells = <1>;
32 #size-cells = <1>;
33 compatible = "jedec,spi-nor";
34 reg = <0 0>;
35 linux,modalias = "m25p80";
36 spi-max-frequency = <10000000>;
37
38 partition@0 {
39 label = "u-boot";
40 reg = <0x0 0x30000>;
41 read-only;
42 };
43
44 partition@30000 {
45 label = "u-boot-env";
46 reg = <0x30000 0x10000>;
47 read-only;
48 };
49
50 factory: partition@40000 {
51 label = "factory";
52 reg = <0x40000 0x10000>;
53 };
54
55 partition@50000 {
56 label = "firmware";
57 reg = <0x50000 0xfb0000>;
58 };
59 };
60 };
61
62 i2c@900 {
63 compatible = "ralink,i2c-mt7621";
64 reg = <0x900 0x100>;
65 #address-cells = <1>;
66 #size-cells = <0>;
67 pinctrl-names = "default";
68 pinctrl-0 = <&i2c_pins>;
69 status = "okay";
70
71 pcf8563: rtc@51 {
72 status = "okay";
73 compatible = "nxp,pcf8563";
74 reg = <0x51>;
75 };
76 };
77 };
78
79 pcie@1e140000 {
80 status = "okay";
81
82 pcie0 {
83 mt76@0,0 {
84 reg = <0x0000 0 0 0 0>;
85 device_type = "pci";
86 mediatek,mtd-eeprom = <&factory 0x8000>;
87 mediatek,2ghz = <0>;
88 mtd-mac-address = <&factory 0xe000>;
89 };
90 };
91
92 pcie1 {
93 mt76@1,0 {
94 reg = <0x0000 0 0 0 0>;
95 device_type = "pci";
96 mediatek,mtd-eeprom = <&factory 0x0000>;
97 mediatek,5ghz = <0>;
98 mtd-mac-address = <&factory 0xe000>;
99 };
100 };
101 };
102
103 ethernet@1e100000 {
104 mtd-mac-address = <&factory 0xe000>;
105 };
106
107 gpio-leds {
108 compatible = "gpio-leds";
109
110 power {
111 label = "witi:green:power";
112 gpios = <&gpio0 25 1>;
113 };
114
115 sys {
116 label = "witi:green:sys";
117 gpios = <&gpio0 24 1>;
118 };
119
120 internet {
121 label = "witi:green:internet";
122 gpios = <&gpio0 23 1>;
123 };
124 };
125
126 gpio-keys-polled {
127 compatible = "gpio-keys-polled";
128 #address-cells = <1>;
129 #size-cells = <0>;
130 poll-interval = <20>;
131
132 reset {
133 label = "reset";
134 gpios = <&gpio0 18 1>;
135 linux,code = <0x198>;
136 };
137 };
138
139 pinctrl {
140 state_default: pinctrl0 {
141 gpio {
142 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
143 ralink,function = "gpio";
144 };
145 };
146 };
147 };