lantiq: add support for indicating the boot state using three leds
[openwrt/staging/dedeckeh.git] / target / linux / lantiq / dts / DGN3500.dtsi
1 /include/ "ar9.dtsi"
2
3 / {
4 chosen {
5 bootargs-append = "root= console=ttyLTQ0,115200";
6
7 leds {
8 boot = &power_green;
9 failsafe = &power_red;
10 running = &power_green;
11
12 dsl = &dsl;
13 internet = &internet;
14 usb = &usb;
15 wifi = &wifi;
16 };
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 spi-in {
49 lantiq,pins = "io16";
50 lantiq,open-drain = <1>;
51 lantiq,pull = <2>;
52 };
53 spi-out {
54 lantiq,pins = "io10", "io17", "io18", "io21";
55 lantiq,open-drain = <0>;
56 lantiq,pull = <2>;
57 };
58 };
59 };
60
61 etop@E180000 {
62 phy-mode = "mii";
63 mac-address = [ 00 11 22 33 44 55 ];
64 };
65
66 ifxhcd@E101000 {
67 status = "okay";
68 };
69
70 pci@E105400 {
71 status = "okay";
72
73 lantiq,bus-clock = <33333333>;
74 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
75 interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
76 gpio-reset = <&gpio 21 0>;
77 req-mask = <0x1>; /* GNT1 */
78 };
79 };
80
81 spi {
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 compatible = "spi-gpio";
86
87 gpio-miso = <&gpio 16 0>;
88 gpio-mosi = <&gpio 17 0>;
89 gpio-sck = <&gpio 18 0>;
90 num-chipselects = <1>;
91 cs-gpios = <&gpio 10 1>;
92
93 m25p80@0 {
94 #address-cells = <1>;
95 #size-cells = <1>;
96 compatible = "jedec,spi-nor";
97 reg = <0 0>;
98 spi-max-frequency = <1000000>;
99
100 partition@0 {
101 reg = <0x0 0x10000>;
102 label = "uboot";
103 read-only;
104 };
105
106 partition@10000 {
107 reg = <0x10000 0x10000>;
108 label = "uboot-env";
109 read-only;
110 };
111
112 ath9k_cal: partition@20000 {
113 reg = <0x20000 0x10000>;
114 label = "calibration";
115 read-only;
116 };
117
118 partition@50000 {
119 reg = <0x50000 0xfa0000>;
120 label = "firmware";
121 };
122 };
123 };
124
125 ath9k_eep {
126 compatible = "ath9k,eeprom";
127 ath,eep-flash = <&ath9k_cal 0xf000>;
128 ath,pci-slot = <14>;
129 ath,eep-endian;
130 ath,eep-swap;
131 };
132
133 rtl8366rb {
134 compatible = "rtl8366rb";
135 gpio-sda = <&gpio 35 0>;
136 gpio-sck = <&gpio 37 0>;
137 };
138
139 gpio-keys-polled {
140 compatible = "gpio-keys-polled";
141 #address-cells = <1>;
142 #size-cells = <0>;
143 poll-interval = <100>;
144
145 rfkill {
146 label = "rfkill";
147 gpios = <&gpio 36 1>;
148 linux,code = <0xf7>;
149 };
150 wps {
151 label = "wps";
152 gpios = <&gpio 54 1>;
153 linux,code = <0x211>;
154 };
155 reset {
156 label = "reset";
157 gpios = <&gpio 53 1>;
158 linux,code = <0x198>;
159 };
160 };
161
162 gpio-leds {
163 compatible = "gpio-leds";
164 internet: internet {
165 label = "internet";
166 gpios = <&gpio 2 1>;
167 };
168 dsl: dsl {
169 label = "dsl";
170 gpios = <&gpio 4 1>;
171 };
172 usb: usb {
173 label = "usb";
174 gpios = <&gpio 22 1>;
175 };
176 power_green: power {
177 label = "power";
178 gpios = <&gpio 34 1>;
179 default-state = "keep";
180 };
181 power_red: power2 {
182 label = "power2";
183 gpios = <&gpio 39 1>;
184 };
185 wifi: wifi {
186 label = "wifi";
187 gpios = <&gpio 51 1>;
188 };
189 wps {
190 label = "wps";
191 gpios = <&gpio 52 1>;
192 };
193 };
194 };