6dfe3f480d47cf6fef5156271786c1b3010bc968
[openwrt.git] / target / linux / ramips / dts / RTN56U.dts
1 /dts-v1/;
2
3 /include/ "rt3883.dtsi"
4
5 / {
6         compatible = "RT-N56U", "ralink,rt3883-soc";
7         model = "Asus RT-N56U";
8
9         palmbus@10000000 {
10                 gpio1: gpio@638 {
11                         status = "okay";
12                 };
13         };
14
15         pinctrl {
16                 state_default: pinctrl0 {
17                         gpio {
18                                 ralink,group = "spi", "i2c", "jtag", "uartf";
19                                 ralink,function = "gpio";
20                         };
21                 };
22         };
23
24         ethernet@10100000 {
25                 port@0 {
26                         ralink,fixed-link = <1000 1 1 1>;
27                 };
28         };
29
30         pci@10140000 {
31                 status = "okay";
32
33                 pinctrl-names = "default";
34                 pinctrl-0 = <&pci_pins>;
35                 pci_pins: pci {
36                         pci {
37                                 ralink,group = "pci";
38                                 ralink,function = "pci-fnc";
39                         };
40                 };
41
42                 host-bridge {
43                         pci-bridge@1 {
44                                 status = "okay";
45                         };
46                 };
47         };
48
49         wmac@10180000 {
50                 ralink,2ghz = <0>;
51         };
52
53         ehci@101c0000 {
54                 status = "okay";
55         };
56
57         ohci@101c1000 {
58                 status = "okay";
59         };
60
61         nor-flash@1c000000 {
62                 compatible = "cfi-flash";
63                 reg = <0x1c000000 0x800000>;
64
65                 bank-width = <2>;
66                 #address-cells = <1>;
67                 #size-cells = <1>;
68
69                 partition@0 {
70                         reg = <0x0 0x0030000>;
71                         label = "u-boot";
72                         read-only;
73                 };
74
75                 partition@30000 {
76                         reg = <0x00030000 0x00010000>;
77                         label = "u-boot-env";
78                         read-only;
79                 };
80
81                 partition@40000 {
82                         reg = <0x00040000 0x00010000>;
83                         label = "factory";
84                         read-only;
85                 };
86
87                 partition@50000 {
88                         reg = <0x00050000 0x007b0000>;
89                         label = "firmware";
90                 };
91         };
92
93         rtl8367 {
94                 compatible = "realtek,rtl8367";
95                 gpio-sda = <&gpio0 1 0>;
96                 gpio-sck = <&gpio0 2 0>;
97                 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
98         };
99
100         gpio-keys-polled {
101                 compatible = "gpio-keys-polled";
102                 #address-cells = <1>;
103                 #size-cells = <0>;
104                 poll-interval = <100>;
105                 reset {
106                         label = "reset";
107                         gpios = <&gpio0 13 1>;
108                         linux,code = <0x198>;
109                 };
110                 wps {
111                         label = "wps";
112                         gpios = <&gpio1 2 1>;
113                         linux,code = <0x211>;
114                 };
115         };
116
117         gpio-leds {
118                 compatible = "gpio-leds";
119
120                 power {
121                         label = "asus:blue:power";
122                         gpios = <&gpio0 0 1>;
123                 };
124                 lan {
125                         label = "asus:blue:lan";
126                         gpios = <&gpio0 19 1>;
127                 };
128                 wan {
129                         label = "asus:blue:wan";
130                         gpios = <&gpio1 3 1>;
131                 };
132                 usb {
133                         label = "asus:blue:usb";
134                         gpios = <&gpio1 0 1>;
135                 };
136         };
137 };