treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / M4-8M.dts
1 /dts-v1/;
2
3 #include "rt5350.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "M4", "ralink,rt5350-soc";
9 model = "Poray M4";
10
11 gpio-leds {
12 compatible = "gpio-leds";
13
14 status {
15 label = "m4:blue:status";
16 gpios = <&gpio0 9 1>;
17 };
18 };
19
20 gpio-keys-polled {
21 compatible = "gpio-keys-polled";
22 #address-cells = <1>;
23 #size-cells = <0>;
24 poll-interval = <20>;
25
26 reset {
27 label = "reset";
28 gpios = <&gpio0 10 1>;
29 linux,code = <KEY_RESTART>;
30 };
31 };
32 };
33
34 &spi0 {
35 status = "okay";
36
37 m25p80@0 {
38 #address-cells = <1>;
39 #size-cells = <1>;
40 compatible = "jedec,spi-nor";
41 reg = <0>;
42 linux,modalias = "m25p80", "gd25q64";
43 spi-max-frequency = <10000000>;
44
45 partition@0 {
46 label = "u-boot";
47 reg = <0x0 0x30000>;
48 read-only;
49 };
50
51 partition@30000 {
52 label = "u-boot-env";
53 reg = <0x30000 0x10000>;
54 read-only;
55 };
56
57 factory: partition@40000 {
58 label = "factory";
59 reg = <0x40000 0x10000>;
60 read-only;
61 };
62
63 partition@50000 {
64 label = "firmware";
65 reg = <0x50000 0x7b0000>;
66 };
67 };
68 };
69
70 &pinctrl {
71 state_default: pinctrl0 {
72 gpio {
73 ralink,group = "i2c", "jtag", "uartf";
74 ralink,function = "gpio";
75 };
76 };
77 };
78
79 &ethernet {
80 mtd-mac-address = <&factory 0x4>;
81 };
82
83 &esw {
84 mediatek,portmap = <0x2f>;
85 mediatek,led_polarity = <1>;
86 };
87
88 &wmac {
89 ralink,mtd-eeprom = <&factory 0>;
90 ralink,led-polarity = <1>;
91 };
92
93 &ehci {
94 status = "okay";
95 };
96
97 &ohci {
98 status = "okay";
99 };