4ef0d70f180b107b24020c7d847c95dbfcfa792e
[openwrt/openwrt.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-boot = &led_power;
14 led-failsafe = &led_power;
15 led-running = &led_power;
16 led-upgrade = &led_power;
17 };
18
19 memory@0 {
20 device_type = "memory";
21 reg = <0x0 0x8000000>;
22 };
23
24 chosen {
25 bootargs = "console=ttyS0,57600 maxcpus=2";
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 wps {
32 label = "wndr3700v5:green:wps";
33 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
34 };
35
36 led_power: power {
37 label = "wndr3700v5:green:power";
38 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 keys {
43 compatible = "gpio-keys-polled";
44 poll-interval = <20>;
45
46 wps {
47 label = "wndr3700v5:wps";
48 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
49 linux,code = <KEY_WPS_BUTTON>;
50 };
51
52 wifi {
53 label = "wndr3700v5:wifi";
54 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
55 linux,code = <KEY_RFKILL>;
56 };
57
58 reset {
59 label = "wndr3700v5:reset";
60 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
61 linux,code = <KEY_RESTART>;
62 };
63 };
64
65 gpio_export {
66 compatible = "gpio-export";
67 #size-cells = <0>;
68
69 usbpower {
70 gpio-export,name = "usbpower";
71 gpio-export,output = <1>;
72 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
73 };
74 };
75 };
76
77 &spi0 {
78 status = "okay";
79
80 mx25l12805d@0 {
81 compatible = "jedec,spi-nor";
82 reg = <0>;
83 spi-max-frequency = <10000000>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "u-boot";
92 reg = <0x0 0x30000>;
93 read-only;
94 };
95
96 partition@30000 {
97 label = "u-boot-env";
98 reg = <0x30000 0x10000>;
99 read-only;
100 };
101
102 factory: partition@f30000 {
103 label = "factory";
104 reg = <0xf30000 0x10000>;
105 read-only;
106 };
107
108 partition@50000 {
109 compatible = "denx,uimage";
110 label = "firmware";
111 reg = <0x50000 0xee0000>;
112 };
113 };
114 };
115 };
116
117 &pcie {
118 status = "okay";
119 };
120
121 &pcie0 {
122 mt76@0,0 {
123 reg = <0x0000 0 0 0 0>;
124 mediatek,mtd-eeprom = <&factory 0x8000>;
125 ieee80211-freq-limit = <5000000 6000000>;
126 };
127 };
128
129 &pcie1 {
130 mt76@0,0 {
131 reg = <0x0000 0 0 0 0>;
132 mediatek,mtd-eeprom = <&factory 0x0000>;
133 };
134 };
135
136 &ethernet {
137 mtd-mac-address = <&factory 0x0000000c>;
138 };
139
140 &pinctrl {
141 state_default: pinctrl0 {
142 gpio {
143 ralink,group = "rgmii2", "mdio", "wdt";
144 ralink,function = "gpio";
145 };
146 };
147 };