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