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