ramips: Archer C50v1: fix power led
[openwrt/openwrt.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 = "netgear,wndr3700-v5", "mediatek,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 mx25l12805d@0 {
75 #address-cells = <1>;
76 #size-cells = <1>;
77 compatible = "jedec,spi-nor";
78 reg = <0>;
79 spi-max-frequency = <10000000>;
80 m25p,chunked-io = <32>;
81
82 partition@0 {
83 label = "u-boot";
84 reg = <0x0 0x30000>;
85 read-only;
86 };
87
88 partition@30000 {
89 label = "u-boot-env";
90 reg = <0x30000 0x10000>;
91 read-only;
92 };
93
94 factory: partition@f30000 {
95 label = "factory";
96 reg = <0xf30000 0x10000>;
97 read-only;
98 };
99
100 partition@50000 {
101 label = "firmware";
102 reg = <0x50000 0xee0000>;
103 };
104 };
105 };
106
107 &pcie {
108 status = "okay";
109
110 pcie0 {
111 mt76@0,0 {
112 reg = <0x0000 0 0 0 0>;
113 device_type = "pci";
114 mediatek,mtd-eeprom = <&factory 0x8000>;
115 ieee80211-freq-limit = <5000000 6000000>;
116 };
117 };
118
119 pcie1 {
120 mt76@1,0 {
121 reg = <0x0000 0 0 0 0>;
122 device_type = "pci";
123 mediatek,mtd-eeprom = <&factory 0x0000>;
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 };