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