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