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