ramips: cleanup dts files of mt7621 based boards
[openwrt/staging/dedeckeh.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 };
85
86 partition@30000 {
87 label = "u-boot-env";
88 reg = <0x30000 0x10000>;
89 read-only;
90 };
91
92 factory: partition@f30000 {
93 label = "factory";
94 reg = <0xf30000 0x10000>;
95 read-only;
96 };
97
98 partition@50000 {
99 label = "firmware";
100 reg = <0x50000 0xfb0000>;
101 };
102 };
103 };
104
105 &pcie {
106 status = "okay";
107
108 pcie0 {
109 mt76@0,0 {
110 reg = <0x0000 0 0 0 0>;
111 device_type = "pci";
112 mediatek,mtd-eeprom = <&factory 0x0004>;
113 mediatek,2ghz = <0>;
114 };
115 };
116
117 pcie2 {
118 mt76@2,0 {
119 reg = <0x1000 0 0 0 0>;
120 device_type = "pci";
121 mediatek,mtd-eeprom = <&factory 0x8004>;
122 mediatek,5ghz = <0>;
123 };
124 };
125 };
126
127 &ethernet {
128 mtd-mac-address = <&factory 0x0000000c>;
129 };
130
131 &pinctrl {
132 state_default: pinctrl0 {
133 gpio {
134 ralink,group = "rgmii2", "mdio", "wdt";
135 ralink,function = "gpio";
136 };
137 };
138 };