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