c5a600ad29a61f829764ce360dd7fb3fcf0b95be
[openwrt.git] / target / linux / ramips / dts / PSR-680W.dts
1 /dts-v1/;
2
3 /include/ "rt3050.dtsi"
4
5 / {
6         compatible = "PSR-680W", "ralink,rt3052-soc";
7         model = "Petatel PSR-680W Wireless 3G Router";
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 0x3b0000>;
51                 };
52         };
53
54         ethernet@10100000 {
55                 mtd-mac-address = <&factory 0x4>;
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                 wan {
70                         label = "psr-680w:red:wan";
71                         gpios = <&gpio0 19 1>;
72                 };
73         };
74
75         gpio-keys-polled {
76                 compatible = "gpio-keys-polled";
77                 #address-cells = <1>;
78                 #size-cells = <0>;
79                 poll-interval = <20>;
80
81                 reset {
82                         label = "reset";
83                         gpios = <&gpio0 0 1>;
84                         linux,code = <0x198>;
85                 };
86         };
87
88         otg@101c0000 {
89                 status = "okay";
90         };
91 };