Merge pull request #580 from wigyori/cc-libpcap
[15.05/openwrt.git] / target / linux / ramips / dts / TEW-692GR.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6         compatible = "TEW-692GR", "ralink,rt3883-soc";
7         model = "TRENDnet TEW-692GR";
8
9         palmbus@10000000 {
10                 gpio1: gpio@638 {
11                         status = "okay";
12                 };
13         };
14
15         pinctrl {
16                 state_default: pinctrl0 {
17                         gpio {
18                                 ralink,group = "spi", "i2c", "jtag", "uartf";
19                                 ralink,function = "gpio";
20                         };
21                 };
22         };
23
24         ethernet@10100000 {
25                 status = "okay";
26                 mtd-mac-address = <&factory 0x28>;
27                 port@0 {
28                         phy-handle = <&phy0>;
29                         phy-mode = "rgmii";
30                 };
31                 mdio-bus {
32                         status = "okay";
33
34                         phy0: ethernet-phy@0 {
35                                 reg = <0>;
36                         };
37                 };
38         };
39
40         pci@10140000 {
41                 status = "okay";
42
43                 pinctrl-names = "default";
44                 pinctrl-0 = <&pci_pins>;
45                 pci_pins: pci {
46                         pci {
47                                 ralink,group = "pci";
48                                 ralink,function = "pci-fnc";
49                         };
50                 };
51
52                 host-bridge {
53                         pci-bridge@1 {
54                                 status = "okay";
55                         };
56                 };
57         };
58
59         wmac@10180000 {
60                 ralink,5ghz = <0>;
61         };
62
63         nor-flash@1c000000 {
64                 compatible = "cfi-flash";
65                 reg = <0x1c000000 0x800000>;
66
67                 bank-width = <2>;
68                 #address-cells = <1>;
69                 #size-cells = <1>;
70
71                 partition@0 {
72                         reg = <0x0 0x0030000>;
73                         label = "u-boot";
74                         read-only;
75                 };
76
77                 partition@30000 {
78                         reg = <0x00030000 0x00010000>;
79                         label = "u-boot-env";
80                         read-only;
81                 };
82
83                 factory: partition@40000 {
84                         reg = <0x00040000 0x00010000>;
85                         label = "factory";
86                         read-only;
87                 };
88
89                 partition@50000 {
90                         reg = <0x00050000 0x007b0000>;
91                         label = "firmware";
92                 };
93         };
94
95         gpio-keys-polled {
96                 compatible = "gpio-keys-polled";
97                 #address-cells = <1>;
98                 #size-cells = <0>;
99                 poll-interval = <100>;
100                 reset {
101                         label = "reset";
102                         gpios = <&gpio0 10 1>;
103                         linux,code = <0x198>;
104                 };
105                 wps {
106                         label = "wps";
107                         gpios = <&gpio1 2 1>;
108                         linux,code = <0x211>;
109                 };
110         };
111
112         gpio-leds {
113                 compatible = "gpio-leds";
114                 wps {
115                         label = "trendnet:orange:wps";
116                         gpios = <&gpio0 9 1>;
117                 };
118                 wps2 {
119                         label = "trendnet:green:wps";
120                         gpios = <&gpio1 4 1>;
121                 };
122         };
123 };