ramips: add support for I-O DATA WNPR2600G
[oweals/openwrt.git] / target / linux / ramips / dts / mt7621_mqmaker_witi.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "mqmaker,witi", "mediatek,mt7621-soc";
10         model = "MQmaker WiTi";
11
12         chosen {
13                 bootargs = "console=ttyS0,57600";
14         };
15
16         palmbus: palmbus@1E000000 {
17                 i2c@900 {
18                         status = "okay";
19
20                         pcf8563: rtc@51 {
21                                 status = "okay";
22                                 compatible = "nxp,pcf8563";
23                                 reg = <0x51>;
24                         };
25                 };
26         };
27
28         keys {
29                 compatible = "gpio-keys-polled";
30                 poll-interval = <20>;
31
32                 reset {
33                         label = "reset";
34                         gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
35                         linux,code = <KEY_RESTART>;
36                 };
37         };
38 };
39
40 &sdhci {
41         status = "okay";
42 };
43
44 &spi0 {
45         status = "okay";
46
47         m25p80@0 {
48                 compatible = "jedec,spi-nor";
49                 reg = <0>;
50                 spi-max-frequency = <10000000>;
51
52                 partitions {
53                         compatible = "fixed-partitions";
54                         #address-cells = <1>;
55                         #size-cells = <1>;
56
57                         partition@0 {
58                                 label = "u-boot";
59                                 reg = <0x0 0x30000>;
60                                 read-only;
61                         };
62
63                         partition@30000 {
64                                 label = "u-boot-env";
65                                 reg = <0x30000 0x10000>;
66                                 read-only;
67                         };
68
69                         factory: partition@40000 {
70                                 label = "factory";
71                                 reg = <0x40000 0x10000>;
72                         };
73
74                         partition@50000 {
75                                 compatible = "denx,uimage";
76                                 label = "firmware";
77                                 reg = <0x50000 0xfb0000>;
78                         };
79                 };
80         };
81 };
82
83 &pcie {
84         status = "okay";
85 };
86
87 &pcie0 {
88         mt76@0,0 {
89                 reg = <0x0000 0 0 0 0>;
90                 mediatek,mtd-eeprom = <&factory 0x8000>;
91                 ieee80211-freq-limit = <5000000 6000000>;
92                 mtd-mac-address = <&factory 0xe000>;
93         };
94 };
95
96 &pcie1 {
97         mt76@0,0 {
98                 reg = <0x0000 0 0 0 0>;
99                 mediatek,mtd-eeprom = <&factory 0x0000>;
100                 ieee80211-freq-limit = <2400000 2500000>;
101                 mtd-mac-address = <&factory 0xe000>;
102         };
103 };
104
105 &ethernet {
106         mtd-mac-address = <&factory 0xe000>;
107 };
108
109 &pinctrl {
110         state_default: pinctrl0 {
111                 gpio {
112                         ralink,group = "wdt", "rgmii2", "jtag", "mdio";
113                         ralink,function = "gpio";
114                 };
115         };
116 };