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