ralink: add support for the mt7530 eval board
[openwrt/svn-archive/archive.git] / target / linux / ramips / dts / W502U.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6 compatible = "W502U", "ralink,rt3052-soc";
7 model = "ALFA Networks W502U";
8
9 chosen {
10 bootargs = "console=ttyS0,115200";
11 };
12
13 pinctrl {
14 state_default: pinctrl0 {
15 gpio {
16 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
17 ralink,function = "gpio";
18 };
19 };
20 };
21
22 cfi@1f000000 {
23 compatible = "cfi-flash";
24 reg = <0x1f000000 0x800000>;
25
26 bank-width = <2>;
27 device-width = <2>;
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 partition@0 {
32 label = "u-boot";
33 reg = <0x0 0x30000>;
34 read-only;
35 };
36
37 partition@30000 {
38 label = "u-boot-env";
39 reg = <0x30000 0x10000>;
40 read-only;
41 };
42
43 factory: partition@40000 {
44 label = "factory";
45 reg = <0x40000 0x10000>;
46 read-only;
47 };
48
49 partition@50000 {
50 label = "firmware";
51 reg = <0x50000 0x7b0000>;
52 };
53 };
54
55 esw@10110000 {
56 ralink,portmap = <0x3e>;
57 };
58
59 gpio-leds {
60 compatible = "gpio-leds";
61 usb {
62 label = "alfa:blue:usb";
63 gpios = <&gpio0 13 1>;
64 };
65 wps {
66 label = "alfa:blue:wps";
67 gpios = <&gpio0 14 1>;
68 };
69 };
70
71 gpio-keys-polled {
72 compatible = "gpio-keys-polled";
73 #address-cells = <1>;
74 #size-cells = <0>;
75 poll-interval = <20>;
76 reset {
77 label = "reset";
78 gpios = <&gpio0 10 1>;
79 linux,code = <0x198>;
80 };
81 wps {
82 label = "wps";
83 gpios = <&gpio0 0 1>;
84 linux,code = <0x211>;
85 };
86 };
87
88 otg@101c0000 {
89 status = "okay";
90 };
91 };