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