ramips: add support for TP-Link RE200 v1
[oweals/openwrt.git] / target / linux / ramips / dts / mt7628an_iptime.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7628an.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         aliases {
10                 label-mac-device = &ethernet;
11         };
12
13         keys {
14                 compatible = "gpio-keys";
15
16                 reset {
17                         label = "reset";
18                         gpios = <&gpio1 6 GPIO_ACTIVE_LOW>;
19                         linux,code = <KEY_RESTART>;
20                         debounce-interval = <60>;
21                 };
22
23                 wps {
24                         label = "wps";
25                         gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
26                         linux,code = <KEY_WPS_BUTTON>;
27                         debounce-interval = <60>;
28                 };
29         };
30 };
31
32 &spi0 {
33         status = "okay";
34
35         flash@0 {
36                 compatible = "jedec,spi-nor";
37                 reg = <0>;
38                 spi-max-frequency = <40000000>;
39
40                 partitions {
41                         compatible = "fixed-partitions";
42                         #address-cells = <1>;
43                         #size-cells = <1>;
44
45                         uboot: partition@0 {
46                                 label = "u-boot";
47                                 reg = <0x0 0x20000>;
48                                 read-only;
49                         };
50
51                         partition@20000 {
52                                 label = "config";
53                                 reg = <0x20000 0x10000>;
54                                 read-only;
55                         };
56
57                         factory: partition@30000 {
58                                 label = "factory";
59                                 reg = <0x30000 0x10000>;
60                                 read-only;
61                         };
62
63                         partition@40000 {
64                                 compatible = "denx,uimage";
65                                 label = "firmware";
66                                 reg = <0x40000 0x7c0000>;
67                         };
68                 };
69         };
70 };
71
72 &state_default {
73         gpio {
74                 ralink,group = "uart1", "wdt";
75                 ralink,function = "gpio";
76         };
77 };
78
79 &ehci {
80         status = "disabled";
81 };
82
83 &ohci {
84         status = "disabled";
85 };
86
87 &ethernet {
88         mtd-mac-address = <&uboot 0x1fc20>;
89 };
90
91 &pcie {
92         status = "okay";
93 };
94
95 &pcie0 {
96         wifi@0,0 {
97                 compatible = "mediatek,mt76";
98                 reg = <0x0000 0 0 0 0>;
99                 mediatek,mtd-eeprom = <&factory 0x8000>;
100                 ieee80211-freq-limit = <5000000 6000000>;
101         };
102 };
103
104 &wmac {
105         status = "okay";
106 };