[ramips] add ofpart info to the devicetrees
[openwrt.git] / target / linux / ramips / dts / RT-N13U.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "RT-N13U", "ralink,rt3052-soc";
7         model = "Asus RT-N13U";
8
9         memorydetect {
10                 ralink,memory = <0x0 0x200000 0x4000000>;
11         };
12
13         chosen {
14                 bootargs = "console=ttyS0,57600 mtdparts=1f000000.cfi:192k(u-boot)ro,64k(u-boot-env)ro,64k(factory)ro,7872k@0x50000(firmware)";
15         };
16
17         palmbus@10000000 {
18                 sysc@0 {
19                         ralink,pinmux = "i2c", "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii";
20                         ralink,uartmux = "gpio";
21                         ralink,wdtmux = <1>;
22                 };
23
24                 gpio0: gpio@600 {
25                         status = "okay";
26                 };
27         };
28
29         cfi@1f000000 {
30                 compatible = "cfi-flash";
31                 reg = <0x1f000000 0x800000>;
32
33                 bank-width = <2>;
34                 device-width = <2>;
35                 #address-cells = <1>;
36                 #size-cells = <1>;
37
38                 partition@0 {
39                         label = "u-boot";
40                         reg = <0x0 0x30000>;
41                         read-only;
42                 };
43
44                 partition@30000 {
45                         label = "u-boot-env";
46                         reg = <0x30000 0x10000>;
47                         read-only;
48                 };
49
50                 factory: partition@40000 {
51                         label = "factory";
52                         reg = <0x40000 0x10000>;
53                         read-only;
54                 };
55
56                 partition@50000 {
57                         label = "firmware";
58                         reg = <0x50000 0x7b0000>;
59                 };
60         };
61
62         gpio-leds {
63                 compatible = "gpio-leds";
64                 power {
65                         label = "rt-n13u:power";
66                         gpios = <&gpio0 7 1>;
67                 };
68                 wifi {
69                         label = "rt-n13u:wifi";
70                         gpios = <&gpio0 8 1>;
71                 };
72         };
73
74         gpio-keys-polled {
75                 compatible = "gpio-keys-polled";
76                 #address-cells = <1>;
77                 #size-cells = <0>;
78                 poll-interval = <10>;
79                 reset {
80                         label = "reset";
81                         gpios = <&gpio0 10 1>;
82                         linux,code = <0x198>;
83                 };
84                 wps {
85                         label = "wps";
86                         gpios = <&gpio0 0 1>;
87                         linux,code = <0x211>;
88                 };
89         };
90
91         ethernet@10100000 {
92                 status = "okay";
93         };
94
95         esw@10110000 {
96                 status = "okay";
97                 ralink,portmap = <0x2f>;
98         };
99
100         wmac@10180000 {
101                 status = "okay";
102         };
103
104         otg@101c0000 {
105                 status = "okay";
106         };
107 };