ramips: dts: use generic node name for flash
[oweals/openwrt.git] / target / linux / ramips / dts / rt3052_petatel_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-boot = &led_wan;
14                 led-failsafe = &led_wan;
15                 led-running = &led_wan;
16                 led-upgrade = &led_wan;
17         };
18
19         chosen {
20                 bootargs = "console=ttyS0,115200";
21         };
22
23         flash@1f000000 {
24                 compatible = "cfi-flash";
25                 reg = <0x1f000000 0x800000>;
26                 bank-width = <2>;
27                 device-width = <2>;
28
29                 partitions {
30                         compatible = "fixed-partitions";
31                         #address-cells = <1>;
32                         #size-cells = <1>;
33
34                         partition@0 {
35                                 label = "u-boot";
36                                 reg = <0x0 0x30000>;
37                                 read-only;
38                         };
39
40                         partition@30000 {
41                                 label = "u-boot-env";
42                                 reg = <0x30000 0x10000>;
43                                 read-only;
44                         };
45
46                         factory: partition@40000 {
47                                 label = "factory";
48                                 reg = <0x40000 0x10000>;
49                                 read-only;
50                         };
51
52                         partition@50000 {
53                                 compatible = "denx,uimage";
54                                 label = "firmware";
55                                 reg = <0x50000 0x3b0000>;
56                         };
57                 };
58         };
59
60         leds {
61                 compatible = "gpio-leds";
62
63                 led_wan: wan {
64                         label = "psr-680w:red:wan";
65                         gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
66                 };
67         };
68
69         keys {
70                 compatible = "gpio-keys-polled";
71                 poll-interval = <20>;
72
73                 reset {
74                         label = "reset";
75                         gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
76                         linux,code = <KEY_RESTART>;
77                 };
78         };
79 };
80
81 &state_default {
82         gpio {
83                 groups = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
84                 function = "gpio";
85         };
86 };
87
88 &ethernet {
89         mtd-mac-address = <&factory 0x4>;
90 };
91
92 &esw {
93         mediatek,portmap = <0x3e>;
94 };
95
96 &wmac {
97         ralink,mtd-eeprom = <&factory 0x0>;
98 };
99
100 &otg {
101         status = "okay";
102 };