130193c171cee4e51e1a40d95c7168ccd9d8c6f9
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7621_mqmaker_witi.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "mqmaker,witi", "mediatek,mt7621-soc";
8 model = "MQmaker WiTi";
9
10 keys {
11 compatible = "gpio-keys";
12
13 reset {
14 label = "reset";
15 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
16 linux,code = <KEY_RESTART>;
17 };
18 };
19 };
20
21 &i2c {
22 status = "okay";
23
24 rtc@51 {
25 status = "okay";
26 compatible = "nxp,pcf8563";
27 reg = <0x51>;
28 };
29 };
30
31 &sdhci {
32 status = "okay";
33 };
34
35 &spi0 {
36 status = "okay";
37
38 flash@0 {
39 compatible = "jedec,spi-nor";
40 reg = <0>;
41 spi-max-frequency = <10000000>;
42
43 partitions {
44 compatible = "fixed-partitions";
45 #address-cells = <1>;
46 #size-cells = <1>;
47
48 partition@0 {
49 label = "u-boot";
50 reg = <0x0 0x30000>;
51 read-only;
52 };
53
54 partition@30000 {
55 label = "u-boot-env";
56 reg = <0x30000 0x10000>;
57 read-only;
58 };
59
60 factory: partition@40000 {
61 label = "factory";
62 reg = <0x40000 0x10000>;
63 };
64
65 partition@50000 {
66 compatible = "denx,uimage";
67 label = "firmware";
68 reg = <0x50000 0xfb0000>;
69 };
70 };
71 };
72 };
73
74 &pcie {
75 status = "okay";
76 };
77
78 &pcie0 {
79 mt76@0,0 {
80 reg = <0x0000 0 0 0 0>;
81 mediatek,mtd-eeprom = <&factory 0x8000>;
82 ieee80211-freq-limit = <5000000 6000000>;
83 mtd-mac-address = <&factory 0xe000>;
84 };
85 };
86
87 &pcie1 {
88 mt76@0,0 {
89 reg = <0x0000 0 0 0 0>;
90 mediatek,mtd-eeprom = <&factory 0x0000>;
91 ieee80211-freq-limit = <2400000 2500000>;
92 mtd-mac-address = <&factory 0xe000>;
93 };
94 };
95
96 &gmac0 {
97 mtd-mac-address = <&factory 0xe000>;
98 };
99
100 &switch0 {
101 ports {
102 port@0 {
103 status = "okay";
104 label = "lan1";
105 };
106
107 port@1 {
108 status = "okay";
109 label = "lan2";
110 };
111
112 port@2 {
113 status = "okay";
114 label = "lan3";
115 };
116
117 port@3 {
118 status = "okay";
119 label = "lan4";
120 };
121
122 port@4 {
123 status = "okay";
124 label = "wan";
125 mtd-mac-address = <&factory 0xe000>;
126 mac-address-increment = <1>;
127 };
128 };
129 };
130
131 &state_default {
132 gpio {
133 groups = "wdt";
134 function = "gpio";
135 };
136 };