ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt5350_intenso_memory2move.dts
1 #include "rt5350.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 = "intenso,memory2move", "ralink,rt5350-soc";
9 model = "Intenso Memory 2 Move";
10
11 aliases {
12 led-boot = &led_wifi;
13 led-failsafe = &led_wifi;
14 led-running = &led_wifi;
15 led-upgrade = &led_wifi;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,57600n8 root=/dev/mtdblock5";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 led_wifi: wifi {
26 label = "blue:wifi";
27 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
28 };
29
30 wan {
31 function = LED_FUNCTION_WAN;
32 color = <LED_COLOR_ID_GREEN>;
33 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
34 };
35 };
36
37 keys {
38 compatible = "gpio-keys-polled";
39 poll-interval = <20>;
40
41 power {
42 label = "power";
43 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_POWER>;
45 };
46
47 reset {
48 label = "reset";
49 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_RESTART>;
51 };
52 };
53 };
54
55 &spi0 {
56 status = "okay";
57
58 flash@0 {
59 compatible = "jedec,spi-nor";
60 reg = <0>;
61 spi-max-frequency = <10000000>;
62
63 partitions {
64 compatible = "fixed-partitions";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 partition@0 {
69 label = "Bootloader";
70 reg = <0x0 0x30000>;
71 read-only;
72 };
73
74 partition@30000 {
75 label = "Config";
76 reg = <0x30000 0x10000>;
77 read-only;
78 };
79
80 partition@40000 {
81 label = "factory";
82 reg = <0x40000 0x10000>;
83 read-only;
84
85 nvmem-layout {
86 compatible = "fixed-layout";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 eeprom_factory_0: eeprom@0 {
91 reg = <0x0 0x200>;
92 };
93
94 macaddr_factory_28: macaddr@28 {
95 reg = <0x28 0x6>;
96 };
97 };
98 };
99
100 partition@50000 {
101 compatible = "denx,uimage";
102 label = "firmware";
103 reg = <0x50000 0x7b0000>;
104 };
105 };
106 };
107 };
108
109 &state_default {
110 gpio {
111 groups = "i2c", "uartf";
112 function = "gpio";
113 };
114 };
115
116 &ethernet {
117 nvmem-cells = <&macaddr_factory_28>;
118 nvmem-cell-names = "mac-address";
119 };
120
121 &esw {
122 mediatek,portmap = <0x2f>;
123 };
124
125 &wmac {
126 nvmem-cells = <&eeprom_factory_0>;
127 nvmem-cell-names = "eeprom";
128 };