ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / ZBT-APE522II.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 = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc";
10 model = "ZBT-APE522II";
11
12 chosen {
13 bootargs = "console=ttyS0,115200";
14 };
15
16 gpio-leds {
17 compatible = "gpio-leds";
18
19 sys1 {
20 label = "zbt-ape522ii:green:sys1";
21 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
22 };
23
24 sys2 {
25 label = "zbt-ape522ii:green:sys2";
26 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
27 };
28
29 sys3 {
30 label = "zbt-ape522ii:green:sys3";
31 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
32 };
33
34 sys4 {
35 label = "zbt-ape522ii:green:sys4";
36 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
37 };
38
39 wlan2g4 {
40 label = "zbt-ape522ii:green:wlan2g4";
41 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
42 };
43 };
44
45 gpio-keys-polled {
46 compatible = "gpio-keys-polled";
47 poll-interval = <20>;
48
49 reset {
50 label = "reset";
51 gpios = <&gpio0 2 GPIO_ACTIVE_HIGH>;
52 linux,code = <KEY_RESTART>;
53 };
54 };
55 };
56
57 &gpio0 {
58 status = "okay";
59 };
60
61 &gpio1 {
62 status = "okay";
63 };
64
65 &gpio2 {
66 status = "okay";
67 };
68
69 &gpio3 {
70 status = "okay";
71 };
72
73 &spi0 {
74 status = "okay";
75
76 m25p80@0 {
77 #address-cells = <1>;
78 #size-cells = <1>;
79 compatible = "jedec,spi-nor";
80 reg = <0>;
81 spi-max-frequency = <10000000>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x0 0x30000>;
86 };
87
88 partition@30000 {
89 label = "u-boot-env";
90 reg = <0x30000 0x10000>;
91 read-only;
92 };
93
94 factory: partition@40000 {
95 label = "factory";
96 reg = <0x40000 0x10000>;
97 read-only;
98 };
99
100 partition@50000 {
101 label = "firmware";
102 reg = <0x50000 0xf80000>;
103 };
104 };
105 };
106
107 &ethernet {
108 pinctrl-names = "default";
109 pinctrl-0 = <&ephy_pins>;
110 mtd-mac-address = <&factory 0x4>;
111 mediatek,portmap = "wllll";
112 };
113
114 &wmac {
115 ralink,mtd-eeprom = <&factory 0>;
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 &pinctrl {
133 state_default: pinctrl0 {
134 gpio {
135 ralink,group = "wled", "i2c", "uartf", "wdt";
136 ralink,function = "gpio";
137 };
138 };
139 };