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