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