ramips/mt762x: convert devices to interrupt-driven gpio-keys
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620a_ralink_mt7620a-mt7610e-evb.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "ralink,mt7620a-mt7610e-evb", "ralink,mt7620a-soc";
10         model = "Ralink MT7620A evaluation board";
11
12         keys {
13                 compatible = "gpio-keys";
14
15                 wps {
16                         label = "wps";
17                         gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
18                         linux,code = <BTN_0>;
19                 };
20
21                 reset {
22                         label = "reset";
23                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
24                         linux,code = <BTN_1>;
25                 };
26         };
27 };
28
29 &gpio0 {
30         status = "okay";
31 };
32
33 &spi0 {
34         status = "okay";
35
36         m25p80@0 {
37                 compatible = "jedec,spi-nor";
38                 reg = <0>;
39                 spi-max-frequency = <1000000>;
40
41                 partitions {
42                         compatible = "fixed-partitions";
43                         #address-cells = <1>;
44                         #size-cells = <1>;
45
46                         partition@0 {
47                                 label = "u-boot";
48                                 reg = <0x0 0x30000>;
49                                 read-only;
50                         };
51
52                         partition@30000 {
53                                 label = "u-boot-env";
54                                 reg = <0x30000 0x10000>;
55                                 read-only;
56                         };
57
58                         factory: partition@40000 {
59                                 label = "factory";
60                                 reg = <0x40000 0x10000>;
61                                 read-only;
62                         };
63
64                         partition@50000 {
65                                 compatible = "denx,uimage";
66                                 label = "firmware";
67                                 reg = <0x50000 0x7b0000>;
68                         };
69                 };
70         };
71 };
72
73 &ethernet {
74         status = "okay";
75         pinctrl-names = "default";
76         pinctrl-0 = <&ephy_pins>;
77         mediatek,portmap = "llllw";
78 };
79
80 &gsw {
81         mediatek,port4 = "ephy";
82 };
83
84 &sdhci {
85         status = "okay";
86 };
87
88 &pcie {
89         status = "okay";
90 };
91
92 &pcie0 {
93         wifi@0,0 {
94                 reg = <0x0000 0 0 0 0>;
95                 mediatek,mtd-eeprom = <&factory 0x8000>;
96                 ieee80211-freq-limit = <5000000 6000000>;
97         };
98 };