ramips: fix dtc warnings
[openwrt/openwrt.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 poll-interval = <20>;
64
65 reset {
66 label = "reset";
67 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
68 linux,code = <KEY_RESTART>;
69 };
70 };
71 };
72
73 &pinctrl {
74 state_default: pinctrl0 {
75 gpio {
76 ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
77 ralink,function = "gpio";
78 };
79 };
80 };
81
82 &ethernet {
83 mtd-mac-address = <&factory 0x4>;
84 };
85
86 &esw {
87 mediatek,portmap = <0x3e>;
88 };
89
90 &wmac {
91 ralink,mtd-eeprom = <&factory 0>;
92 };
93
94 &otg {
95 status = "okay";
96 };