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