ralink: add support for netis WF-2881
[openwrt.git] / target / linux / ramips / dts / AWM002.dtsi
1 /include/ "rt5350.dtsi"
2
3 / {
4         compatible = "AWM002", "ralink,rt5350-soc";
5         model = "AsiaRF AWM002";
6
7         palmbus@10000000 {
8                 spi@b00 {
9                         status = "okay";
10
11                         m25p80@0 {
12                                 #address-cells = <1>;
13                                 #size-cells = <1>;
14                                 reg = <0 0>;
15                                 spi-max-frequency = <10000000>;
16
17                                 partition@0 {
18                                         label = "u-boot";
19                                         reg = <0x0 0x30000>;
20                                         read-only;
21                                 };
22
23                                 partition@30000 {
24                                         label = "u-boot-env";
25                                         reg = <0x30000 0x10000>;
26                                         read-only;
27                                 };
28
29                                 factory: partition@40000 {
30                                         label = "factory";
31                                         reg = <0x40000 0x10000>;
32                                         read-only;
33                                 };
34
35                                 partition@50000 {
36                                         label = "firmware";
37                                         reg = <0x50000 0x1fb0000>;
38                                 };
39                         };
40                 };
41         };
42
43         pinctrl {
44                 state_default: pinctrl0 {
45                         gpio {
46                                 ralink,group = "i2c", "jtag";
47                                 ralink,function = "gpio";
48                         };
49                 };
50         };
51
52         esw@10110000 {
53                 ralink,portmap = <0x3f>;
54         };
55
56         ehci@101c0000 {
57                 status = "okay";
58         };
59
60         ohci@101c1000 {
61                 status = "okay";
62         };
63
64         gpio-leds {
65                 compatible = "gpio-leds";
66
67                 ld1 {
68                         label = "awm002:green:ld1";
69                         gpios = <&gpio0 0 1>;
70                 };
71
72                 ld2 {
73                         label = "awm002:green:ld2";
74                         gpios = <&gpio0 1 1>;
75                 };
76         };
77 };