d8ddf10e2ca0b82f5afe3d5622a5db54f378762a
[openwrt/staging/wigyori.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 keys {
14 compatible = "gpio-keys-polled";
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
31 &xhci {
32 status = "okay";
33 };
34
35 &spi0 {
36 status = "okay";
37
38 m25p80@0 {
39 compatible = "jedec,spi-nor";
40 reg = <0>;
41 spi-max-frequency = <10000000>;
42 m25p,chunked-io = <32>;
43
44 partitions {
45 compatible = "fixed-partitions";
46 #address-cells = <1>;
47 #size-cells = <1>;
48
49 partition@0 {
50 label = "u-boot";
51 reg = <0x0 0x30000>;
52 read-only;
53 };
54
55 partition@30000 {
56 label = "u-boot-env";
57 reg = <0x30000 0x10000>;
58 read-only;
59 };
60
61 factory: partition@40000 {
62 label = "factory";
63 reg = <0x40000 0x10000>;
64 read-only;
65 };
66
67 partition@50000 {
68 compatible = "denx,uimage";
69 label = "firmware";
70 reg = <0x50000 0xfb0000>;
71 };
72 };
73 };
74 };
75
76 &pcie {
77 status = "okay";
78 };
79
80 &pcie0 {
81 wifi@0,0 {
82 compatible = "pci14c3,7603";
83 reg = <0x0000 0 0 0 0>;
84 mediatek,mtd-eeprom = <&factory 0x0000>;
85 };
86 };
87
88 &pcie1 {
89 wifi@0,0 {
90 compatible = "pci14c3,7662";
91 reg = <0x0000 0 0 0 0>;
92 mediatek,mtd-eeprom = <&factory 0x8000>;
93 ieee80211-freq-limit = <5000000 6000000>;
94 };
95 };
96
97 &ethernet {
98 mtd-mac-address = <&factory 0xe000>;
99 };
100
101 &pinctrl {
102 state_default: pinctrl0 {
103 gpio {
104 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
105 ralink,function = "gpio";
106 };
107 };
108 };