ramips: fix mac address of miwifi-mini
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / MIWIFI-MINI.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "xiaomi,miwifi-mini", "ralink,mt7620a-soc";
9 model = "Xiaomi MiWiFi Mini";
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 gpio-leds {
16 compatible = "gpio-leds";
17
18 blue {
19 label = "miwifi-mini:blue:status";
20 gpios = <&gpio1 0 1>;
21 };
22
23 yellow {
24 label = "miwifi-mini:yellow:status";
25 gpios = <&gpio1 2 1>;
26 };
27
28 red {
29 label = "miwifi-mini:red:status";
30 gpios = <&gpio1 5 1>;
31 };
32 };
33
34 gpio-keys-polled {
35 compatible = "gpio-keys-polled";
36 #address-cells = <1>;
37 #size-cells = <0>;
38 poll-interval = <20>;
39
40 reset {
41 label = "reset";
42 gpios = <&gpio1 6 0>;
43 linux,code = <KEY_RESTART>;
44 };
45 };
46 };
47
48 &gpio0 {
49 status = "okay";
50 };
51
52 &gpio1 {
53 status = "okay";
54 };
55
56 &gpio2 {
57 status = "okay";
58 };
59
60 &spi0 {
61 status = "okay";
62
63 m25p80@0 {
64 #address-cells = <1>;
65 #size-cells = <1>;
66 compatible = "jedec,spi-nor";
67 reg = <0>;
68 linux,modalias = "m25p80", "w25q128";
69 spi-max-frequency = <10000000>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x0 0x30000>;
74 };
75
76 partition@30000 {
77 label = "u-boot-env";
78 reg = <0x30000 0x10000>;
79 read-only;
80 };
81
82 factory: partition@40000 {
83 label = "factory";
84 reg = <0x40000 0x10000>;
85 read-only;
86 };
87
88 partition@50000 {
89 label = "firmware";
90 reg = <0x50000 0xf80000>;
91 };
92
93 partition@fd0000 {
94 label = "crash";
95 reg = <0xfd0000 0x10000>;
96 };
97
98 partition@fe0000 {
99 label = "reserved";
100 reg = <0xfe0000 0x10000>;
101 read-only;
102 };
103
104 partition@ff0000 {
105 label = "Bdata";
106 reg = <0xff0000 0x10000>;
107 };
108 };
109 };
110
111 &ehci {
112 status = "okay";
113 };
114
115 &ohci {
116 status = "okay";
117 };
118
119 &ethernet {
120 pinctrl-names = "default";
121 pinctrl-0 = <&ephy_pins>;
122 mtd-mac-address = <&factory 0x28>;
123 mediatek,portmap = "llllw";
124 };
125
126 &wmac {
127 ralink,mtd-eeprom = <&factory 0>;
128 };
129
130 &pcie {
131 status = "okay";
132
133 pcie-bridge {
134 mt76@0,0 {
135 reg = <0x0000 0 0 0 0>;
136 device_type = "pci";
137 mediatek,mtd-eeprom = <&factory 0x8000>;
138 mediatek,2ghz = <0>;
139 };
140 };
141 };
142
143 &pinctrl {
144 state_default: pinctrl0 {
145 gpio {
146 ralink,group = "i2c", "rgmii1";
147 ralink,function = "gpio";
148 };
149
150 pa {
151 ralink,group = "pa";
152 ralink,function = "pa";
153 };
154 };
155 };