ramips: fix dtc warnings
[openwrt/openwrt.git] / target / linux / ramips / dts / W502U.dts
1 /dts-v1/;
2
3 #include "rt3050.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "alfanetworks,w502u", "ralink,rt3052-soc";
10 model = "ALFA Networks W502U";
11
12 aliases {
13 led-status = &led_wps;
14 };
15
16 chosen {
17 bootargs = "console=ttyS0,115200";
18 };
19
20 cfi@1f000000 {
21 compatible = "cfi-flash";
22 reg = <0x1f000000 0x800000>;
23 bank-width = <2>;
24 device-width = <2>;
25 #address-cells = <1>;
26 #size-cells = <1>;
27
28 partition@0 {
29 label = "u-boot";
30 reg = <0x0 0x30000>;
31 read-only;
32 };
33
34 partition@30000 {
35 label = "u-boot-env";
36 reg = <0x30000 0x10000>;
37 read-only;
38 };
39
40 factory: partition@40000 {
41 label = "factory";
42 reg = <0x40000 0x10000>;
43 read-only;
44 };
45
46 partition@50000 {
47 label = "firmware";
48 reg = <0x50000 0x7b0000>;
49 };
50 };
51
52 gpio-leds {
53 compatible = "gpio-leds";
54
55 usb {
56 label = "w502u:blue:usb";
57 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
58 };
59
60 led_wps: wps {
61 label = "w502u:blue:wps";
62 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
63 };
64 };
65
66 gpio-keys-polled {
67 compatible = "gpio-keys-polled";
68 poll-interval = <20>;
69
70 reset {
71 label = "reset";
72 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
73 linux,code = <KEY_RESTART>;
74 };
75
76 wps {
77 label = "wps";
78 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
79 linux,code = <KEY_WPS_BUTTON>;
80 };
81 };
82 };
83
84 &pinctrl {
85 state_default: pinctrl0 {
86 gpio {
87 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
88 ralink,function = "gpio";
89 };
90 };
91 };
92
93 &ethernet {
94 mtd-mac-address = <&factory 0x28>;
95 };
96
97 &esw {
98 mediatek,portmap = <0x3e>;
99 };
100
101 &wmac {
102 ralink,mtd-eeprom = <&factory 0>;
103 };
104
105 &otg {
106 status = "okay";
107 };