ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / rt3050_netcore_nw718.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 = "netcore,nw718", "ralink,rt3050-soc";
9 model = "Netcore NW718";
10
11 aliases {
12 led-boot = &led_cpu;
13 led-failsafe = &led_cpu;
14 led-running = &led_cpu;
15 led-upgrade = &led_cpu;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_cpu: cpu {
22 function = LED_FUNCTION_CPU;
23 color = <LED_COLOR_ID_AMBER>;
24 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
25 };
26
27 usb {
28 function = LED_FUNCTION_USB;
29 color = <LED_COLOR_ID_AMBER>;
30 gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
31 trigger-sources = <&otg_port1>;
32 linux,default-trigger = "usbport";
33 };
34
35 wps {
36 function = LED_FUNCTION_WPS;
37 color = <LED_COLOR_ID_AMBER>;
38 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
39 };
40 };
41
42 keys {
43 compatible = "gpio-keys-polled";
44 poll-interval = <20>;
45
46 reset {
47 label = "reset";
48 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
49 linux,code = <KEY_RESTART>;
50 };
51
52 wps {
53 label = "wps";
54 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_WPS_BUTTON>;
56 };
57 };
58 };
59
60 &spi0 {
61 status = "okay";
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <25000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x0 0x30000>;
76 read-only;
77 };
78
79 partition@30000 {
80 label = "config";
81 reg = <0x30000 0x20000>;
82 read-only;
83 };
84
85 partition@50000 {
86 label = "factory";
87 reg = <0x50000 0x10000>;
88 read-only;
89
90 nvmem-layout {
91 compatible = "fixed-layout";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 eeprom_factory_0: eeprom@0 {
96 reg = <0x0 0x200>;
97 };
98
99 macaddr_factory_4: macaddr@4 {
100 reg = <0x4 0x6>;
101 };
102 };
103 };
104
105 partition@60000 {
106 compatible = "denx,uimage";
107 label = "firmware";
108 reg = <0x60000 0x3a0000>;
109 };
110 };
111 };
112 };
113
114 &state_default {
115 gpio {
116 groups = "i2c", "jtag", "rgmii", "mdio", "uartf";
117 function = "gpio";
118 };
119 };
120
121 &ethernet {
122 nvmem-cells = <&macaddr_factory_4>;
123 nvmem-cell-names = "mac-address";
124 };
125
126 &esw {
127 mediatek,portmap = <0x2f>;
128 };
129
130 &wmac {
131 nvmem-cells = <&eeprom_factory_0>;
132 nvmem-cell-names = "eeprom";
133 };
134
135 &otg {
136 status = "okay";
137 };