8150754472a6a285d05e7cefcc42dc6cf2ed0126
[openwrt/staging/wigyori.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 gpio-leds {
19 compatible = "gpio-leds";
20
21 wps {
22 label = "wndr3700v5:green:wps";
23 gpios = <&gpio0 12 1>;
24 };
25
26 power {
27 label = "wndr3700v5:green:power";
28 gpios = <&gpio0 18 1>;
29 };
30 };
31
32 gpio-keys-polled {
33 compatible = "gpio-keys-polled";
34 #address-cells = <1>;
35 #size-cells = <0>;
36 poll-interval = <20>;
37
38 wps {
39 label = "wndr3700v5:wps";
40 gpios = <&gpio0 7 0>;
41 linux,code = <0x211>;
42 };
43
44 wifi {
45 label = "wndr3700v5:wifi";
46 gpios = <&gpio0 8 0>;
47 linux,code = <0xf7>;
48 };
49
50 reset {
51 label = "wndr3700v5:reset";
52 gpios = <&gpio0 14 0>;
53 linux,code = <0x198>;
54 };
55 };
56
57 gpio_export {
58 compatible = "gpio-export";
59 #size-cells = <0>;
60
61 usbpower {
62 gpio-export,name = "usbpower";
63 gpio-export,output = <1>;
64 gpios = <&gpio0 10 1>;
65 };
66 };
67 };
68
69 &spi0 {
70 status = "okay";
71
72 m25p80@0 {
73 #address-cells = <1>;
74 #size-cells = <1>;
75 compatible = "mx25l12805d";
76 reg = <0 0>;
77 linux,modalias = "m25p80", "w25q128";
78 spi-max-frequency = <10000000>;
79
80 partition@0 {
81 label = "u-boot";
82 reg = <0x0 0x30000>;
83 };
84
85 partition@30000 {
86 label = "u-boot-env";
87 reg = <0x30000 0x10000>;
88 read-only;
89 };
90
91 factory: partition@f30000 {
92 label = "factory";
93 reg = <0xf30000 0x10000>;
94 read-only;
95 };
96
97 partition@50000 {
98 label = "firmware";
99 reg = <0x50000 0xfb0000>;
100 };
101 };
102 };
103
104 &pcie {
105 status = "okay";
106
107 pcie0 {
108 mt76@0,0 {
109 reg = <0x0000 0 0 0 0>;
110 device_type = "pci";
111 mediatek,mtd-eeprom = <&factory 0x0004>;
112 mediatek,2ghz = <0>;
113 };
114 };
115
116 pcie2 {
117 mt76@2,0 {
118 reg = <0x1000 0 0 0 0>;
119 device_type = "pci";
120 mediatek,mtd-eeprom = <&factory 0x8004>;
121 mediatek,5ghz = <0>;
122 };
123 };
124 };
125
126 &ethernet {
127 mtd-mac-address = <&factory 0x0000000c>;
128 };
129
130 &pinctrl {
131 state_default: pinctrl0 {
132 gpio {
133 ralink,group = "rgmii2", "mdio", "wdt";
134 ralink,function = "gpio";
135 };
136 };
137 };