ramips: drop redundant status for gpio/gpio0
[openwrt/staging/rmilecki.git] / target / linux / ramips / dts / mt7620a_zbtlink_zbt-ape522ii.dts
1 #include "mt7620a.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc";
8 model = "Zbtlink ZBT-APE522II";
9
10 chosen {
11 bootargs = "console=ttyS0,115200";
12 };
13
14 leds {
15 compatible = "gpio-leds";
16
17 sys1 {
18 label = "green:sys1";
19 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
20 };
21
22 sys2 {
23 label = "green:sys2";
24 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
25 };
26
27 sys3 {
28 label = "green:sys3";
29 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
30 };
31
32 sys4 {
33 label = "green:sys4";
34 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
35 };
36
37 wlan2g4 {
38 label = "green:wlan2g4";
39 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys";
45
46 reset {
47 label = "reset";
48 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
49 linux,code = <KEY_RESTART>;
50 };
51 };
52 };
53
54 &gpio1 {
55 status = "okay";
56 };
57
58 &gpio2 {
59 status = "okay";
60 };
61
62 &gpio3 {
63 status = "okay";
64 };
65
66 &spi0 {
67 status = "okay";
68
69 flash@0 {
70 compatible = "jedec,spi-nor";
71 reg = <0>;
72 spi-max-frequency = <10000000>;
73
74 partitions {
75 compatible = "fixed-partitions";
76 #address-cells = <1>;
77 #size-cells = <1>;
78
79 partition@0 {
80 label = "u-boot";
81 reg = <0x0 0x30000>;
82 };
83
84 partition@30000 {
85 label = "u-boot-env";
86 reg = <0x30000 0x10000>;
87 read-only;
88 };
89
90 factory: partition@40000 {
91 label = "factory";
92 reg = <0x40000 0x10000>;
93 read-only;
94 };
95
96 partition@50000 {
97 compatible = "denx,uimage";
98 label = "firmware";
99 reg = <0x50000 0xf80000>;
100 };
101 };
102 };
103 };
104
105 &ethernet {
106 pinctrl-names = "default";
107 pinctrl-0 = <&ephy_pins>;
108
109 mtd-mac-address = <&factory 0x4>;
110
111 mediatek,portmap = "llllw";
112 };
113
114 &wmac {
115 ralink,mtd-eeprom = <&factory 0x0>;
116 pinctrl-names = "default";
117 pinctrl-0 = <&pa_pins>;
118 };
119
120 &pcie {
121 status = "okay";
122 };
123
124 &pcie0 {
125 mt76@0,0 {
126 reg = <0x0000 0 0 0 0>;
127 mediatek,mtd-eeprom = <&factory 0x8000>;
128 ieee80211-freq-limit = <5000000 6000000>;
129 };
130 };
131
132 &state_default {
133 gpio {
134 groups = "wled", "i2c", "uartf", "wdt";
135 function = "gpio";
136 };
137 };