98b0e831aac3f000595130f0314685e523503268
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / rt3052_accton_wr6202.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "accton,wr6202", "ralink,rt3052-soc";
8 model = "Accton WR6202";
9
10 chosen {
11 bootargs = "console=ttyS0,115200";
12 };
13
14 leds {
15 compatible = "gpio-leds";
16
17 wps {
18 label = "blue:wps";
19 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
20 };
21
22 3g {
23 label = "blue:3g";
24 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37
38 wps {
39 label = "wps";
40 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 };
43 };
44
45 flash@1f000000 {
46 compatible = "cfi-flash";
47 reg = <0x1f000000 0x800000>;
48 bank-width = <2>;
49 device-width = <2>;
50
51 partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 partition@0 {
57 label = "u-boot";
58 reg = <0x0 0x30000>;
59 read-only;
60 };
61
62 partition@30000 {
63 label = "u-boot-env";
64 reg = <0x30000 0x10000>;
65 read-only;
66 };
67
68 factory: partition@40000 {
69 compatible = "nvmem-cells";
70 label = "factory";
71 reg = <0x40000 0x10000>;
72 #address-cells = <1>;
73 #size-cells = <1>;
74 read-only;
75
76 eeprom_factory_0: eeprom@0 {
77 reg = <0x0 0x200>;
78 };
79
80 macaddr_factory_28: macaddr@28 {
81 reg = <0x28 0x6>;
82 };
83 };
84
85 partition@50000 {
86 compatible = "denx,uimage";
87 label = "firmware";
88 reg = <0x50000 0x7b0000>;
89 };
90 };
91 };
92
93 gpio_export {
94 compatible = "gpio-export";
95 #size-cells = <0>;
96
97 usb {
98 gpio-export,name = "usb";
99 gpio-export,output = <0>;
100 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
101 };
102 };
103 };
104
105 &state_default {
106 gpio {
107 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
108 function = "gpio";
109 };
110 };
111
112 &ethernet {
113 nvmem-cells = <&macaddr_factory_28>;
114 nvmem-cell-names = "mac-address";
115 };
116
117 &esw {
118 mediatek,portmap = <0x3e>;
119 };
120
121 &wmac {
122 nvmem-cells = <&eeprom_factory_0>;
123 nvmem-cell-names = "eeprom";
124 };
125
126 &otg {
127 status = "okay";
128 };