220eb47851e850ca341cac7bcdedb3744f2a2a59
[openwrt/staging/wigyori.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 partitions {
35 compatible = "fixed-partitions";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 partition@0 {
40 label = "uboot";
41 reg = <0x0 0x20000>;
42 read-only;
43 };
44
45 partition@20000 {
46 label = "uboot_env";
47 reg = <0x20000 0x10000>;
48 read-only;
49 };
50
51 partition@30000 {
52 label = "firmware";
53 reg = <0x30000 0x7d0000>;
54 };
55 };
56 };
57 };
58
59 gpio: pinmux@E100B10 {
60 compatible = "lantiq,pinctrl-xr9";
61 pinctrl-names = "default";
62 pinctrl-0 = <&state_default>;
63
64 state_default: pinmux {
65 stp {
66 lantiq,groups = "stp";
67 lantiq,function = "stp";
68 };
69 pci-in {
70 lantiq,groups = "req1";
71 lantiq,output = <0>;
72 lantiq,open-drain = <1>;
73 lantiq,pull = <2>;
74 };
75 pci-out {
76 lantiq,groups = "gnt1";
77 lantiq,output = <1>;
78 lantiq,pull = <0>;
79 };
80 pci_rst {
81 lantiq,pins = "io21";
82 lantiq,pull = <0>;
83 lantiq,output = <1>;
84 };
85 };
86 };
87
88 ifxhcd@E101000 {
89 status = "okay";
90 };
91
92 pci@E105400 {
93 status = "okay";
94 };
95
96 stp: stp@E100BB0 {
97 compatible = "lantiq,gpio-stp-xway";
98 #gpio-cells = <2>;
99 gpio-controller;
100 reg = <0xE100BB0 0x40>;
101
102 lantiq,shadow = <0xfff>;
103 lantiq,groups = <0x3>;
104 };
105 };
106
107 gpio-keys-polled {
108 compatible = "gpio-keys-polled";
109 #address-cells = <1>;
110 #size-cells = <0>;
111 poll-interval = <100>;
112
113 reset {
114 label = "reset";
115 gpios = <&gpio 53 1>;
116 linux,code = <0x198>;
117 };
118 wps {
119 label = "wps";
120 gpios = <&gpio 54 1>;
121 linux,code = <0x211>;
122 };
123 };
124
125 gpio-leds {
126 compatible = "gpio-leds";
127
128 power_red: power2 {
129 label = "gr7000:red:power";
130 gpios = <&stp 4 0>;
131 };
132 internet_green: internet {
133 label = "gr7000:green:internet";
134 gpios = <&stp 2 1>;
135 };
136 internet2 {
137 label = "gr7000:red:internet";
138 gpios = <&stp 3 1>;
139 };
140 usb: usb {
141 label = "gr7000:green:usb";
142 gpios = <&stp 10 1>;
143 };
144 wifi: wifi {
145 label = "gr7000:green:wireless";
146 gpios = <&stp 15 1>;
147 };
148 };
149 };