ramips: Change all '/include/' clauses to '#include' so preprocessing can be done...
[openwrt.git] / target / linux / ramips / dts / WNDR3700V5.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6         compatible = "mediatek,mt7621-eval-board","ralink,mt7621-soc";
7         model = "Netgear WNDR3700v5";
8
9         memory@0 {
10                 device_type = "memory";
11                 reg = <0x0 0x8000000>;
12         };
13
14         chosen {
15                 bootargs = "console=ttyS0,57600 maxcpus=2";
16         };
17
18         palmbus@1E000000 {
19                 spi@b00 {
20                         status = "okay";
21
22                 m25p80@0 {
23                                 #address-cells = <1>;
24                                 #size-cells = <1>;
25                                 compatible = "mx25l12805d";
26                                 reg = <0 0>;
27                                 linux,modalias = "m25p80", "w25q128";
28                                 spi-max-frequency = <10000000>;
29
30                                 partition@0 {
31                                         label = "u-boot";
32                                         reg = <0x0 0x30000>;
33                                 };
34
35                                 partition@30000 {
36                                         label = "u-boot-env";
37                                         reg = <0x30000 0x10000>;
38                                         read-only;
39                                 };
40
41                                 factory: partition@f30000 {
42                                         label = "factory";
43                                         reg = <0xf30000 0x10000>;
44                                         read-only;
45                                 };
46
47                                 partition@50000 {
48                                         label = "firmware";
49                                         reg = <0x50000 0xfb0000>;
50                                 };
51                         };
52                 };
53         };
54
55         pcie@1e140000 {
56                 status = "okay";
57
58                 pcie0 {
59                         mt76@0,0 {
60                                 reg = <0x0000 0 0 0 0>;
61                                 device_type = "pci";
62                                 mediatek,mtd-eeprom = <&factory 0x0004>;
63                                 mediatek,2ghz = <0>;
64                         };
65                 };
66
67                 pcie2 {
68                         mt76@2,0 {
69                                 reg = <0x1000 0 0 0 0>;
70                                 device_type = "pci";
71                                 mediatek,mtd-eeprom = <&factory 0x8004>;
72                                 mediatek,5ghz = <0>;
73                         };
74                 };
75         };
76
77         ethernet@1e100000 {
78                 mtd-mac-address = <&factory 0x0000000c>;
79         };
80
81         pinctrl {
82                 state_default: pinctrl0 {
83                         gpio {
84                                 ralink,group =  "rgmii2", "mdio", "wdt";
85                                 ralink,function = "gpio";
86                         };
87                 };
88         };
89
90         gpio-leds {
91                 compatible = "gpio-leds";
92
93                 wps {
94                         label = "wndr3700v5:green:wps";
95                         gpios = <&gpio0 12 1>;
96                 };
97
98                 power {
99                         label = "wndr3700v5:green:power";
100                         gpios = <&gpio0 18 1>;
101                 };
102         };
103
104         gpio-keys-polled {
105                 compatible = "gpio-keys-polled";
106                 #address-cells = <1>;
107                 #size-cells = <0>;
108                 poll-interval = <20>;
109
110                 wps {
111                         label = "wndr3700v5:wps";
112                         gpios = <&gpio0 7 0>;
113                         linux,code = <0x211>;
114                 };
115
116                 wifi {
117                         label = "wndr3700v5:wifi";
118                         gpios = <&gpio0 8 0>;
119                         linux,code = <0xf7>;
120                 };
121
122                 reset {
123                         label = "wndr3700v5:reset";
124                         gpios = <&gpio0 14 0>;
125                         linux,code = <0x198>;
126                 };
127         };
128
129         gpio_export {
130                 compatible = "gpio-export";
131                 #size-cells = <0>;
132
133                 usbpower {
134                         gpio-export,name = "usbpower";
135                         gpio-export,output = <1>;
136                         gpios = <&gpio0 10 1>;
137                 };
138         };
139 };