use immediate set in target Makefiles
[oweals/openwrt.git] / target / linux / lantiq / dts / ARV7510PW22.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6         model = "ARV7510PW22 - Astoria Networks";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         boot = &power;
13                         failsafe = &power;
14                         running = &power;
15
16                         internet = &internet;
17                         wifi = &wlan;
18                 };
19         };
20
21         memory@0 {
22                 reg = <0x0 0x4000000>;
23         };
24
25         sram@1F000000 {
26                 vmmc@107000 {
27                         status = "okay";
28                         gpios = <&gpio 9 0>;
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 0x1000000>;
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                                                 read-only;
56                                         };
57
58                                         partition@60000 {
59                                                 label = "firmware";
60                                                 reg = <0x60000 0xf80000>;
61                                         };
62
63                                         boardconfig: partition@fe0000 {
64                                                 label = "board_config";
65                                                 reg = <0xfe0000 0x20000>;
66                                                 read-only;
67                                         };
68                                 };
69                         };
70                 };
71
72                 gpio: pinmux@E100B10 {
73                         pinctrl-names = "default";
74                         pinctrl-0 = <&state_default>;
75
76                         state_default: pinmux {
77                                 exin {
78                                         lantiq,groups = "exin1";
79                                         lantiq,function = "exin";
80                                         lantiq,pull = <2>;
81                                         lantiq,output = <0>;
82                                 };
83                                 pci_in {
84                                         lantiq,groups = "req1", "req2";
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                                 pins_out {
101                                         lantiq,pins = "io2", "io4", "io8", "io9", "io10", "io15", "io20";
102                                         lantiq,output = <1>;
103                                 };
104                                 pins_in {
105                                         lantiq,pins = "io11", "io12", "io28";
106                                         lantiq,open-drain = <1>;
107                                         lantiq,pull = <2>;
108                                         lantiq,output = <0>;
109                                 };
110                         };
111                 };
112
113                 ifxhcd@E101000 {
114                         status = "okay";
115                         gpios = <&gpio 8 0>;
116                 };
117
118                 etop@E180000 {
119                         /* Switch reset 19 */
120                         phy-mode = "mii";
121                         mtd-mac-address = <&boardconfig 0x16>;
122                 };
123
124                 pci@E105400 {
125                         status = "okay";
126                         lantiq,external-clock;
127                         interrupt-map = <
128                                 0x7000 0 0 1 &icu0 30
129                                 0x7800 0 0 1 &icu0 135
130                                 0x7800 0 0 2 &icu0 135
131                                 0x7800 0 0 3 &icu0 135
132                         >;
133                         gpio-reset = <&gpio 21 0>;
134                         req-mask = <0x3>;
135                 };
136         };
137
138         ralink_eep {
139                 compatible = "ralink,eeprom";
140                 ralink,eeprom = "RT2860.eeprom";
141         };
142
143         gpio-keys-polled {
144                 compatible = "gpio-keys-polled";
145                 #address-cells = <1>;
146                 #size-cells = <0>;
147                 poll-interval = <100>;
148
149                 rfkill {
150                         label = "rfkill";
151                         gpios = <&gpio 11 1>;
152                         linux,code = <0xf7>;
153                 };
154                 restart {
155                         label = "restart";
156                         gpios = <&gpio 12 1>;
157                         linux,code = <0x100>;
158                 };
159                 reset {
160                         label = "reset";
161                         gpios = <&gpio 28 1>;
162                         linux,code = <0x198>;
163                 };
164         };
165
166         gpio-leds {
167                 compatible = "gpio-leds";
168                 power: power {
169                         label = "power";
170                         gpios = <&gpio 2 1>;
171                         default-state = "keep";
172                 };
173                 internet: internet {
174                         label = "internet";
175                         gpios = <&gpio 4 1>;
176                 };
177                 wlan: wlan {
178                         label = "wlan";
179                         gpios = <&gpio 10 1>;
180                 };
181                 3g {
182                         label = "3g";
183                         gpios = <&gpio 15 1>;
184                 };
185                 message {
186                         label = "message";
187                         gpios = <&gpio 20 1>;
188                 };
189         };
190 };