treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / WRTNODE2.dtsi
1 #include "mt7628an.dtsi"
2
3 #include <dt-bindings/input/input.h>
4
5 / {
6 chosen {
7 bootargs = "console=ttyS0,115200";
8 };
9
10 gpio-keys-polled {
11 compatible = "gpio-keys-polled";
12 #address-cells = <1>;
13 #size-cells = <0>;
14 poll-interval = <20>;
15
16 reset {
17 label = "reset";
18 gpios = <&gpio0 5 1>;
19 linux,code = <KEY_RESTART>;
20 };
21 };
22 };
23
24 &spi0 {
25 status = "okay";
26
27 m25p80@0 {
28 #address-cells = <1>;
29 #size-cells = <1>;
30 compatible = "jedec,spi-nor";
31 reg = <0>;
32 spi-max-frequency = <10000000>;
33 m25p,chunked-io = <32>;
34
35 partition@0 {
36 label = "u-boot";
37 reg = <0x0 0x30000>;
38 read-only;
39 };
40
41 partition@30000 {
42 label = "u-boot-env";
43 reg = <0x30000 0x10000>;
44 read-only;
45 };
46
47 factory: partition@40000 {
48 label = "factory";
49 reg = <0x40000 0x10000>;
50 read-only;
51 };
52
53 partition@50000 {
54 label = "firmware";
55 reg = <0x50000 0x1fb0000>;
56 };
57 };
58
59 spidev@1 {
60 #address-cells = <1>;
61 #size-cells = <1>;
62 compatible = "linux,spidev";
63 reg = <1>;
64 spi-max-frequency = <10000000>;
65 };
66 };
67
68 &uart1 {
69 status = "okay";
70 };
71
72 &i2c {
73 status = "okay";
74 };
75
76 &ethernet {
77 mtd-mac-address = <&factory 0x4>;
78 ralink,port-map = "llllw";
79 };
80
81 &sdhci {
82 status = "okay";
83 };
84
85 &pcie {
86 status = "okay";
87 };
88
89 &wmac {
90 status = "okay";
91 };