[ramips] fix RT-N15 support
[openwrt.git] / target / linux / ramips / dts / RT-N15.dts
1 /dts-v1/;
2
3 /include/ "rt2880.dtsi"
4
5 / {
6         #address-cells = <1>;
7         #size-cells = <1>;
8         compatible = "RT-N15", "ralink,rt2880-soc";
9         model = "Asus RT-N15";
10
11         palmbus@300000 {
12                 sysc@0 {
13                         ralink,pinmux = "uartlite";
14                         ralink,gpiomux = "i2c";
15                         ralink,uartmux = "gpio";
16                         ralink,wdtmux = <1>;
17                 };
18
19                 gpio0: gpio@600 {
20                         status = "okay";
21                 };
22         };
23
24         cfi@1f000000 {
25                 compatible = "cfi-flash";
26                 reg = <0x1f000000 0x800000>;
27
28                 bank-width = <2>;
29                 device-width = <2>;
30                 #address-cells = <1>;
31                 #size-cells = <1>;
32
33                 partition@0 {
34                         label = "uboot";
35                         reg = <0x0 0x30000>;
36                         read-only;
37                 };
38                 partition@30000 {
39                         label = "uboot-env";
40                         reg = <0x30000 0x10000>;
41                         read-only;
42                 };
43                 partition@40000 {
44                         label = "factory";
45                         reg = <0x40000 0x10000>;
46                         read-only;
47                 };
48                 partition@50000 {
49                         label = "linux";
50                         reg = <0x50000 0x3b0000>;
51                 };
52         };
53
54         ethernet@400000 {
55                 status = "okay";
56
57                 ralink,fixed-link = <1000 1 1 1>;
58         };
59
60         wmac@480000 {
61                 status = "okay";
62         };
63
64         rtl8366s {
65                 compatible = "realtek,rtl8366s";
66                 gpio-sda = <&gpio0 1 0>;
67                 gpio-sck = <&gpio0 2 0>;
68         };
69
70         gpio-keys-polled {
71                 compatible = "gpio-keys-polled";
72                 #address-cells = <1>;
73                 #size-cells = <0>;
74                 poll-interval = <100>;
75                 wps {
76                         label = "wps";
77                         gpios = <&gpio0 0 0>;
78                         linux,code = <0x211>;
79                 };
80                 reset {
81                         label = "reset";
82                         gpios = <&gpio0 12 0>;
83                         linux,code = <0x198>;
84                 };
85         };
86
87         gpio-leds {
88                 compatible = "gpio-leds";
89
90                 power {
91                         label = "rt-n15:blue:power";
92                         gpios = <&gpio0 11 1>;
93                 };
94         };
95 };