kernel: bump 4.9 to 4.9.65
[oweals/openwrt.git] / target / linux / ramips / dts / RT-N15.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         #address-cells = <1>;
10         #size-cells = <1>;
11         compatible = "asus,rt-n15", "ralink,rt2880-soc";
12         model = "Asus RT-N15";
13
14         cfi@1f000000 {
15                 compatible = "cfi-flash";
16                 reg = <0x1f000000 0x800000>;
17                 bank-width = <2>;
18                 device-width = <2>;
19                 #address-cells = <1>;
20                 #size-cells = <1>;
21
22                 partition@0 {
23                         label = "uboot";
24                         reg = <0x0 0x30000>;
25                         read-only;
26                 };
27
28                 partition@30000 {
29                         label = "uboot-env";
30                         reg = <0x30000 0x10000>;
31                         read-only;
32                 };
33
34                 factory: partition@40000 {
35                         label = "factory";
36                         reg = <0x40000 0x10000>;
37                         read-only;
38                 };
39
40                 partition@50000 {
41                         label = "firmware";
42                         reg = <0x50000 0x3b0000>;
43                 };
44         };
45
46         rtl8366s {
47                 compatible = "realtek,rtl8366s";
48                 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
49                 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
50         };
51
52         gpio-keys-polled {
53                 compatible = "gpio-keys-polled";
54                 #address-cells = <1>;
55                 #size-cells = <0>;
56                 poll-interval = <100>;
57
58                 wps {
59                         label = "wps";
60                         gpios = <&gpio0 0 GPIO_ACTIVE_HIGH>;
61                         linux,code = <KEY_WPS_BUTTON>;
62                 };
63
64                 reset {
65                         label = "reset";
66                         gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
67                         linux,code = <KEY_RESTART>;
68                 };
69         };
70
71         gpio-leds {
72                 compatible = "gpio-leds";
73
74                 power {
75                         label = "rt-n15:blue:power";
76                         gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
77                 };
78         };
79 };
80
81 &gpio0 {
82         status = "okay";
83 };
84
85 &pinctrl {
86         state_default: pinctrl0 {
87                 gpio {
88                         ralink,group = "i2c", "uartlite", "mdio";
89                         ralink,function = "gpio";
90                 };
91         };
92 };
93
94 &ethernet {
95         status = "okay";
96         mtd-mac-address = <&factory 0x4>;
97
98         port@0 {
99                 mediatek,fixed-link = <1000 1 1 1>;
100         };
101
102         mdio-bus {
103                 status = "okay";
104
105                 phy0: ethernet-phy@0 {
106                         phy-mode = "mii";
107                         reg = <0>;
108                 };
109         };
110 };
111
112 &wmac {
113         ralink,mtd-eeprom = <&factory 0>;
114 };