rpcd: iwinfo plugin fixes
[openwrt.git] / target / linux / lantiq / dts / WBMR.dts
1 /dts-v1/;
2
3 /include/ "ar9.dtsi"
4
5 / {
6         model = "WBMR - Buffalo WBMR-HP-G300H";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         boot = &power_green;
13                         failsafe = &power_red;
14                         running = &power_green;
15
16                         dsl = &dsl;
17                         internet = &online_green;
18                         usb = &usb;
19                         wifi = &wifi;
20                 };
21         };
22
23         memory@0 {
24                 reg = <0x0 0x4000000>;
25         };
26
27         fpi@10000000 {
28                 localbus@0 {
29                         nor-boot@0 {
30                                 compatible = "lantiq,nor";
31                                 bank-width = <2>;
32                                 reg = <0 0x0 0x2000000>;
33                                 #address-cells = <1>;
34                                 #size-cells = <1>;
35
36                                 partitions {
37                                         compatible = "fixed-partitions";
38                                         #address-cells = <1>;
39                                         #size-cells = <1>;
40
41                                         partition@0 {
42                                                 label = "uboot";
43                                                 reg = <0x00000 0x40000>;
44                                                 read-only;
45                                         };
46
47                                         partition@40000 {
48                                                 label = "uboot_env";
49                                                 reg = <0x40000 0x20000>;
50                                                 read-only;
51                                         };
52
53                                         partition@20000 {
54                                                 label = "firmware";
55                                                 reg = <0x60000 0x1f20000>;
56                                         };
57
58                                         partition@0x1fc0000 {
59                                                 label = "board";
60                                                 reg = <0x1fc0000 0x20000>;
61                                                 read-only;
62                                         };
63
64                                         partition@0x1fe0000 {
65                                                 label = "calibration";
66                                                 reg = <0x1fe0000 0x20000>;
67                                                 read-only;
68                                         };
69                                 };
70                         };
71
72                         mac_addr {
73                                 compatible = "lantiq,eth-mac";
74                                 reg = <0 0x1fd0024 0x6>;
75                         };
76                 };
77
78                 gpio: pinmux@E100B10 {
79                         pinctrl-names = "default";
80                         pinctrl-0 = <&state_default>;
81
82                         state_default: pinmux {
83                                 pci-in {
84                                         lantiq,groups = "req1";
85                                         lantiq,output = <0>;
86                                         lantiq,open-drain = <1>;
87                                         lantiq,pull = <2>;
88                                 };
89                                 pci-out {
90                                         lantiq,groups = "gnt1";
91                                         lantiq,output = <1>;
92                                         lantiq,pull = <0>;
93                                 };
94                                 pci_rst {
95                                         lantiq,pins = "io21";
96                                         lantiq,pull = <0>;
97                                         lantiq,output = <1>;
98                                 };
99                         };
100                 };
101
102                 etop@E180000 {
103                         phy-mode = "rgmii";
104                 };
105
106                 ifxhcd@E101000 {
107                         status = "okay";
108                         gpios = <&gpio 36 0>;
109                 };
110
111                 pci@E105400 {
112                         status = "okay";
113                 };
114         };
115
116         gpio-keys-polled {
117                 compatible = "gpio-keys-polled";
118                 #address-cells = <1>;
119                 #size-cells = <0>;
120                 poll-interval = <100>;
121
122                 wps {
123                         label = "wps";
124                         gpios = <&gpio 0 1>;
125                         linux,code = <0x211>;
126                 };
127                 reset {
128                         label = "reset";
129                         gpios = <&gpio 37 1>;
130                         linux,code = <0x198>;
131                 };
132                 eject {
133                         label = "eject";
134                         gpios = <&gpio 34 1>;
135                         linux,code = <0xf7>;
136                 };
137                 movie {
138                         label = "movie";
139                         gpios = <&gpio 22 1>;
140                         linux,code = <0x109>;
141                 };
142         };
143
144         gpio-leds {
145                 compatible = "gpio-leds";
146
147                 power_green: power {
148                         label = "wbmr:green:power";
149                         gpios = <&gpio 1 1>;
150                         default-state = "keep";
151                 };
152                 power_red: power2 {
153                         label = "wbmr:red:power";
154                         gpios = <&gpio 5 1>;
155                 };
156                 security {
157                         label = "wbmr:yellow:security";
158                         gpios = <&gpio 14 1>;
159                 };
160                 wifi: wifi {
161                         label = "wbmr:green:wireless";
162                         gpios = <&gpio 15 1>;
163                 };
164                 dsl: dsl {
165                         label = "wbmr:green:dsl";
166                         gpios = <&gpio 16 1>;
167                 };
168                 online_green: online {
169                         label = "wbmr:green:internet";
170                         gpios = <&gpio 17 1>;
171                 };
172                 online2 {
173                         label = "wbmr:red:internet";
174                         gpios = <&gpio 18 1>;
175                 };
176                 movie {
177                         label = "wbmr:blue:movie";
178                         gpios = <&gpio 20 1>;
179                 };
180                 usb: usb {
181                         label = "wbmr:green:usb";
182                         gpios = <&gpio 28 1>;
183                         default-state = "on";
184                 };
185         };
186 };