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