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