ramips: fix pci/pcie related dtc warnings
[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-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 #address-cells = <1>;
42 #size-cells = <0>;
43 poll-interval = <20>;
44
45 wps {
46 label = "wndr3700v5:wps";
47 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
48 linux,code = <KEY_WPS_BUTTON>;
49 };
50
51 wifi {
52 label = "wndr3700v5:wifi";
53 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
54 linux,code = <KEY_RFKILL>;
55 };
56
57 reset {
58 label = "wndr3700v5:reset";
59 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
60 linux,code = <KEY_RESTART>;
61 };
62 };
63
64 gpio_export {
65 compatible = "gpio-export";
66 #size-cells = <0>;
67
68 usbpower {
69 gpio-export,name = "usbpower";
70 gpio-export,output = <1>;
71 gpios = <&gpio0 10 GPIO_ACTIVE_HIGH>;
72 };
73 };
74 };
75
76 &spi0 {
77 status = "okay";
78
79 mx25l12805d@0 {
80 #address-cells = <1>;
81 #size-cells = <1>;
82 compatible = "jedec,spi-nor";
83 reg = <0>;
84 spi-max-frequency = <10000000>;
85 m25p,chunked-io = <32>;
86
87 partition@0 {
88 label = "u-boot";
89 reg = <0x0 0x30000>;
90 read-only;
91 };
92
93 partition@30000 {
94 label = "u-boot-env";
95 reg = <0x30000 0x10000>;
96 read-only;
97 };
98
99 factory: partition@f30000 {
100 label = "factory";
101 reg = <0xf30000 0x10000>;
102 read-only;
103 };
104
105 partition@50000 {
106 label = "firmware";
107 reg = <0x50000 0xee0000>;
108 };
109 };
110 };
111
112 &pcie {
113 status = "okay";
114 };
115
116 &pcie0 {
117 mt76@0,0 {
118 reg = <0x0000 0 0 0 0>;
119 mediatek,mtd-eeprom = <&factory 0x8000>;
120 ieee80211-freq-limit = <5000000 6000000>;
121 };
122 };
123
124 &pcie1 {
125 mt76@0,0 {
126 reg = <0x0000 0 0 0 0>;
127 mediatek,mtd-eeprom = <&factory 0x0000>;
128 };
129 };
130
131 &ethernet {
132 mtd-mac-address = <&factory 0x0000000c>;
133 };
134
135 &pinctrl {
136 state_default: pinctrl0 {
137 gpio {
138 ralink,group = "rgmii2", "mdio", "wdt";
139 ralink,function = "gpio";
140 };
141 };
142 };