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