e80b1877d416c0bcdb0f3dd11ddb3088f3adcf98
[openwrt/openwrt.git] / target / linux / ramips / dts / W2914NSV2.dtsi
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 chosen {
8 bootargs = "console=ttyS0,57600";
9 };
10
11 gpio-keys-polled {
12 compatible = "gpio-keys-polled";
13 #address-cells = <1>;
14 #size-cells = <0>;
15 poll-interval = <20>;
16
17 reset {
18 label = "reset";
19 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
20 linux,code = <KEY_RESTART>;
21 };
22
23 wps {
24 label = "wps";
25 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
26 linux,code = <KEY_WPS_BUTTON>;
27 };
28 };
29
30 gpio-leds {
31 compatible = "gpio-leds";
32
33 // Only USB LED is connected to GPIO.
34 // All of other LEDs are connected directly to
35 // switch, WiFi chip, Vcc, so they are not controllable
36 // via GPIO
37
38 usb {
39 label = "w2914nsv2:green:usb";
40 gpios = <&gpio0 27 GPIO_ACTIVE_LOW>;
41 };
42 };
43 };
44
45 &xhci {
46 status = "okay";
47 };
48
49 &spi0 {
50 status = "okay";
51
52 m25p80@0 {
53 #address-cells = <1>;
54 #size-cells = <1>;
55 compatible = "jedec,spi-nor";
56 reg = <0>;
57 spi-max-frequency = <10000000>;
58 m25p,chunked-io = <32>;
59
60 partition@0 {
61 label = "u-boot";
62 reg = <0x0 0x30000>;
63 read-only;
64 };
65
66 partition@30000 {
67 label = "u-boot-env";
68 reg = <0x30000 0x10000>;
69 read-only;
70 };
71
72 factory: partition@40000 {
73 label = "factory";
74 reg = <0x40000 0x10000>;
75 read-only;
76 };
77
78 partition@50000 {
79 label = "firmware";
80 reg = <0x50000 0xfb0000>;
81 };
82 };
83 };
84
85 &pcie {
86 status = "okay";
87
88 pcie0 {
89 wifi@14c3,7662 {
90 compatible = "pci14c3,7662";
91 reg = <0x0000 0 0 0 0>;
92 mediatek,mtd-eeprom = <&factory 0x0000>;
93 mediatek,5ghz = <0>;
94 };
95 };
96
97 pcie1 {
98 wifi@14c3,7603 {
99 compatible = "pci14c3,7603";
100 reg = <0x0000 0 0 0 0>;
101 mediatek,mtd-eeprom = <&factory 0x8000>;
102 mediatek,2ghz = <0>;
103 };
104 };
105 };
106
107 &ethernet {
108 mtd-mac-address = <&factory 0xe000>;
109 };
110
111 &pinctrl {
112 state_default: pinctrl0 {
113 gpio {
114 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
115 ralink,function = "gpio";
116 };
117 };
118 };