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