treewide: dts: use keycode defines from input dt-binding
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV4525PW.dts
1 /dts-v1/;
2
3 #include "danube.dtsi"
4
5 #include <dt-bindings/input/input.h>
6
7 / {
8 model = "ARV4525PW - Speedport W501V Typ A";
9
10 aliases {
11 /* we dont have a power led, lets use the online led */
12 led-boot = &online;
13 led-failsafe = &online;
14
15 led-dsl = &dsl;
16 led-internet = &online;
17 led-wifi = &wifi;
18 };
19
20 memory@0 {
21 reg = <0x0 0x2000000>;
22 };
23
24 sram@1F000000 {
25 vmmc@107000 {
26 status = "okay";
27 gpios = <&gpio 31 GPIO_ACTIVE_HIGH>;
28 };
29 };
30
31 fpi@10000000 {
32 localbus@0 {
33 nor-boot@0 {
34 compatible = "lantiq,nor";
35 bank-width = <2>;
36 reg = <0 0x0 0x2000000>;
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 partition@0 {
46 label = "uboot";
47 reg = <0x00000 0x10000>;
48 read-only;
49 };
50
51 partition@10000 {
52 label = "uboot_env";
53 reg = <0x10000 0x10000>;
54 read-only;
55 };
56
57 partition@20000 {
58 label = "firmware";
59 reg = <0x20000 0x3d0000>;
60 };
61
62 boardconfig: partition@400000 {
63 label = "boardconfig";
64 reg = <0x3f0000 0x10000>;
65 read-only;
66 };
67 };
68 };
69
70 ath5k_eep {
71 compatible = "ath5k,eeprom";
72 ath,eep-flash = <&boardconfig 0x400>;
73 ath,mac-offset = <0x0>;
74 ath,eep-swap;
75 };
76 };
77
78 gpio: pinmux@E100B10 {
79 pinctrl-names = "default";
80 pinctrl-0 = <&state_default>;
81
82 state_default: pinmux {
83 pci_in {
84 lantiq,groups = "req1";
85 lantiq,function = "pci";
86 lantiq,open-drain = <1>;
87 lantiq,pull = <2>;
88 lantiq,output = <0>;
89 };
90 pci_out {
91 lantiq,groups = "gnt1";
92 lantiq,function = "pci";
93 lantiq,output = <1>;
94 };
95 pci_rst {
96 lantiq,pins = "io21";
97 lantiq,pull = <2>;
98 lantiq,output = <1>;
99 };
100 relay {
101 lantiq,pins = "io31";
102 lantiq,output = <1>;
103 };
104 };
105 };
106
107 etop@E180000 {
108 phy-mode = "mii";
109 mtd-mac-address = <&boardconfig 0x16>;
110 };
111
112 pci@E105400 {
113 status = "okay";
114 gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
115 };
116 };
117
118 /*
119 #define ARV4525PW_PHYRESET 13
120 #define ARV4525PW_RELAY 31
121 */
122
123 gpio-keys-polled {
124 compatible = "gpio-keys-polled";
125 #address-cells = <1>;
126 #size-cells = <0>;
127 poll-interval = <100>;
128
129 wps {
130 label = "wps";
131 gpios = <&gpio 29 GPIO_ACTIVE_LOW>;
132 linux,code = <KEY_WPS_BUTTON>;
133 };
134 reset {
135 label = "reset";
136 gpios = <&gpio 30 GPIO_ACTIVE_LOW>;
137 linux,code = <KEY_RESTART>;
138 };
139 };
140
141 gpio-leds {
142 compatible = "gpio-leds";
143 fxo {
144 label = "arv4525pw:green:festnetz";
145 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
146 };
147 fxs {
148 label = "arv4525pw:green:internet";
149 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
150 };
151 dsl: dsl {
152 label = "arv4525pw:green:t-dsl";
153 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
154 };
155 wifi: wifi {
156 label = "arv4525pw:green:wlan";
157 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
158 };
159 online: online {
160 label = "arv4525pw:green:online";
161 gpios = <&gpio 9 GPIO_ACTIVE_LOW>;
162 };
163 };
164 };