lantiq: move partitions into partion table node
[openwrt/staging/mkresin.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 partition@fe0000 {
64 label = "board_config";
65 reg = <0xfe0000 0x20000>;
66 read-only;
67 };
68 };
69 };
70
71 mac_addr {
72 compatible = "lantiq,eth-mac";
73 reg = <0 0xfe0016 0x6>;
74 mac-increment = <2>;
75 };
76 };
77
78 gpio: pinmux@E100B10 {
79 pinctrl-names = "default";
80 pinctrl-0 = <&state_default>;
81
82 state_default: pinmux {
83 exin {
84 lantiq,groups = "exin1";
85 lantiq,function = "exin";
86 lantiq,pull = <2>;
87 lantiq,output = <0>;
88 };
89 pci_in {
90 lantiq,groups = "req1", "req2";
91 lantiq,function = "pci";
92 lantiq,open-drain = <1>;
93 lantiq,pull = <2>;
94 lantiq,output = <0>;
95 };
96 pci_out {
97 lantiq,groups = "gnt1";
98 lantiq,function = "pci";
99 lantiq,output = <1>;
100 };
101 pci_rst {
102 lantiq,pins = "io21";
103 lantiq,pull = <2>;
104 lantiq,output = <1>;
105 };
106 pins_out {
107 lantiq,pins = "io2", "io4", "io8", "io9", "io10", "io15", "io20";
108 lantiq,output = <1>;
109 };
110 pins_in {
111 lantiq,pins = "io11", "io12", "io28";
112 lantiq,open-drain = <1>;
113 lantiq,pull = <2>;
114 lantiq,output = <0>;
115 };
116 };
117 };
118
119 ifxhcd@E101000 {
120 status = "okay";
121 gpios = <&gpio 8 0>;
122 };
123
124 etop@E180000 {
125 phy-mode = "mii";
126 /* Switch reset 19 */
127 };
128
129 pci@E105400 {
130 status = "okay";
131 lantiq,external-clock;
132 interrupt-map = <
133 0x7000 0 0 1 &icu0 30
134 0x7800 0 0 1 &icu0 135
135 0x7800 0 0 2 &icu0 135
136 0x7800 0 0 3 &icu0 135
137 >;
138 gpio-reset = <&gpio 21 0>;
139 req-mask = <0x3>;
140 };
141 };
142
143 ralink_eep {
144 compatible = "ralink,eeprom";
145 ralink,eeprom = "RT2860.eeprom";
146 };
147
148 gpio-keys-polled {
149 compatible = "gpio-keys-polled";
150 #address-cells = <1>;
151 #size-cells = <0>;
152 poll-interval = <100>;
153
154 rfkill {
155 label = "rfkill";
156 gpios = <&gpio 11 1>;
157 linux,code = <0xf7>;
158 };
159 restart {
160 label = "restart";
161 gpios = <&gpio 12 1>;
162 linux,code = <0x100>;
163 };
164 reset {
165 label = "reset";
166 gpios = <&gpio 28 1>;
167 linux,code = <0x198>;
168 };
169 };
170
171 gpio-leds {
172 compatible = "gpio-leds";
173 power: power {
174 label = "power";
175 gpios = <&gpio 2 1>;
176 default-state = "keep";
177 };
178 internet: internet {
179 label = "internet";
180 gpios = <&gpio 4 1>;
181 };
182 wlan: wlan {
183 label = "wlan";
184 gpios = <&gpio 10 1>;
185 };
186 3g {
187 label = "3g";
188 gpios = <&gpio 15 1>;
189 };
190 message {
191 label = "message";
192 gpios = <&gpio 20 1>;
193 };
194 };
195 };