treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / ramips / dts / MicroWRT.dts
1 /dts-v1/;
2
3 #include "mt7620a.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "microwrt", "ralink,mt7620a-soc";
9 model = "Microduino MicroWRT";
10
11 chosen {
12 bootargs = "console=ttyS0,115200";
13 };
14
15 gpio-keys-polled {
16 compatible = "gpio-keys-polled";
17 #address-cells = <1>;
18 #size-cells = <0>;
19 poll-interval = <20>;
20
21 reset {
22 label = "reset";
23 gpios = <&gpio0 1 1>;
24 linux,code = <KEY_RESTART>;
25 };
26
27 wps {
28 label = "wps";
29 gpios = <&gpio0 2 1>;
30 linux,code = <KEY_WPS_BUTTON>;
31 };
32 };
33 };
34
35 &gpio2 {
36 status = "okay";
37 };
38
39 &gpio3 {
40 status = "okay";
41 };
42
43 &spi0 {
44 status = "okay";
45
46 m25p80@0 {
47 #address-cells = <1>;
48 #size-cells = <1>;
49 compatible = "jedec,spi-nor";
50 reg = <0>;
51 linux,modalias = "m25p80", "w25q128";
52 spi-max-frequency = <10000000>;
53
54 partition@0 {
55 label = "u-boot";
56 reg = <0x0 0x20000>;
57 read-only;
58 };
59
60 partition@20000 {
61 label = "u-boot-env";
62 reg = <0x20000 0x10000>;
63 read-only;
64 };
65
66 factory: partition@30000 {
67 label = "factory";
68 reg = <0x30000 0x10000>;
69 read-only;
70 };
71
72 partition@40000 {
73 label = "firmware";
74 reg = <0x40000 0xfc0000>;
75 };
76 };
77 };
78
79 &ehci {
80 status = "okay";
81 };
82
83 &ohci {
84 status = "okay";
85 };
86
87 &pcie {
88 status = "okay";
89 };
90
91 &ethernet {
92 pinctrl-names = "default";
93 pinctrl-0 = <&ephy_pins>;
94 mtd-mac-address = <&factory 0x4>;
95 mediatek,portmap = "llllw";
96 };
97
98 &wmac {
99 ralink,mtd-eeprom = <&factory 0>;
100 };
101
102 &pinctrl {
103 state_default: pinctrl0 {
104 default {
105 ralink,group = "wled", "i2c", "wdt", "uartf";
106 ralink,function = "gpio";
107 };
108 };
109 };