lantiq: define default leds in dts files
[openwrt/openwrt.git] / target / linux / lantiq / dts / ARV7510PW22.dts
1 /dts-v1/;
2
3 /include/ "danube.dtsi"
4
5 / {
6 model = "ARV7510PW22 - Astoria Networks";
7
8 chosen {
9 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11 leds {
12 internet = &internet;
13 power = &power;
14 wifi = &wlan;
15 };
16 };
17
18 memory@0 {
19 reg = <0x0 0x4000000>;
20 };
21
22 sram@1F000000 {
23 vmmc@107000 {
24 status = "okay";
25 gpios = <&gpio 9 0>;
26 };
27 };
28
29 fpi@10000000 {
30 localbus@0 {
31 nor-boot@0 {
32 compatible = "lantiq,nor";
33 bank-width = <2>;
34 reg = <0 0x0 0x1000000>;
35 #address-cells = <1>;
36 #size-cells = <1>;
37
38 partition@0 {
39 label = "uboot";
40 reg = <0x00000 0x40000>;
41 read-only;
42 };
43
44 partition@40000 {
45 label = "uboot_env";
46 reg = <0x40000 0x20000>;
47 read-only;
48 };
49
50 partition@60000 {
51 label = "firmware";
52 reg = <0x60000 0xf80000>;
53 };
54
55 partition@fe0000 {
56 label = "board_config";
57 reg = <0xfe0000 0x20000>;
58 read-only;
59 };
60 };
61
62 mac_addr {
63 compatible = "lantiq,eth-mac";
64 reg = <0 0xfe0016 0x6>;
65 mac-increment = <2>;
66 };
67 };
68
69 gpio: pinmux@E100B10 {
70 pinctrl-names = "default";
71 pinctrl-0 = <&state_default>;
72
73 state_default: pinmux {
74 exin {
75 lantiq,groups = "exin1";
76 lantiq,function = "exin";
77 lantiq,pull = <2>;
78 lantiq,output = <0>;
79 };
80 pci_in {
81 lantiq,groups = "req1", "req2";
82 lantiq,function = "pci";
83 lantiq,open-drain = <1>;
84 lantiq,pull = <2>;
85 lantiq,output = <0>;
86 };
87 pci_out {
88 lantiq,groups = "gnt1";
89 lantiq,function = "pci";
90 lantiq,output = <1>;
91 };
92 pci_rst {
93 lantiq,pins = "io21";
94 lantiq,pull = <2>;
95 lantiq,output = <1>;
96 };
97 pins_out {
98 lantiq,pins = "io2", "io4", "io8", "io9", "io10", "io15", "io20";
99 lantiq,output = <1>;
100 };
101 pins_in {
102 lantiq,pins = "io11", "io12", "io28";
103 lantiq,open-drain = <1>;
104 lantiq,pull = <2>;
105 lantiq,output = <0>;
106 };
107 };
108 };
109
110 ifxhcd@E101000 {
111 status = "okay";
112 gpios = <&gpio 8 0>;
113 };
114
115 etop@E180000 {
116 phy-mode = "mii";
117 /* Switch reset 19 */
118 };
119
120 pci@E105400 {
121 status = "okay";
122 lantiq,external-clock;
123 interrupt-map = <
124 0x7000 0 0 1 &icu0 30
125 0x7800 0 0 1 &icu0 135
126 0x7800 0 0 2 &icu0 135
127 0x7800 0 0 3 &icu0 135
128 >;
129 gpio-reset = <&gpio 21 0>;
130 req-mask = <0x3>;
131 };
132 };
133
134 ralink_eep {
135 compatible = "ralink,eeprom";
136 ralink,eeprom = "RT2860.eeprom";
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 11 1>;
148 linux,code = <0xf7>;
149 };
150 restart {
151 label = "restart";
152 gpios = <&gpio 12 1>;
153 linux,code = <0x100>;
154 };
155 reset {
156 label = "reset";
157 gpios = <&gpio 28 1>;
158 linux,code = <0x198>;
159 };
160 };
161
162 gpio-leds {
163 compatible = "gpio-leds";
164 power: power {
165 label = "power";
166 gpios = <&gpio 2 1>;
167 };
168 internet: internet {
169 label = "internet";
170 gpios = <&gpio 4 1>;
171 };
172 wlan: wlan {
173 label = "wlan";
174 gpios = <&gpio 10 1>;
175 };
176 3g {
177 label = "3g";
178 gpios = <&gpio 15 1>;
179 };
180 message {
181 label = "message";
182 gpios = <&gpio 20 1>;
183 };
184 };
185 };