3d3fde997ec4edcdabfb9f7b2147bcdc23cf0ebe
[openwrt/staging/wigyori.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 compatible = "jedec,spi-nor";
79 reg = <0>;
80 spi-max-frequency = <10000000>;
81 m25p,chunked-io = <32>;
82
83 partitions {
84 compatible = "fixed-partitions";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 partition@0 {
89 label = "u-boot";
90 reg = <0x0 0x30000>;
91 read-only;
92 };
93
94 partition@30000 {
95 label = "u-boot-env";
96 reg = <0x30000 0x10000>;
97 read-only;
98 };
99
100 factory: partition@f30000 {
101 label = "factory";
102 reg = <0xf30000 0x10000>;
103 read-only;
104 };
105
106 partition@50000 {
107 label = "firmware";
108 reg = <0x50000 0xee0000>;
109 };
110 };
111 };
112 };
113
114 &pcie {
115 status = "okay";
116 };
117
118 &pcie0 {
119 mt76@0,0 {
120 reg = <0x0000 0 0 0 0>;
121 mediatek,mtd-eeprom = <&factory 0x8000>;
122 ieee80211-freq-limit = <5000000 6000000>;
123 };
124 };
125
126 &pcie1 {
127 mt76@0,0 {
128 reg = <0x0000 0 0 0 0>;
129 mediatek,mtd-eeprom = <&factory 0x0000>;
130 };
131 };
132
133 &ethernet {
134 mtd-mac-address = <&factory 0x0000000c>;
135 };
136
137 &pinctrl {
138 state_default: pinctrl0 {
139 gpio {
140 ralink,group = "rgmii2", "mdio", "wdt";
141 ralink,function = "gpio";
142 };
143 };
144 };