ramips: add support for TP-Link RE200 v1
[oweals/openwrt.git] / target / linux / ramips / dts / mt7620a_netgear_ex3700_ex6130.dtsi
1 #include <dt-bindings/gpio/gpio.h>
2 #include <dt-bindings/input/input.h>
3
4 #include "mt7620a.dtsi"
5
6 / {
7         chosen {
8                 bootargs = "console=ttyS0,57600";
9         };
10
11         keys {
12                 compatible = "gpio-keys";
13
14                 reset {
15                         label = "reset";
16                         gpios = <&gpio2 26 GPIO_ACTIVE_LOW>;
17                         linux,code = <KEY_RESTART>;
18                 };
19
20                 wps {
21                         label = "wps";
22                         gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
23                         linux,code = <KEY_WPS_BUTTON>;
24                 };
25         };
26 };
27
28 &gpio0 {
29         status = "okay";
30 };
31
32 &gpio2 {
33         status = "okay";
34 };
35
36 &spi0 {
37         status = "okay";
38
39         m25p80@0 {
40                 compatible = "jedec,spi-nor";
41                 reg = <0>;
42                 spi-max-frequency = <50000000>;
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 = "config";
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 0x790000>;
71                         };
72
73                         partition@7e0000 {
74                                 label = "board_data";
75                                 reg = <0x7e0000 0x10000>;
76                                 read-only;
77                         };
78
79                         partition@7f0000 {
80                                 label = "nvram";
81                                 reg = <0x7f0000 0x10000>;
82                                 read-only;
83                         };
84                 };
85         };
86 };
87
88 &pcie {
89         status = "okay";
90 };
91
92 &pcie0 {
93         mt76@0,0 {
94                 reg = <0x0000 0 0 0 0>;
95                 mediatek,mtd-eeprom = <&factory 0x8000>;
96                 ieee80211-freq-limit = <5000000 6000000>;
97         };
98 };
99
100 &ethernet {
101         mtd-mac-address = <&factory 0x28>;
102 };
103
104 &wmac {
105         ralink,mtd-eeprom = <&factory 0x0>;
106 };
107
108 &state_default {
109         default {
110                 ralink,group = "i2c", "rgmii2", "spi refclk";
111                 ralink,function = "gpio";
112         };
113 };