ramips: add nor-flash node for the RT-N56U
[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         memorydetect {
10                 ralink,memory = <0x0 0x200000 0x10000000>;
11         };
12
13         palmbus@10000000 {
14                 sysc@0 {
15                         ralink,pinmux = "uartlite";
16                         ralink,gpiomux = "i2c", "jtag";
17                         ralink,uartmux = "gpio";
18                         ralink,pcimux = "pci-fnc";
19                         ralink,wdtmux = <0>;
20                 };
21
22                 timer@100 {
23                         status = "okay";
24                 };
25
26                 gpio0: gpio@600 {
27                         status = "okay";
28                 };
29
30                 gpio1: gpio@638 {
31                         status = "okay";
32                 };
33         };
34
35         ethernet@10100000 {
36                 status = "okay";
37
38                 ralink,fixed-link = <1000 1 1 1>;
39         };
40
41         wmac@10180000 {
42                 status = "okay";
43                 ralink,2ghz = <0>;
44         };
45
46         ehci@101c0000 {
47                 status = "okay";
48         };
49
50         ohci@101c1000 {
51                 status = "okay";
52         };
53
54         nor-flash@1c000000 {
55                 compatible = "cfi-flash";
56                 reg = <0x1c000000 0x800000>;
57
58                 bank-width = <2>;
59                 #address-cells = <1>;
60                 #size-cells = <1>;
61
62                 partition@0 {
63                         reg = <0x0 0x0030000>;
64                         label = "u-boot";
65                         read-only;
66                 };
67
68                 partition@30000 {
69                         reg = <0x00030000 0x00010000>;
70                         label = "u-boot-env";
71                         read-only;
72                 };
73
74                 partition@40000 {
75                         reg = <0x00040000 0x00010000>;
76                         label = "factory";
77                         read-only;
78                 };
79
80                 partition@50000 {
81                         reg = <0x00050000 0x007b0000>;
82                         label = "firmware";
83                 };
84         };
85
86         rtl8367 {
87                 compatible = "realtek,rtl8367";
88                 gpio-sda = <&gpio0 1 0>;
89                 gpio-sck = <&gpio0 2 0>;
90                 realtek,extif1 = <1 0 1 1 1 1 1 1 2>;
91         };
92
93         gpio-keys-polled {
94                 compatible = "gpio-keys-polled";
95                 #address-cells = <1>;
96                 #size-cells = <0>;
97                 poll-interval = <100>;
98                 reset {
99                         label = "reset";
100                         gpios = <&gpio0 13 0>;
101                         linux,code = <0x198>;
102                 };
103                 wps {
104                         label = "wps";
105                         gpios = <&gpio1 2 0>;
106                         linux,code = <0x211>;
107                 };
108         };
109
110         gpio-leds {
111                 compatible = "gpio-leds";
112
113                 power {
114                         label = "asus:blue:power";
115                         gpios = <&gpio0 0 1>;
116                 };
117                 lan {
118                         label = "asus:blue:lan";
119                         gpios = <&gpio0 19 1>;
120                 };
121                 wan {
122                         label = "asus:blue:wan";
123                         gpios = <&gpio1 3 1>;
124                 };
125                 usb {
126                         label = "asus:blue:usb";
127                         gpios = <&gpio1 0 1>;
128                 };
129         };
130 };