9b031474a35092f15a48c1ea7935c66221bc52f4
[openwrt/openwrt.git] / target / linux / ramips / dts / WITI.dts
1 /dts-v1/;
2
3 #include "mt7621.dtsi"
4
5 / {
6 compatible = "mediatek,mt7621-eval-board", "mediatek,mt7621-soc";
7 model = "MQmaker WiTi";
8
9 memory@0 {
10 device_type = "memory";
11 reg = <0x0 0x10000000>;
12 };
13
14 chosen {
15 bootargs = "console=ttyS0,57600";
16 };
17
18 sdhci@10130000 {
19 status = "okay";
20 };
21
22 xhci@1E1C0000 {
23 status = "okay";
24 };
25
26 palmbus@1E000000 {
27 spi@b00 {
28 status = "okay";
29
30 m25p80@0 {
31 #address-cells = <1>;
32 #size-cells = <1>;
33 compatible = "jedec,spi-nor";
34 reg = <0 0>;
35 linux,modalias = "m25p80";
36 spi-max-frequency = <10000000>;
37
38 partition@0 {
39 label = "u-boot";
40 reg = <0x0 0x30000>;
41 read-only;
42 };
43
44 partition@30000 {
45 label = "u-boot-env";
46 reg = <0x30000 0x10000>;
47 read-only;
48 };
49
50 factory: partition@40000 {
51 label = "factory";
52 reg = <0x40000 0x10000>;
53 read-only;
54 };
55
56 partition@50000 {
57 label = "firmware";
58 reg = <0x50000 0xfb0000>;
59 };
60 };
61 };
62
63 i2c@900 {
64 compatible = "ralink,i2c-mt7621";
65 reg = <0x900 0x100>;
66 #address-cells = <1>;
67 #size-cells = <0>;
68 pinctrl-names = "default";
69 pinctrl-0 = <&i2c_pins>;
70 status = "okay";
71
72 pcf8563: rtc@51 {
73 status = "okay";
74 compatible = "nxp,pcf8563";
75 reg = <0x51>;
76 };
77 };
78 };
79
80 pcie@1e140000 {
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 mediatek,2ghz = <0>;
89 };
90 };
91
92 pcie1 {
93 mt76@1,0 {
94 reg = <0x0000 0 0 0 0>;
95 device_type = "pci";
96 mediatek,mtd-eeprom = <&factory 0x0000>;
97 mediatek,5ghz = <0>;
98 };
99 };
100 };
101
102 ethernet@1e100000 {
103 mtd-mac-address = <&factory 0xe000>;
104 };
105
106 gpio-leds {
107 compatible = "gpio-leds";
108
109 power {
110 label = "witi:green:power";
111 gpios = <&gpio0 25 1>;
112 };
113
114 sys {
115 label = "witi:green:sys";
116 gpios = <&gpio0 24 1>;
117 };
118
119 internet {
120 label = "witi:green:internet";
121 gpios = <&gpio0 23 1>;
122 };
123 };
124
125 gpio-keys-polled {
126 compatible = "gpio-keys-polled";
127 #address-cells = <1>;
128 #size-cells = <0>;
129 poll-interval = <20>;
130
131 reset {
132 label = "reset";
133 gpios = <&gpio0 18 1>;
134 linux,code = <0x198>;
135 };
136 };
137
138 pinctrl {
139 state_default: pinctrl0 {
140 gpio {
141 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
142 ralink,function = "gpio";
143 };
144 };
145 };
146 };