treewide: dts: use keycode defines from input dt-binding
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / RT-N56U.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 compatible = "RT-N56U", "ralink,rt3883-soc";
9 model = "Asus RT-N56U";
10
11 nor-flash@1c000000 {
12 compatible = "cfi-flash";
13 reg = <0x1c000000 0x800000>;
14 bank-width = <2>;
15 #address-cells = <1>;
16 #size-cells = <1>;
17
18 partition@0 {
19 reg = <0x0 0x0030000>;
20 label = "u-boot";
21 read-only;
22 };
23
24 partition@30000 {
25 reg = <0x00030000 0x00010000>;
26 label = "u-boot-env";
27 read-only;
28 };
29
30 factory: partition@40000 {
31 reg = <0x00040000 0x00010000>;
32 label = "factory";
33 read-only;
34 };
35
36 partition@50000 {
37 reg = <0x00050000 0x007b0000>;
38 label = "firmware";
39 };
40 };
41
42 rtl8367 {
43 compatible = "realtek,rtl8367";
44 gpio-sda = <&gpio0 1 0>;
45 gpio-sck = <&gpio0 2 0>;
46 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
47 };
48
49 gpio-keys-polled {
50 compatible = "gpio-keys-polled";
51 #address-cells = <1>;
52 #size-cells = <0>;
53 poll-interval = <100>;
54
55 reset {
56 label = "reset";
57 gpios = <&gpio0 13 1>;
58 linux,code = <KEY_RESTART>;
59 };
60
61 wps {
62 label = "wps";
63 gpios = <&gpio1 2 1>;
64 linux,code = <KEY_WPS_BUTTON>;
65 };
66 };
67
68 gpio-leds {
69 compatible = "gpio-leds";
70
71 power {
72 label = "rt-n56u:blue:power";
73 gpios = <&gpio0 0 1>;
74 };
75
76 lan {
77 label = "rt-n56u:blue:lan";
78 gpios = <&gpio0 19 1>;
79 };
80
81 wan {
82 label = "rt-n56u:blue:wan";
83 gpios = <&gpio1 3 1>;
84 };
85
86 usb {
87 label = "rt-n56u:blue:usb";
88 gpios = <&gpio1 0 1>;
89 };
90 };
91 };
92
93 &gpio1 {
94 status = "okay";
95 };
96
97 &pinctrl {
98 state_default: pinctrl0 {
99 gpio {
100 ralink,group = "spi", "i2c", "jtag", "uartf";
101 ralink,function = "gpio";
102 };
103 };
104 };
105
106 &ethernet {
107 mtd-mac-address = <&factory 0x4>;
108
109 port@0 {
110 mediatek,fixed-link = <1000 1 1 1>;
111 };
112 };
113
114 &pci {
115 status = "okay";
116 pinctrl-names = "default";
117 pinctrl-0 = <&pci_pins>;
118
119 pci_pins: pci {
120 pci {
121 ralink,group = "pci";
122 ralink,function = "pci-fnc";
123 };
124 };
125
126 host-bridge {
127 pci-bridge@1 {
128 status = "okay";
129
130 wifi@1814,3091 {
131 compatible = "pci1814,3091";
132 reg = <0x10000 0 0 0 0>;
133 ralink,mtd-eeprom = <&factory 0x8000>;
134 };
135 };
136 };
137 };
138
139 &wmac {
140 status = "okay";
141 ralink,2ghz = <0>;
142 ralink,mtd-eeprom = <&factory 0>;
143 };
144
145 &ehci {
146 status = "okay";
147 };
148
149 &ohci {
150 status = "okay";
151 };