85154634798dce0cb7e309e2737a1ec8bfc94ed5
[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                 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                 bank-width = <2>;
30                 device-width = <2>;
31                 #address-cells = <1>;
32                 #size-cells = <1>;
33
34                 partition@0 {
35                         label = "uboot";
36                         reg = <0x0 0x30000>;
37                         read-only;
38                 };
39
40                 partition@30000 {
41                         label = "uboot-env";
42                         reg = <0x30000 0x10000>;
43                         read-only;
44                 };
45
46                 factory: partition@40000 {
47                         label = "factory";
48                         reg = <0x40000 0x10000>;
49                         read-only;
50                 };
51
52                 partition@50000 {
53                         label = "firmware";
54                         reg = <0x50000 0x3b0000>;
55                 };
56         };
57
58         ethernet@400000 {
59                 status = "okay";
60                 mtd-mac-address = <&factory 0x4>;
61
62                 port@0 {
63                         mediatek,fixed-link = <1000 1 1 1>;
64                 };
65
66                 mdio-bus {
67                         status = "okay";
68
69                         phy0: ethernet-phy@0 {
70                                 phy-mode = "mii";
71                                 reg = <0>;
72                         };
73                 };
74         };
75
76         rtl8366s {
77                 compatible = "realtek,rtl8366s";
78                 gpio-sda = <&gpio0 1 0>;
79                 gpio-sck = <&gpio0 2 0>;
80         };
81
82         wmac@480000 {
83                 ralink,mtd-eeprom = <&factory 0>;
84         };
85
86         gpio-keys-polled {
87                 compatible = "gpio-keys-polled";
88                 #address-cells = <1>;
89                 #size-cells = <0>;
90                 poll-interval = <100>;
91
92                 wps {
93                         label = "wps";
94                         gpios = <&gpio0 0 0>;
95                         linux,code = <0x211>;
96                 };
97
98                 reset {
99                         label = "reset";
100                         gpios = <&gpio0 12 0>;
101                         linux,code = <0x198>;
102                 };
103         };
104
105         gpio-leds {
106                 compatible = "gpio-leds";
107
108                 power {
109                         label = "rt-n15:blue:power";
110                         gpios = <&gpio0 11 1>;
111                 };
112         };
113 };