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