ramips: Archer C50v1: fix power led
[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 compatible = "wevo,w2914ns-v2", "mediatek,mt7621-soc";
8
9 chosen {
10 bootargs = "console=ttyS0,57600";
11 };
12
13 gpio-keys-polled {
14 compatible = "gpio-keys-polled";
15 #address-cells = <1>;
16 #size-cells = <0>;
17 poll-interval = <20>;
18
19 reset {
20 label = "reset";
21 gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24
25 wps {
26 label = "wps";
27 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_WPS_BUTTON>;
29 };
30 };
31 };
32
33 &xhci {
34 status = "okay";
35 };
36
37 &spi0 {
38 status = "okay";
39
40 m25p80@0 {
41 #address-cells = <1>;
42 #size-cells = <1>;
43 compatible = "jedec,spi-nor";
44 reg = <0>;
45 spi-max-frequency = <10000000>;
46 m25p,chunked-io = <32>;
47
48 partition@0 {
49 label = "u-boot";
50 reg = <0x0 0x30000>;
51 read-only;
52 };
53
54 partition@30000 {
55 label = "u-boot-env";
56 reg = <0x30000 0x10000>;
57 read-only;
58 };
59
60 factory: partition@40000 {
61 label = "factory";
62 reg = <0x40000 0x10000>;
63 read-only;
64 };
65
66 partition@50000 {
67 label = "firmware";
68 reg = <0x50000 0xfb0000>;
69 };
70 };
71 };
72
73 &pcie {
74 status = "okay";
75
76 pcie0 {
77 wifi@14c3,7603 {
78 compatible = "pci14c3,7603";
79 reg = <0x0000 0 0 0 0>;
80 mediatek,mtd-eeprom = <&factory 0x0000>;
81 };
82 };
83
84 pcie1 {
85 wifi@14c3,7662 {
86 compatible = "pci14c3,7662";
87 reg = <0x0000 0 0 0 0>;
88 mediatek,mtd-eeprom = <&factory 0x8000>;
89 ieee80211-freq-limit = <5000000 6000000>;
90 };
91 };
92 };
93
94 &ethernet {
95 mtd-mac-address = <&factory 0xe000>;
96 };
97
98 &pinctrl {
99 state_default: pinctrl0 {
100 gpio {
101 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
102 ralink,function = "gpio";
103 };
104 };
105 };