kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / AR725W.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,ar725w", "ralink,rt2880-soc";
10         model = "Airlink101 AR725W";
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                 u-boot-env@30000 {
26                         reg = <0x30000 0x10000>;
27                         label = "u-boot-env";
28                 };
29
30                 factory: factory@40000 {
31                         reg = <0x40000 0x10000>;
32                         label = "factory";
33                         read-only;
34                 };
35
36                 firmware@50000 {
37                         reg = <0x50000 0x3B0000>;
38                         label = "firmware";
39                 };
40         };
41
42         gpio-leds {
43                 compatible = "gpio-leds";
44
45                 status {
46                         label = "ar725w:green:power";
47                         gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
48                 };
49
50                 wpsred {
51                         label = "ar725w:red:wps";
52                         gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
53                 };
54
55                 wpsblue {
56                         label = "ar725w:blue:wps";
57                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
58                 };
59         };
60
61         gpio-keys-polled {
62                 compatible = "gpio-keys-polled";
63                 #address-cells = <1>;
64                 #size-cells = <0>;
65                 poll-interval = <100>;
66
67                 wps {
68                         label = "wps";
69                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
70                         linux,code = <KEY_WPS_BUTTON>;
71                 };
72
73                 reset {
74                         label = "reset";
75                         gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
76                         linux,code = <KEY_RESTART>;
77                 };
78         };
79 };
80
81 &gpio0 {
82         status = "okay";
83 };
84
85 &pinctrl {
86         state_default: pinctrl0 {
87                 gpio {
88                         ralink,group = "i2c", "spi", "uartlite";
89                         ralink,function = "gpio";
90                 };
91         };
92 };
93
94 &ethernet {
95         status = "okay";
96         mtd-mac-address = <&factory 0x4>;
97
98         port@0 {
99                 phy-handle = <&phy0>;
100                 phy-mode = "mii";
101         };
102
103         mdio-bus {
104                 status = "okay";
105
106                 phy0: ethernet-phy@0 {
107                         phy-mode = "mii";
108                         reg = <0>;
109                 };
110         };
111 };
112
113 &wmac {
114         status = "okay";
115         ralink,mtd-eeprom = <&factory 0>;
116 };