kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / TEW-691GR.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "trendnet,tew-691gr", "ralink,rt3883-soc";
10         model = "TRENDnet TEW-691GR";
11
12         nor-flash@1c000000 {
13                 compatible = "cfi-flash";
14                 reg = <0x1c000000 0x800000>;
15                 bank-width = <2>;
16                 #address-cells = <1>;
17                 #size-cells = <1>;
18
19                 partition@0 {
20                         reg = <0x0 0x0030000>;
21                         label = "u-boot";
22                         read-only;
23                 };
24
25                 partition@30000 {
26                         reg = <0x00030000 0x00010000>;
27                         label = "u-boot-env";
28                         read-only;
29                 };
30
31                 factory: partition@40000 {
32                         reg = <0x00040000 0x00010000>;
33                         label = "factory";
34                         read-only;
35                 };
36
37                 partition@50000 {
38                         reg = <0x00050000 0x007b0000>;
39                         label = "firmware";
40                 };
41         };
42
43         gpio-keys-polled {
44                 compatible = "gpio-keys-polled";
45                 #address-cells = <1>;
46                 #size-cells = <0>;
47                 poll-interval = <100>;
48
49                 reset {
50                         label = "reset";
51                         gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
52                         linux,code = <KEY_RESTART>;
53                 };
54
55                 wps {
56                         label = "wps";
57                         gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
58                         linux,code = <KEY_WPS_BUTTON>;
59                 };
60
61                 rfkill {
62                         label = "rfkill";
63                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
64                         linux,code = <KEY_RFKILL>;
65                 };
66         };
67
68         gpio-leds {
69                 compatible = "gpio-leds";
70
71                 wps {
72                         label = "tew-691gr:green:wps";
73                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
74                 };
75         };
76 };
77
78 &gpio1 {
79         status = "okay";
80 };
81
82 &pinctrl {
83         state_default: pinctrl0 {
84                 gpio {
85                         ralink,group = "spi", "i2c", "jtag", "uartf";
86                         ralink,function = "gpio";
87                 };
88         };
89 };
90
91 &ethernet {
92         mtd-mac-address = <&factory 0x4>;
93
94         port@0 {
95                 phy-handle = <&phy0>;
96                 phy-mode = "rgmii";
97         };
98
99         mdio-bus {
100                 status = "okay";
101
102                 phy0: ethernet-phy@0 {
103                         reg = <0>;
104                         phy-mode = "rgmii";
105                 };
106         };
107 };
108
109 &wmac {
110         status = "okay";
111         ralink,mtd-eeprom = <&factory 0x0>;
112         ralink,5ghz = <0>;
113         mtd-mac-address = <&factory 0x4>;
114         mtd-mac-address-increment = <1>;
115 };