treewide: dts: use keycode defines from input dt-binding
[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 = "mediatek,mt7621-eval-board", "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
47 &sdhci {
48 status = "okay";
49 };
50
51 &xhci {
52 status = "okay";
53 };
54
55 &spi0 {
56 status = "okay";
57
58 m25p80@0 {
59 #address-cells = <1>;
60 #size-cells = <1>;
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63 linux,modalias = "m25p80";
64 spi-max-frequency = <10000000>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x0 0x30000>;
69 read-only;
70 };
71
72 partition@30000 {
73 label = "u-boot-env";
74 reg = <0x30000 0x10000>;
75 read-only;
76 };
77
78 factory: partition@40000 {
79 label = "factory";
80 reg = <0x40000 0x10000>;
81 };
82
83 partition@50000 {
84 label = "firmware";
85 reg = <0x50000 0xfb0000>;
86 };
87 };
88 };
89
90 &pcie {
91 status = "okay";
92
93 pcie0 {
94 mt76@0,0 {
95 reg = <0x0000 0 0 0 0>;
96 device_type = "pci";
97 mediatek,mtd-eeprom = <&factory 0x8000>;
98 mediatek,2ghz = <0>;
99 mtd-mac-address = <&factory 0xe000>;
100 };
101 };
102
103 pcie1 {
104 mt76@1,0 {
105 reg = <0x0000 0 0 0 0>;
106 device_type = "pci";
107 mediatek,mtd-eeprom = <&factory 0x0000>;
108 mediatek,5ghz = <0>;
109 mtd-mac-address = <&factory 0xe000>;
110 };
111 };
112 };
113
114 &ethernet {
115 mtd-mac-address = <&factory 0xe000>;
116 };
117
118 &pinctrl {
119 state_default: pinctrl0 {
120 gpio {
121 ralink,group = "wdt", "rgmii2", "jtag", "mdio";
122 ralink,function = "gpio";
123 };
124 };
125 };