ramips: drop redundant status for gpio/gpio0
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_glinet_gl-mt300a.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "glinet,gl-mt300a", "ralink,mt7620a-soc";
8 model = "GL-MT300A";
9
10 aliases {
11 label-mac-device = &wmac;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,115200";
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 wan {
22 label = "gl-mt300a:wan";
23 gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
24 };
25
26 lan {
27 label = "gl-mt300a:lan";
28 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
29 };
30
31 wlan {
32 label = "gl-mt300a:wlan";
33 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
34 };
35
36 usb {
37 label = "gl-mt300a:usb";
38 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 keys {
43 compatible = "gpio-keys";
44
45 reset {
46 label = "reset";
47 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
48 linux,code = <KEY_RESTART>;
49 };
50
51 BTN_0 {
52 label = "BTN_0";
53 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
54 linux,code = <BTN_0>;
55 };
56
57 BTN_1 {
58 label = "BTN_1";
59 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
60 linux,code = <BTN_1>;
61 };
62 };
63 };
64
65 &gpio1 {
66 status = "okay";
67 };
68
69 &gpio2 {
70 status = "okay";
71 };
72
73 &gpio3 {
74 status = "okay";
75 };
76
77 &spi0 {
78 status = "okay";
79
80 flash@0 {
81 compatible = "jedec,spi-nor";
82 reg = <0>;
83 spi-max-frequency = <10000000>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "u-boot";
92 reg = <0x0 0x30000>;
93 };
94
95 partition@30000 {
96 label = "u-boot-env";
97 reg = <0x30000 0x10000>;
98 read-only;
99 };
100
101 factory: partition@40000 {
102 label = "factory";
103 reg = <0x40000 0x10000>;
104 read-only;
105 };
106
107 partition@50000 {
108 compatible = "denx,uimage";
109 label = "firmware";
110 reg = <0x50000 0xf80000>;
111 };
112
113 partition@ff0000 {
114 label = "art";
115 reg = <0xff0000 0x10000>;
116 };
117 };
118 };
119 };
120
121 &sdhci {
122 status = "okay";
123 };
124
125 &ehci {
126 status = "okay";
127 };
128
129 &ohci {
130 status = "okay";
131 };
132
133 &ethernet {
134 mtd-mac-address = <&factory 0x4000>;
135
136 mediatek,portmap = "wllll";
137 };
138
139 &wmac {
140 ralink,mtd-eeprom = <&factory 0x0>;
141 };
142
143 &state_default {
144 gpio {
145 groups = "wled","ephy","uartf","i2c";
146 function = "gpio";
147 };
148 };