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