lantiq: use dwc2 by default on all ar9 boards
[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                                 partition@0 {
37                                         label = "uboot";
38                                         reg = <0x00000 0x40000>;
39                                         read-only;
40                                 };
41
42                                 partition@40000 {
43                                         label = "uboot_env";
44                                         reg = <0x40000 0x20000>;
45                                         read-only;
46                                 };
47
48                                 partition@20000 {
49                                         label = "firmware";
50                                         reg = <0x60000 0x1f20000>;
51                                 };
52
53                                 partition@0x1fc0000 {
54                                         label = "board";
55                                         reg = <0x1fc0000 0x20000>;
56                                         read-only;
57                                 };
58
59                                 partition@0x1fe0000 {
60                                         label = "calibration";
61                                         reg = <0x1fe0000 0x20000>;
62                                         read-only;
63                                 };
64                         };
65
66                         mac_addr {
67                                 compatible = "lantiq,eth-mac";
68                                 reg = <0 0x1fd0024 0x6>;
69                         };
70                 };
71
72                 gpio: pinmux@E100B10 {
73                         pinctrl-names = "default";
74                         pinctrl-0 = <&state_default>;
75
76                         state_default: pinmux {
77                                 pci-in {
78                                         lantiq,groups = "req1";
79                                         lantiq,output = <0>;
80                                         lantiq,open-drain = <1>;
81                                         lantiq,pull = <2>;
82                                 };
83                                 pci-out {
84                                         lantiq,groups = "gnt1";
85                                         lantiq,output = <1>;
86                                         lantiq,pull = <0>;
87                                 };
88                                 pci_rst {
89                                         lantiq,pins = "io21";
90                                         lantiq,pull = <0>;
91                                         lantiq,output = <1>;
92                                 };
93                         };
94                 };
95
96                 etop@E180000 {
97                         phy-mode = "rgmii";
98                 };
99
100                 ifxhcd@E101000 {
101                         status = "okay";
102                         gpios = <&gpio 36 0>;
103                 };
104
105                 pci@E105400 {
106                         status = "okay";
107                 };
108         };
109
110         gpio-keys-polled {
111                 compatible = "gpio-keys-polled";
112                 #address-cells = <1>;
113                 #size-cells = <0>;
114                 poll-interval = <100>;
115
116                 wps {
117                         label = "wps";
118                         gpios = <&gpio 0 1>;
119                         linux,code = <0x211>;
120                 };
121                 reset {
122                         label = "reset";
123                         gpios = <&gpio 37 1>;
124                         linux,code = <0x198>;
125                 };
126                 eject {
127                         label = "eject";
128                         gpios = <&gpio 34 1>;
129                         linux,code = <0xf7>;
130                 };
131                 movie {
132                         label = "movie";
133                         gpios = <&gpio 22 1>;
134                         linux,code = <0x109>;
135                 };
136         };
137
138         gpio-leds {
139                 compatible = "gpio-leds";
140
141                 power_green: power {
142                         label = "wbmr:green:power";
143                         gpios = <&gpio 1 1>;
144                         default-state = "keep";
145                 };
146                 power_red: power2 {
147                         label = "wbmr:red:power";
148                         gpios = <&gpio 5 1>;
149                 };
150                 security {
151                         label = "wbmr:yellow:security";
152                         gpios = <&gpio 14 1>;
153                 };
154                 wifi: wifi {
155                         label = "wbmr:green:wireless";
156                         gpios = <&gpio 15 1>;
157                 };
158                 dsl: dsl {
159                         label = "wbmr:green:dsl";
160                         gpios = <&gpio 16 1>;
161                 };
162                 online_green: online {
163                         label = "wbmr:green:internet";
164                         gpios = <&gpio 17 1>;
165                 };
166                 online2 {
167                         label = "wbmr:red:internet";
168                         gpios = <&gpio 18 1>;
169                 };
170                 movie {
171                         label = "wbmr:blue:movie";
172                         gpios = <&gpio 20 1>;
173                 };
174                 usb: usb {
175                         label = "wbmr:green:usb";
176                         gpios = <&gpio 28 1>;
177                         default-state = "on";
178                 };
179         };
180 };