ramips: add a script to fix up the broken mac address on the witi board
[openwrt/openwrt.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 };
89 };
90
91 pcie1 {
92 mt76@1,0 {
93 reg = <0x0000 0 0 0 0>;
94 device_type = "pci";
95 mediatek,mtd-eeprom = <&factory 0x0000>;
96 mediatek,5ghz = <0>;
97 };
98 };
99 };
100
101 ethernet@1e100000 {
102 mtd-mac-address = <&factory 0xe000>;
103 };
104
105 gpio-leds {
106 compatible = "gpio-leds";
107
108 power {
109 label = "witi:green:power";
110 gpios = <&gpio0 25 1>;
111 };
112
113 sys {
114 label = "witi:green:sys";
115 gpios = <&gpio0 24 1>;
116 };
117
118 internet {
119 label = "witi:green:internet";
120 gpios = <&gpio0 23 1>;
121 };
122 };
123
124 gpio-keys-polled {
125 compatible = "gpio-keys-polled";
126 #address-cells = <1>;
127 #size-cells = <0>;
128 poll-interval = <20>;
129
130 reset {
131 label = "reset";
132 gpios = <&gpio0 18 1>;
133 linux,code = <0x198>;
134 };
135 };
136
137 pinctrl {
138 state_default: pinctrl0 {
139 gpio {
140 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
141 ralink,function = "gpio";
142 };
143 };
144 };
145 };