Fresh pull from upstream
[librecmc/librecmc.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         model = "Netgear WNDR3700v5";
9
10         memory@0 {
11                 device_type = "memory";
12                 reg = <0x0 0x8000000>;
13         };
14
15         chosen {
16                 bootargs = "console=ttyS0,57600 maxcpus=2";
17         };
18
19         gpio-leds {
20                 compatible = "gpio-leds";
21
22                 wps {
23                         label = "wndr3700v5:green:wps";
24                         gpios = <&gpio0 12 1>;
25                 };
26
27                 power {
28                         label = "wndr3700v5:green:power";
29                         gpios = <&gpio0 18 1>;
30                 };
31         };
32
33         gpio-keys-polled {
34                 compatible = "gpio-keys-polled";
35                 #address-cells = <1>;
36                 #size-cells = <0>;
37                 poll-interval = <20>;
38
39                 wps {
40                         label = "wndr3700v5:wps";
41                         gpios = <&gpio0 7 0>;
42                         linux,code = <KEY_WPS_BUTTON>;
43                 };
44
45                 wifi {
46                         label = "wndr3700v5:wifi";
47                         gpios = <&gpio0 8 0>;
48                         linux,code = <KEY_RFKILL>;
49                 };
50
51                 reset {
52                         label = "wndr3700v5:reset";
53                         gpios = <&gpio0 14 0>;
54                         linux,code = <KEY_RESTART>;
55                 };
56         };
57
58         gpio_export {
59                 compatible = "gpio-export";
60                 #size-cells = <0>;
61
62                 usbpower {
63                         gpio-export,name = "usbpower";
64                         gpio-export,output = <1>;
65                         gpios = <&gpio0 10 1>;
66                 };
67         };
68 };
69
70 &spi0 {
71         status = "okay";
72
73         mx25l12805d@0 {
74                 #address-cells = <1>;
75                 #size-cells = <1>;
76                 compatible = "jedec,spi-nor";
77                 reg = <0>;
78                 spi-max-frequency = <10000000>;
79                 m25p,chunked-io = <32>;
80
81                 partition@0 {
82                         label = "u-boot";
83                         reg = <0x0 0x30000>;
84                         read-only;
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 0xee0000>;
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 0x8000>;
114                         mediatek,2ghz = <0>;
115                 };
116         };
117
118         pcie1 {
119                 mt76@1,0 {
120                         reg = <0x0000 0 0 0 0>;
121                         device_type = "pci";
122                         mediatek,mtd-eeprom = <&factory 0x0000>;
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 };