lantiq: move partitions into partion table node
[openwrt/openwrt.git] / target / linux / lantiq / dts / FRITZ7320.dts
1 /dts-v1/;
2
3 /include/ "ar9.dtsi"
4
5 / {
6 model = "FRITZ7320 - 1&1 HomeServer";
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 = &info_green;
17 dsl = &power;
18 wifi = &wlan;
19 };
20 };
21
22 memory@0 {
23 reg = <0x0 0x4000000>;
24 };
25
26 fpi@10000000 {
27 localbus@0 {
28 nor-boot@0 {
29 compatible = "lantiq,nor";
30 bank-width = <2>;
31 reg = <0 0x0 0x1000000>;
32 #address-cells = <1>;
33 #size-cells = <1>;
34
35 partitions {
36 compatible = "fixed-partitions";
37 #address-cells = <1>;
38 #size-cells = <1>;
39
40 partition@0 {
41 label = "urlader";
42 reg = <0x00000 0x20000>;
43 read-only;
44 };
45
46 partition@20000 {
47 label = "firmware";
48 reg = <0x20000 0xf60000>;
49 };
50
51 partition@f80000 {
52 label = "tffs (1)";
53 reg = <0xf80000 0x40000>;
54 read-only;
55 };
56
57 partition@fc0000 {
58 label = "tffs (2)";
59 reg = <0xfc0000 0x40000>;
60 read-only;
61 };
62 };
63 };
64 };
65
66 gpio: pinmux@E100B10 {
67 pinctrl-names = "default";
68 pinctrl-0 = <&state_default>;
69
70 state_default: pinmux {
71 pci {
72 lantiq,groups = "gnt1", "req1", "req2", "req3", "req4", "gnt2", "gnt3", "gnt4";
73 lantiq,function = "pci";
74 };
75 pci-in {
76 lantiq,groups = "req1", "req2", "req3", "req4";
77 lantiq,output = <0>;
78 lantiq,open-drain = <1>;
79 lantiq,pull = <2>;
80 };
81 pci-out {
82 lantiq,groups = "gnt1", "gnt2", "gnt3", "gnt4";
83 lantiq,output = <1>;
84 lantiq,pull = <0>;
85 };
86 };
87 };
88
89 etop@E180000 {
90 phy-mode = "mii";
91 mac-address = [ 00 11 22 33 44 55 ];
92 };
93
94 ifxhcd@E101000 {
95 status = "okay";
96 };
97
98 pci@E105400 {
99 status = "okay";
100 req-mask = <0xf>;
101 lantiq,bus-clock = <33333333>;
102 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
103 interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
104 gpio-reset = <&gpio 21 0>;
105 req-mask = <0xf>; /* GNT1 */
106 };
107 };
108
109 gpio-keys-polled {
110 compatible = "gpio-keys-polled";
111 #address-cells = <1>;
112 #size-cells = <0>;
113 poll-interval = <100>;
114
115 rfkill {
116 label = "rfkill";
117 gpios = <&gpio 1 1>;
118 linux,code = <0xf7>;
119 };
120 dect {
121 label = "dect";
122 gpios = <&gpio 2 1>;
123 linux,code = <0x102>;
124 };
125 };
126
127 gpio-leds {
128 compatible = "gpio-leds";
129 power: power {
130 label = "fritz7320:green:power";
131 gpios = <&gpio 44 1>;
132 default-state = "keep";
133 };
134 voice {
135 label = "fritz7320:green:fon";
136 gpios = <&gpio 47 1>;
137 };
138 dect {
139 label = "fritz7320:green:dect";
140 gpios = <&gpio 38 1>;
141 };
142 wlan: wlan {
143 label = "fritz7320:green:wlan";
144 gpios = <&gpio 37 1>;
145 };
146 info_green: info_green {
147 label = "fritz7320:green:info";
148 gpios = <&gpio 35 1>;
149 };
150 info_red {
151 label = "fritz7320:red:info";
152 gpios = <&gpio 45 1>;
153 };
154 };
155 };