ramips: Fix GB-PC1 cpuclock again
[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 #address-cells = <1>;
33 #size-cells = <0>;
34 poll-interval = <20>;
35
36 reset {
37 label = "reset";
38 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41
42 wps {
43 label = "wps";
44 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
45 linux,code = <KEY_WPS_BUTTON>;
46 };
47 };
48
49 cfi@1f000000 {
50 compatible = "cfi-flash";
51 reg = <0x1f000000 0x800000>;
52 bank-width = <2>;
53 device-width = <2>;
54 #address-cells = <1>;
55 #size-cells = <1>;
56
57 partition@0 {
58 label = "u-boot";
59 reg = <0x0 0x30000>;
60 read-only;
61 };
62
63 partition@30000 {
64 label = "u-boot-env";
65 reg = <0x30000 0x10000>;
66 read-only;
67 };
68
69 factory: partition@40000 {
70 label = "factory";
71 reg = <0x40000 0x10000>;
72 read-only;
73 };
74
75 partition@50000 {
76 label = "firmware";
77 reg = <0x50000 0x7b0000>;
78 };
79 };
80
81 gpio_export {
82 compatible = "gpio-export";
83 #size-cells = <0>;
84
85 usb {
86 gpio-export,name = "usb";
87 gpio-export,output = <0>;
88 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
89 };
90 };
91 };
92
93 &pinctrl {
94 state_default: pinctrl0 {
95 gpio {
96 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
97 ralink,function = "gpio";
98 };
99 };
100 };
101
102 &ethernet {
103 mtd-mac-address = <&factory 0x28>;
104 };
105
106 &esw {
107 mediatek,portmap = <0x3e>;
108 };
109
110 &wmac {
111 ralink,mtd-eeprom = <&factory 0>;
112 };
113
114 &otg {
115 status = "okay";
116 };