ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / WNDR3700V5.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 = "netgear,wndr3700-v5", "mediatek,mt7621-soc";
10 model = "Netgear WNDR3700v5";
11
12 aliases {
13 led-status = &led_power;
14 };
15
16 memory@0 {
17 device_type = "memory";
18 reg = <0x0 0x8000000>;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,57600 maxcpus=2";
23 };
24
25 gpio-leds {
26 compatible = "gpio-leds";
27
28 wps {
29 label = "wndr3700v5:green:wps";
30 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
31 };
32
33 led_power: power {
34 label = "wndr3700v5:green:power";
35 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
36 };
37 };
38
39 gpio-keys-polled {
40 compatible = "gpio-keys-polled";
41 poll-interval = <20>;
42
43 wps {
44 label = "wndr3700v5:wps";
45 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
46 linux,code = <KEY_WPS_BUTTON>;
47 };
48
49 wifi {
50 label = "wndr3700v5:wifi";
51 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
52 linux,code = <KEY_RFKILL>;
53 };
54
55 reset {
56 label = "wndr3700v5:reset";
57 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
58 linux,code = <KEY_RESTART>;
59 };
60 };
61
62 gpio_export {
63 compatible = "gpio-export";
64 #size-cells = <0>;
65
66 usbpower {
67 gpio-export,name = "usbpower";
68 gpio-export,output = <1>;
69 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
70 };
71 };
72 };
73
74 &spi0 {
75 status = "okay";
76
77 mx25l12805d@0 {
78 #address-cells = <1>;
79 #size-cells = <1>;
80 compatible = "jedec,spi-nor";
81 reg = <0>;
82 spi-max-frequency = <10000000>;
83 m25p,chunked-io = <32>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x0 0x30000>;
88 read-only;
89 };
90
91 partition@30000 {
92 label = "u-boot-env";
93 reg = <0x30000 0x10000>;
94 read-only;
95 };
96
97 factory: partition@f30000 {
98 label = "factory";
99 reg = <0xf30000 0x10000>;
100 read-only;
101 };
102
103 partition@50000 {
104 label = "firmware";
105 reg = <0x50000 0xee0000>;
106 };
107 };
108 };
109
110 &pcie {
111 status = "okay";
112 };
113
114 &pcie0 {
115 mt76@0,0 {
116 reg = <0x0000 0 0 0 0>;
117 mediatek,mtd-eeprom = <&factory 0x8000>;
118 ieee80211-freq-limit = <5000000 6000000>;
119 };
120 };
121
122 &pcie1 {
123 mt76@0,0 {
124 reg = <0x0000 0 0 0 0>;
125 mediatek,mtd-eeprom = <&factory 0x0000>;
126 };
127 };
128
129 &ethernet {
130 mtd-mac-address = <&factory 0x0000000c>;
131 };
132
133 &pinctrl {
134 state_default: pinctrl0 {
135 gpio {
136 ralink,group = "rgmii2", "mdio", "wdt";
137 ralink,function = "gpio";
138 };
139 };
140 };