lantiq: define default leds in dts files
[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 dsl = &dsl;
9 internet = &internet;
10 power = &power;
11 power2 = &power2;
12 usb = &usb;
13 wifi = &wifi;
14 };
15 };
16
17 memory@0 {
18 reg = <0x0 0x4000000>;
19 };
20
21 fpi@10000000 {
22 gpio: pinmux@E100B10 {
23 pinctrl-names = "default";
24 pinctrl-0 = <&state_default>;
25
26 state_default: pinmux {
27 exin {
28 lantiq,groups = "exin1";
29 lantiq,function = "exin";
30 };
31 pci {
32 lantiq,groups = "gnt1", "req1";
33 lantiq,function = "pci";
34 };
35 pci-in {
36 lantiq,groups = "req1";
37 lantiq,output = <0>;
38 lantiq,open-drain = <1>;
39 lantiq,pull = <2>;
40 };
41 pci-out {
42 lantiq,groups = "gnt1";
43 lantiq,output = <1>;
44 lantiq,pull = <0>;
45 };
46 spi-in {
47 lantiq,pins = "io16";
48 lantiq,open-drain = <1>;
49 lantiq,pull = <2>;
50 };
51 spi-out {
52 lantiq,pins = "io10", "io17", "io18", "io21";
53 lantiq,open-drain = <0>;
54 lantiq,pull = <2>;
55 };
56 };
57 };
58
59 etop@E180000 {
60 phy-mode = "mii";
61 mac-address = [ 00 11 22 33 44 55 ];
62 };
63
64 ifxhcd@E101000 {
65 status = "okay";
66 };
67
68 pci@E105400 {
69 status = "okay";
70
71 lantiq,bus-clock = <33333333>;
72 interrupt-map-mask = <0xf800 0x0 0x0 0x7>;
73 interrupt-map = <0x7000 0 0 1 &icu0 30 1>;
74 gpio-reset = <&gpio 21 0>;
75 req-mask = <0x1>; /* GNT1 */
76 };
77 };
78
79 spi {
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 compatible = "spi-gpio";
84
85 gpio-miso = <&gpio 16 0>;
86 gpio-mosi = <&gpio 17 0>;
87 gpio-sck = <&gpio 18 0>;
88 num-chipselects = <1>;
89 cs-gpios = <&gpio 10 1>;
90
91 m25p80@0 {
92 #address-cells = <1>;
93 #size-cells = <1>;
94 compatible = "jedec,spi-nor";
95 reg = <0 0>;
96 spi-max-frequency = <1000000>;
97
98 partition@0 {
99 reg = <0x0 0x10000>;
100 label = "uboot";
101 read-only;
102 };
103
104 partition@10000 {
105 reg = <0x10000 0x10000>;
106 label = "uboot-env";
107 read-only;
108 };
109
110 ath9k_cal: partition@20000 {
111 reg = <0x20000 0x10000>;
112 label = "calibration";
113 read-only;
114 };
115
116 partition@50000 {
117 reg = <0x50000 0xfa0000>;
118 label = "firmware";
119 };
120 };
121 };
122
123 ath9k_eep {
124 compatible = "ath9k,eeprom";
125 ath,eep-flash = <&ath9k_cal 0xf000>;
126 ath,pci-slot = <14>;
127 ath,eep-endian;
128 ath,eep-swap;
129 };
130
131 rtl8366rb {
132 compatible = "rtl8366rb";
133 gpio-sda = <&gpio 35 0>;
134 gpio-sck = <&gpio 37 0>;
135 };
136
137 gpio-keys-polled {
138 compatible = "gpio-keys-polled";
139 #address-cells = <1>;
140 #size-cells = <0>;
141 poll-interval = <100>;
142
143 rfkill {
144 label = "rfkill";
145 gpios = <&gpio 36 1>;
146 linux,code = <0xf7>;
147 };
148 wps {
149 label = "wps";
150 gpios = <&gpio 54 1>;
151 linux,code = <0x211>;
152 };
153 reset {
154 label = "reset";
155 gpios = <&gpio 53 1>;
156 linux,code = <0x198>;
157 };
158 };
159
160 gpio-leds {
161 compatible = "gpio-leds";
162 internet: internet {
163 label = "internet";
164 gpios = <&gpio 2 1>;
165 };
166 dsl: dsl {
167 label = "dsl";
168 gpios = <&gpio 4 1>;
169 };
170 usb: usb {
171 label = "usb";
172 gpios = <&gpio 22 1>;
173 };
174 power: power {
175 label = "power";
176 gpios = <&gpio 34 1>;
177 };
178 power2: power2 {
179 label = "power2";
180 gpios = <&gpio 39 1>;
181 };
182 wifi: wifi {
183 label = "wifi";
184 gpios = <&gpio 51 1>;
185 };
186 wps {
187 label = "wps";
188 gpios = <&gpio 52 1>;
189 };
190 };
191 };