kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / AR670W.dts
1 /dts-v1/;
2
3 #include "rt2880.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "airlink101,ar670w", "ralink,rt2880-soc";
10         model = "Airlink101 AR670W";
11
12         cfi@bdc00000 {
13                 compatible = "cfi-flash";
14                 reg = <0xbc400000 0x800000>;
15                 bank-width = <2>;
16                 #address-cells = <1>;
17                 #size-cells = <1>;
18
19                 u-boot@0 {
20                         reg = <0x0 0x30000>;
21                         label = "u-boot";
22                         read-only;
23                 };
24
25                 factory: factory@30000 {
26                         reg = <0x30000 0x10000>;
27                         label = "factory";
28                         read-only;
29                 };
30
31                 firmware@40000 {
32                         reg = <0x40000 0x3c0000>;
33                         label = "firmware";
34                 };
35         };
36
37         gpio-leds {
38                 compatible = "gpio-leds";
39
40                 status {
41                         label = "ar670w:green:power";
42                         gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
43                 };
44
45                 wpsblue {
46                         label = "ar670w:blue:wps";
47                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
48                 };
49         };
50
51         gpio-keys-polled {
52                 compatible = "gpio-keys-polled";
53                 #address-cells = <1>;
54                 #size-cells = <0>;
55                 poll-interval = <100>;
56
57                 wps {
58                         label = "wps";
59                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
60                         linux,code = <KEY_WPS_BUTTON>;
61                 };
62
63                 reset {
64                         label = "reset";
65                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
66                         linux,code = <KEY_RESTART>;
67                 };
68         };
69 };
70
71 &gpio0 {
72         status = "okay";
73 };
74
75 &pinctrl {
76         state_default: pinctrl0 {
77                 gpio {
78                         ralink,group = "i2c", "spi", "uartlite";
79                         ralink,function = "gpio";
80                 };
81         };
82 };
83
84 &ethernet {
85         status = "okay";
86         mtd-mac-address = <&factory 0x2004>;
87
88         port@0 {
89                 phy-handle = <&phy0>;
90                 phy-mode = "mii";
91         };
92
93         mdio-bus {
94                 status = "okay";
95
96                 phy0: ethernet-phy@0 {
97                         phy-mode = "mii";
98                         reg = <0>;
99                 };
100         };
101 };
102
103 &wmac {
104         status = "okay";
105         ralink,mtd-eeprom = <&factory 0x2000>;
106 };