ramips: add support for MeiG SLT866 4G CPE
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3052_petatel_psr-680w.dts
1 #include "rt3050.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "petatel,psr-680w", "ralink,rt3052-soc";
8 model = "Petatel PSR-680W Wireless 3G Router";
9
10 aliases {
11 led-boot = &led_wan;
12 led-failsafe = &led_wan;
13 led-running = &led_wan;
14 led-upgrade = &led_wan;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200";
19 };
20
21 flash@1f000000 {
22 compatible = "cfi-flash";
23 reg = <0x1f000000 0x800000>;
24 bank-width = <2>;
25 device-width = <2>;
26
27 partitions {
28 compatible = "fixed-partitions";
29 #address-cells = <1>;
30 #size-cells = <1>;
31
32 partition@0 {
33 label = "u-boot";
34 reg = <0x0 0x30000>;
35 read-only;
36 };
37
38 partition@30000 {
39 label = "u-boot-env";
40 reg = <0x30000 0x10000>;
41 read-only;
42 };
43
44 factory: partition@40000 {
45 compatible = "nvmem-cells";
46 label = "factory";
47 reg = <0x40000 0x10000>;
48 #address-cells = <1>;
49 #size-cells = <1>;
50 read-only;
51
52 eeprom_factory_0: eeprom@0 {
53 reg = <0x0 0x200>;
54 };
55
56 macaddr_factory_4: macaddr@4 {
57 reg = <0x4 0x6>;
58 };
59 };
60
61 partition@50000 {
62 compatible = "denx,uimage";
63 label = "firmware";
64 reg = <0x50000 0x3b0000>;
65 };
66 };
67 };
68
69 leds {
70 compatible = "gpio-leds";
71
72 led_wan: wan {
73 label = "red:wan";
74 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
75 };
76 };
77
78 keys {
79 compatible = "gpio-keys-polled";
80 poll-interval = <20>;
81
82 reset {
83 label = "reset";
84 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
85 linux,code = <KEY_RESTART>;
86 };
87 };
88 };
89
90 &state_default {
91 gpio {
92 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
93 function = "gpio";
94 };
95 };
96
97 &ethernet {
98 nvmem-cells = <&macaddr_factory_4>;
99 nvmem-cell-names = "mac-address";
100 };
101
102 &esw {
103 mediatek,portmap = <0x3e>;
104 };
105
106 &wmac {
107 nvmem-cells = <&eeprom_factory_0>;
108 nvmem-cell-names = "eeprom";
109 };
110
111 &otg {
112 status = "okay";
113 };