lantiq: cleanup dts files
[librecmc/librecmc.git] / target / linux / lantiq / dts / DGN3500.dtsi
1 #include "ar9.dtsi"
2
3 / {
4         chosen {
5                 bootargs = "root= console=ttyLTQ0,115200";
6         };
7
8         aliases {
9                 led-boot = &power_green;
10                 led-failsafe = &power_red;
11                 led-running = &power_green;
12
13                 led-dsl = &dsl;
14                 led-internet = &internet;
15                 led-usb = &usb;
16                 led-wifi = &wifi;
17         };
18
19         memory@0 {
20                 reg = <0x0 0x4000000>;
21         };
22
23         fpi@10000000 {
24                 gpio: pinmux@E100B10 {
25                         pinctrl-names = "default";
26                         pinctrl-0 = <&state_default>;
27
28                         state_default: pinmux {
29                                 exin {
30                                         lantiq,groups = "exin1";
31                                         lantiq,function = "exin";
32                                 };
33                                 pci {
34                                         lantiq,groups = "gnt1", "req1";
35                                         lantiq,function = "pci";
36                                 };
37                                 pci-in {
38                                         lantiq,groups = "req1";
39                                         lantiq,output = <0>;
40                                         lantiq,open-drain = <1>;
41                                         lantiq,pull = <2>;
42                                 };
43                                 pci-out {
44                                         lantiq,groups = "gnt1";
45                                         lantiq,output = <1>;
46                                         lantiq,pull = <0>;
47                                 };
48                         };
49                         pins_spi_default: pins_spi_default {
50                                 spi_in {
51                                         lantiq,groups = "spi_di";
52                                         lantiq,function = "spi";
53                                 };
54                                 spi_out {
55                                         lantiq,groups = "spi_do", "spi_clk",
56                                                 "spi_cs4";
57                                         lantiq,function = "spi";
58                                         lantiq,output = <1>;
59                                 };
60                         };
61                 };
62
63                 etop@E180000 {
64                         phy-mode = "mii";
65                 };
66
67                 ifxhcd@E101000 {
68                         status = "okay";
69                 };
70
71                 pci@E105400 {
72                         status = "okay";
73                         gpio-reset = <&gpio 21 GPIO_ACTIVE_HIGH>;
74                 };
75         };
76
77         ath9k_eep {
78                 compatible = "ath9k,eeprom";
79                 ath,eep-flash = <&ath9k_cal 0xf000>;
80                 ath,pci-slot = <14>;
81                 ath,eep-endian;
82                 ath,eep-swap;
83         };
84
85         rtl8366rb {
86                 compatible = "rtl8366rb";
87                 gpio-sda = <&gpio 35 GPIO_ACTIVE_HIGH>;
88                 gpio-sck = <&gpio 37 GPIO_ACTIVE_HIGH>;
89         };
90
91         gpio-keys-polled {
92                 compatible = "gpio-keys-polled";
93                 #address-cells = <1>;
94                 #size-cells = <0>;
95                 poll-interval = <100>;
96
97                 rfkill {
98                         label = "rfkill";
99                         gpios = <&gpio 36 GPIO_ACTIVE_LOW>;
100                         linux,code = <KEY_RFKILL>;
101                 };
102                 wps {
103                         label = "wps";
104                         gpios = <&gpio 54 GPIO_ACTIVE_LOW>;
105                         linux,code = <KEY_WPS_BUTTON>;
106                 };
107                 reset {
108                         label = "reset";
109                         gpios = <&gpio 53 GPIO_ACTIVE_LOW>;
110                         linux,code = <KEY_RESTART>;
111                 };
112         };
113
114         gpio-leds {
115                 compatible = "gpio-leds";
116                 internet: internet {
117                         label = "dgn3500:green:internet";
118                         gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
119                 };
120                 /*
121                         internet red is missing
122                 */
123                 dsl: dsl {
124                         label = "dgn3500:green:dsl";
125                         gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
126                 };
127                 usb: usb {
128                         label = "dgn3500:green:usb";
129                         gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
130                 };
131                 power_green: power {
132                         label = "dgn3500:green:power";
133                         gpios = <&gpio 34 GPIO_ACTIVE_LOW>;
134                         default-state = "keep";
135                 };
136                 power_red: power2 {
137                         label = "dgn3500:red:power";
138                         gpios = <&gpio 39 GPIO_ACTIVE_LOW>;
139                 };
140                 /*
141                         power amber is missing
142                 */
143                 wifi: wifi {
144                         label = "dgn3500:blue:wireless";
145                         gpios = <&gpio 51 GPIO_ACTIVE_LOW>;
146                 };
147                 wps {
148                         label = "dgn3500:green:wps";
149                         gpios = <&gpio 52 GPIO_ACTIVE_LOW>;
150                 };
151         };
152 };
153
154 &spi {
155         pinctrl-names = "default";
156         pinctrl-0 = <&pins_spi_default>;
157
158         status = "ok";
159
160         m25p80@4 {
161                 #address-cells = <1>;
162                 #size-cells = <1>;
163                 compatible = "jedec,spi-nor";
164                 reg = <4 0>;
165                 spi-max-frequency = <20000000>;
166
167                 partitions {
168                         compatible = "fixed-partitions";
169                         #address-cells = <1>;
170                         #size-cells = <1>;
171
172                         partition@0 {
173                                 reg = <0x0 0x10000>;
174                                 label = "uboot";
175                                 read-only;
176                         };
177
178                         partition@10000 {
179                                 reg = <0x10000 0x10000>;
180                                 label = "uboot-env";
181                                 read-only;
182                         };
183
184                         ath9k_cal: partition@20000 {
185                                 reg = <0x20000 0x10000>;
186                                 label = "calibration";
187                                 read-only;
188                         };
189
190                         partition@50000 {
191                                 reg = <0x50000 0xfa0000>;
192                                 label = "firmware";
193                         };
194                 };
195         };
196 };