use immediate set in target Makefiles
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV7519PW.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV7519PW - Astoria Networks";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         boot = &power;
13                         failsafe = &power2;
14                         running = &power;
15
16                         dsl = &dsl;
17                         internet = &online;
18                         wifi = &wifi;
19                 };
20         };
21
22         memory@0 {
23                 reg = <0x0 0x4000000>;
24         };
25
26         sram@1F000000 {
27                 vmmc@107000 {
28                         status = "okay";
29                 };
30         };
31
32         fpi@10000000 {
33                 localbus@0 {
34                         nor-boot@0 {
35                                 compatible = "lantiq,nor";
36                                 bank-width = <2>;
37                                 reg = <0 0x0 0x2000000>;
38                                 #address-cells = <1>;
39                                 #size-cells = <1>;
40
41                                 partitions {
42                                         compatible = "fixed-partitions";
43                                         #address-cells = <1>;
44                                         #size-cells = <1>;
45
46                                         partition@0 {
47                                                 label = "uboot";
48                                                 reg = <0x00000 0x40000>;
49                                                 read-only;
50                                         };
51
52                                         partition@40000 {
53                                                 label = "uboot_env";
54                                                 reg = <0x40000 0x20000>;
55                                         };
56
57                                         partition@60000 {
58                                                 label = "firmware";
59                                                 reg = <0x60000 0xf80000>;
60                                         };
61
62                                         boardconfig: partition@fe0000 {
63                                                 label = "board_config";
64                                                 reg = <0xfe0000 0x20000>;
65                                                 read-only;
66                                         };
67                                 };
68                         };
69                 };
70
71                 gpio: pinmux@E100B10 {
72                         pinctrl-names = "default";
73                         pinctrl-0 = <&state_default>;
74
75                         state_default: pinmux {
76                                 ebu {
77                                         lantiq,groups = "ebu cs1";
78                                         lantiq,function = "ebu";
79                                 };
80                                 pci_in {
81                                         lantiq,groups = "req1";
82                                         lantiq,function = "pci";
83                                         lantiq,open-drain = <1>;
84                                         lantiq,pull = <2>;
85                                         lantiq,output = <0>;
86                                 };
87                                 pci_out {
88                                         lantiq,groups = "gnt1";
89                                         lantiq,function = "pci";
90                                         lantiq,pull = <0>;
91                                         lantiq,output = <1>;
92                                 };
93                                 pci_rst {
94                                         lantiq,pins = "io21";
95                                         lantiq,pull = <2>;
96                                         lantiq,output = <1>;
97                                 };
98                                 switch_rst {
99                                         lantiq,pins = "io19";
100                                         lantiq,pull = <2>;
101                                         lantiq,output = <1>;
102                                 };
103                         };
104                 };
105
106                 etop@E180000 {
107                         phy-mode = "mii";
108                         mtd-mac-address = <&boardconfig 0x16>;
109                 };
110
111                 /* warning: passive port
112                 only works with active devices */
113                 ifxhcd@E101000 {
114                         status = "okay";
115                 };
116
117                 pci@E105400 {
118                         status = "okay";
119                         lantiq,external-clock;
120                         gpio-reset = <&gpio 21 0>;
121                         req-mask = <0xf>;
122                 };
123         };
124
125         ralink_eep {
126                 compatible = "ralink,eeprom";
127                 ralink,eeprom = "RT2860.eeprom";
128         };
129
130         gpio-keys-polled {
131                 compatible = "gpio-keys-polled";
132                 #address-cells = <1>;
133                 #size-cells = <0>;
134                 poll-interval = <100>;
135
136                 rfkill {
137                         label = "rfkill";
138                         gpios = <&gpio 11 1>;
139                         linux,code = <0xf7>;
140                 };
141                 reset {
142                         label = "reset";
143                         gpios = <&gpio 28 1>;
144                         linux,code = <0x198>;
145                 };
146         };
147
148         gpio-leds {
149                 compatible = "gpio-leds";
150                 power: power {
151                         label = "power";
152                         gpios = <&gpio 2 1>;
153                         default-state = "keep";
154                 };
155                 power2: power2 {
156                         label = "power2";
157                         gpios = <&gpio 14 1>;
158                 };
159                 online: online {
160                         label = "online";
161                         gpios = <&gpio 3 1>;
162                 };
163                 online2 {
164                         label = "online2";
165                         gpios = <&gpio 30 1>;
166                 };
167                 wifi: wifi {
168                         label = "wifi";
169                         gpios = <&gpio 12 1>;
170                 };
171                 wifi2 {
172                         label = "wifi2";
173                         gpios = <&gpio 10 1>;
174                 };
175                 wifi3 {
176                         label = "wifi3";
177                         gpios = <&gpio 6 1>;
178                 };
179                 voice {
180                         label = "voice";
181                         gpios = <&gpio 31 1>;
182                 };
183                 wps {
184                         label = "wps";
185                         gpios = <&gpio 15 1>;
186                 };
187                 wps2 {
188                         label = "wps2";
189                         gpios = <&gpio 7 1>;
190                 };
191                 wps3 {
192                         label = "wps3";
193                         gpios = <&gpio 23 1>;
194                 };
195                 dsl: dsl {
196                         label = "dsl";
197                         gpios = <&gpio 4 1>;
198                 };
199                 lan {
200                         label = "lan";
201                         gpios = <&gpio 1 1>;
202                 };
203                 tv {
204                         label = "tv";
205                         gpios = <&gpio 20 1>;
206                 };
207                 upgrade {
208                         label = "upgrade";
209                         gpios = <&gpio 29 1>;
210                 };
211         };
212
213         /* is there another way to "reserve" the GPIO? */
214         gpio_export {
215                 compatible = "gpio-export";
216                 #size-cells = <0>;
217
218                 switch {
219                         gpio-export,name = "switch";
220                         gpio-export,output = <1>;
221                         gpios = <&gpio 19 0>;
222                 };
223         };
224 };