ramips: add support for XiaoYu XY-C5
[oweals/openwrt.git] / target / linux / ramips / dts / rt3883_asus_rt-n56u.dts
1 /dts-v1/;
2
3 #include "rt3883.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9         compatible = "asus,rt-n56u", "ralink,rt3883-soc";
10         model = "Asus RT-N56U";
11
12         aliases {
13                 led-boot = &led_power;
14                 led-failsafe = &led_power;
15                 led-running = &led_power;
16                 led-upgrade = &led_power;
17         };
18
19         nor-flash@1c000000 {
20                 compatible = "cfi-flash";
21                 reg = <0x1c000000 0x800000>;
22                 bank-width = <2>;
23
24                 partitions {
25                         compatible = "fixed-partitions";
26                         #address-cells = <1>;
27                         #size-cells = <1>;
28
29                         partition@0 {
30                                 reg = <0x0 0x0030000>;
31                                 label = "u-boot";
32                                 read-only;
33                         };
34
35                         partition@30000 {
36                                 reg = <0x00030000 0x00010000>;
37                                 label = "u-boot-env";
38                                 read-only;
39                         };
40
41                         factory: partition@40000 {
42                                 reg = <0x00040000 0x00010000>;
43                                 label = "factory";
44                                 read-only;
45                         };
46
47                         partition@50000 {
48                                 compatible = "denx,uimage";
49                                 reg = <0x00050000 0x007b0000>;
50                                 label = "firmware";
51                         };
52                 };
53         };
54
55         rtl8367 {
56                 compatible = "realtek,rtl8367";
57                 gpio-sda = <&gpio0 1 GPIO_ACTIVE_HIGH>;
58                 gpio-sck = <&gpio0 2 GPIO_ACTIVE_HIGH>;
59                 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
60         };
61
62         keys {
63                 compatible = "gpio-keys-polled";
64                 poll-interval = <100>;
65
66                 reset {
67                         label = "reset";
68                         gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
69                         linux,code = <KEY_RESTART>;
70                 };
71
72                 wps {
73                         label = "wps";
74                         gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
75                         linux,code = <KEY_WPS_BUTTON>;
76                 };
77         };
78
79         leds {
80                 compatible = "gpio-leds";
81
82                 led_power: power {
83                         label = "rt-n56u:blue:power";
84                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
85                 };
86
87                 lan {
88                         label = "rt-n56u:blue:lan";
89                         gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
90                 };
91
92                 wan {
93                         label = "rt-n56u:blue:wan";
94                         gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
95                 };
96
97                 usb {
98                         label = "rt-n56u:blue:usb";
99                         gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
100                 };
101         };
102 };
103
104 &gpio1 {
105         status = "okay";
106 };
107
108 &pinctrl {
109         state_default: pinctrl0 {
110                 gpio {
111                         ralink,group = "spi", "i2c", "jtag", "uartf";
112                         ralink,function = "gpio";
113                 };
114         };
115 };
116
117 &ethernet {
118         mtd-mac-address = <&factory 0x4>;
119
120         port@0 {
121                 mediatek,fixed-link = <1000 1 1 1>;
122         };
123 };
124
125 &pci {
126         status = "okay";
127 };
128
129 &pci1 {
130         status = "okay";
131
132         wifi@0,0 {
133                 compatible = "pci1814,3091";
134                 reg = <0x10000 0 0 0 0>;
135                 ralink,mtd-eeprom = <&factory 0x8000>;
136         };
137 };
138
139 &wmac {
140         status = "okay";
141         ralink,2ghz = <0>;
142         ralink,mtd-eeprom = <&factory 0>;
143 };
144
145 &ehci {
146         status = "okay";
147 };
148
149 &ohci {
150         status = "okay";
151 };