ramips: fix dtc warnings
[oweals/openwrt.git] / target / linux / ramips / dts / WN-AX1167GR.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "iodata,wn-ax1167gr", "mediatek,mt7621-soc";
10         model = "I-O DATA WN-AX1167GR";
11
12         aliases {
13                 led-status = &led_power;
14         };
15
16         memory@0 {
17                 device_type = "memory";
18                 reg = <0x0 0x4000000>;
19         };
20
21         chosen {
22                 bootargs = "console=ttyS0,115200";
23         };
24
25         gpio-leds {
26                 compatible = "gpio-leds";
27
28                 led_power: power {
29                         label = "wn-ax1167gr:green:power";
30                         gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
31                 };
32
33                 wps {
34                         label = "wn-ax1167gr:green:wps";
35                         gpios = <&gpio0 17 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 = <&gpio0 10 GPIO_ACTIVE_LOW>;
46                         linux,code = <KEY_RESTART>;
47                 };
48
49                 wps {
50                         label = "wps";
51                         gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
52                         linux,code = <KEY_WPS_BUTTON>;
53                 };
54
55                 auto {
56                         label = "auto";
57                         gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
58                         linux,code = <BTN_0>;
59                         linux,input-type = <EV_SW>;
60                 };
61
62                 custom {
63                         label = "custom";
64                         gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
65                         linux,code = <BTN_0>;
66                         linux,input-type = <EV_SW>;
67                 };
68         };
69 };
70
71 &spi0 {
72         status = "okay";
73
74         m25p80@0 {
75                 #address-cells = <1>;
76                 #size-cells = <1>;
77                 compatible = "jedec,spi-nor";
78                 reg = <0>;
79                 spi-max-frequency = <10000000>;
80                 m25p,chunked-io = <32>;
81
82                 partition@0 {
83                         label = "Bootloader";
84                         reg = <0x0 0x30000>;
85                         read-only;
86                 };
87
88                 partition@30000 {
89                         label = "Config";
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                 iNIC_rf: partition@50000 {
101                         label = "iNIC_rf";
102                         reg = <0x50000 0x10000>;
103                         read-only;
104                 };
105
106                 partition@60000 {
107                         label = "firmware";
108                         reg = <0x60000 0xf30000>;
109                 };
110
111                 partition@f90000 {
112                         label = "Key";
113                         reg = <0xf90000 0x10000>;
114                         read-only;
115                 };
116
117                 partition@fa0000 {
118                         label = "backup";
119                         reg = <0xfa0000 0x10000>;
120                         read-only;
121                 };
122
123                 partition@fb0000 {
124                         label = "storage";
125                         reg = <0xfb0000 0x50000>;
126                         read-only;
127                 };
128         };
129 };
130
131 &ethernet {
132         mtd-mac-address = <&iNIC_rf 0x4>;
133 };
134
135 &pinctrl {
136         state_default: pinctrl0 {
137                 gpio {
138                         ralink,group = "uart2", "uart3", "jtag";
139                         ralink,function = "gpio";
140                 };
141         };
142 };
143
144 &pcie {
145         status = "okay";
146 };
147
148 &pcie0 {
149         mt76@0,0 {
150                 reg = <0x0000 0 0 0 0>;
151                 mediatek,mtd-eeprom = <&iNIC_rf 0x0>;
152         };
153 };
154
155 &pcie1 {
156         mt76@0,0 {
157                 reg = <0x0000 0 0 0 0>;
158                 mediatek,mtd-eeprom = <&Factory 0x0>;
159                 ieee80211-freq-limit = <5000000 6000000>;
160         };
161 };
162
163 &xhci {
164         status = "disabled";
165 };