ramips: Change all '/include/' clauses to '#include' so preprocessing can be done...
[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 bank-width = <2>;
26 device-width = <2>;
27 #address-cells = <1>;
28 #size-cells = <1>;
29
30 partition@0 {
31 label = "u-boot";
32 reg = <0x0 0x30000>;
33 read-only;
34 };
35
36 partition@30000 {
37 label = "u-boot-env";
38 reg = <0x30000 0x10000>;
39 read-only;
40 };
41
42 factory: partition@40000 {
43 label = "factory";
44 reg = <0x40000 0x10000>;
45 read-only;
46 };
47
48 partition@50000 {
49 label = "firmware";
50 reg = <0x50000 0x7b0000>;
51 };
52 };
53
54 ethernet@10100000 {
55 mtd-mac-address = <&factory 0x28>;
56 };
57
58 esw@10110000 {
59 mediatek,portmap = <0x3e>;
60 };
61
62 wmac@10180000 {
63 ralink,mtd-eeprom = <&factory 0>;
64 };
65
66 gpio-leds {
67 compatible = "gpio-leds";
68
69 usb {
70 label = "w502u:blue:usb";
71 gpios = <&gpio0 13 1>;
72 };
73
74 wps {
75 label = "w502u:blue:wps";
76 gpios = <&gpio0 14 1>;
77 };
78 };
79
80 gpio-keys-polled {
81 compatible = "gpio-keys-polled";
82 #address-cells = <1>;
83 #size-cells = <0>;
84 poll-interval = <20>;
85
86 reset {
87 label = "reset";
88 gpios = <&gpio0 10 1>;
89 linux,code = <0x198>;
90 };
91
92 wps {
93 label = "wps";
94 gpios = <&gpio0 0 1>;
95 linux,code = <0x211>;
96 };
97 };
98
99 otg@101c0000 {
100 status = "okay";
101 };
102 };