lantiq: use dwc2 by default on all ar9 boards
[openwrt.git] / target / linux / lantiq / dts / GR7000.dts
1 /dts-v1/;
2
3 /include/ "ar9.dtsi"
4
5 / {
6         model = "GR7000 - Aztech GR7000";
7
8         chosen {
9                 bootargs = "console=ttyLTQ0,115200 init=/etc/preinit";
10
11                 leds {
12                         boot = &power_red;
13                         failsafe = &power_red;
14
15                         internet = &internet_green;
16                         usb = &usb;
17                         wifi = &wifi;
18                 };
19         };
20
21         memory@0 {
22                 reg = <0x0 0x2000000>;
23         };
24
25         fpi@10000000 {
26                 localbus@0 {
27                         nor-boot@0 {
28                                 compatible = "lantiq,nor";
29                                 bank-width = <2>;
30                                 reg = <0 0x0 0x2000000>;
31                                 #address-cells = <1>;
32                                 #size-cells = <1>;
33
34                                 partition@0 {
35                                         label = "uboot";
36                                         reg = <0x0 0x20000>;
37                                         read-only;
38                                 };
39
40                                 partition@20000 {
41                                         label = "uboot_env";
42                                         reg = <0x20000 0x10000>;
43                                         read-only;
44                                 };
45
46                                 partition@30000 {
47                                         label = "firmware";
48                                         reg = <0x30000 0x7d0000>;
49                                 };
50                         };
51                 };
52
53                 gpio: pinmux@E100B10 {
54                         compatible = "lantiq,pinctrl-xr9";
55                         pinctrl-names = "default";
56                         pinctrl-0 = <&state_default>;
57
58                         state_default: pinmux {
59                                 stp {
60                                         lantiq,groups = "stp";
61                                         lantiq,function = "stp";
62                                 };
63                                 pci-in {
64                                         lantiq,groups = "req1";
65                                         lantiq,output = <0>;
66                                         lantiq,open-drain = <1>;
67                                         lantiq,pull = <2>;
68                                 };
69                                 pci-out {
70                                         lantiq,groups = "gnt1";
71                                         lantiq,output = <1>;
72                                         lantiq,pull = <0>;
73                                 };
74                                 pci_rst {
75                                         lantiq,pins = "io21";
76                                         lantiq,pull = <0>;
77                                         lantiq,output = <1>;
78                                 };
79                         };
80                 };
81
82                 ifxhcd@E101000 {
83                         status = "okay";
84                 };
85
86                 pci@E105400 {
87                         status = "okay";
88                 };
89
90                 stp: stp@E100BB0 {
91                         compatible = "lantiq,gpio-stp-xway";
92                         #gpio-cells = <2>;
93                         gpio-controller;
94                         reg = <0xE100BB0 0x40>;
95
96                         lantiq,shadow = <0xfff>;
97                         lantiq,groups = <0x3>;
98                 };
99         };
100
101         gpio-keys-polled {
102                 compatible = "gpio-keys-polled";
103                 #address-cells = <1>;
104                 #size-cells = <0>;
105                 poll-interval = <100>;
106
107                 reset {
108                         label = "reset";
109                         gpios = <&gpio 53 1>;
110                         linux,code = <0x198>;
111                 };
112                 wps {
113                         label = "wps";
114                         gpios = <&gpio 54 1>;
115                         linux,code = <0x211>;
116                 };
117         };
118
119         gpio-leds {
120                 compatible = "gpio-leds";
121
122                 power_red: power2 {
123                         label = "gr7000:red:power";
124                         gpios = <&stp 4 0>;
125                 };
126                 internet_green: internet {
127                         label = "gr7000:green:internet";
128                         gpios = <&stp 2 1>;
129                 };
130                 internet2 {
131                         label = "gr7000:red:internet";
132                         gpios = <&stp 3 1>;
133                 };
134                 usb: usb {
135                         label = "gr7000:green:usb";
136                         gpios = <&stp 10 1>;
137                 };
138                 wifi: wifi {
139                         label = "gr7000:green:wireless";
140                         gpios = <&stp 15 1>;
141                 };
142         };
143 };