f57c0a860a45a99c3c85f29bc6eb982b63377539
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / PSR-680W.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 = "petatel,psr-680w", "ralink,rt3052-soc";
10 model = "Petatel PSR-680W Wireless 3G Router";
11
12 aliases {
13 led-status = &led_wan;
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 0x3b0000>;
49 };
50 };
51
52 gpio-leds {
53 compatible = "gpio-leds";
54
55 led_wan: wan {
56 label = "psr-680w:red:wan";
57 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
58 };
59 };
60
61 gpio-keys-polled {
62 compatible = "gpio-keys-polled";
63 #address-cells = <1>;
64 #size-cells = <0>;
65 poll-interval = <20>;
66
67 reset {
68 label = "reset";
69 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
70 linux,code = <KEY_RESTART>;
71 };
72 };
73 };
74
75 &pinctrl {
76 state_default: pinctrl0 {
77 gpio {
78 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
79 ralink,function = "gpio";
80 };
81 };
82 };
83
84 &ethernet {
85 mtd-mac-address = <&factory 0x4>;
86 };
87
88 &esw {
89 mediatek,portmap = <0x3e>;
90 };
91
92 &wmac {
93 ralink,mtd-eeprom = <&factory 0>;
94 };
95
96 &otg {
97 status = "okay";
98 };