ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_wrtnode_wrtnode.dts
1 #include "mt7620n.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/leds/common.h>
5
6 / {
7 compatible = "wrtnode,wrtnode", "ralink,mt7620n-soc";
8 model = "WRTNODE";
9
10 aliases {
11 led-boot = &led_indicator;
12 led-failsafe = &led_indicator;
13 led-running = &led_indicator;
14 led-upgrade = &led_indicator;
15 };
16
17 leds {
18 compatible = "gpio-leds";
19
20 led_indicator: indicator {
21 function = LED_FUNCTION_INDICATOR;
22 color = <LED_COLOR_ID_BLUE>;
23 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
24 };
25 };
26 };
27
28 &gpio1 {
29 status = "okay";
30 };
31
32 &spi0 {
33 status = "okay";
34
35 flash@0 {
36 compatible = "jedec,spi-nor";
37 reg = <0>;
38 spi-max-frequency = <10000000>;
39
40 partitions {
41 compatible = "fixed-partitions";
42 #address-cells = <1>;
43 #size-cells = <1>;
44
45 partition@0 {
46 label = "u-boot";
47 reg = <0x0 0x30000>;
48 read-only;
49 };
50
51 partition@30000 {
52 label = "u-boot-env";
53 reg = <0x30000 0x10000>;
54 read-only;
55 };
56
57 partition@40000 {
58 label = "factory";
59 reg = <0x40000 0x10000>;
60 read-only;
61
62 nvmem-layout {
63 compatible = "fixed-layout";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 eeprom_factory_0: eeprom@0 {
68 reg = <0x0 0x200>;
69 };
70
71 macaddr_factory_4: macaddr@4 {
72 reg = <0x4 0x6>;
73 };
74 };
75 };
76
77 partition@50000 {
78 compatible = "denx,uimage";
79 label = "firmware";
80 reg = <0x50000 0xfb0000>;
81 };
82 };
83 };
84 };
85
86 &ehci {
87 status = "okay";
88 };
89
90 &ohci {
91 status = "okay";
92 };
93
94 &ethernet {
95 nvmem-cells = <&macaddr_factory_4>;
96 nvmem-cell-names = "mac-address";
97
98 mediatek,portmap = "wllll";
99 };
100
101 &wmac {
102 nvmem-cells = <&eeprom_factory_0>;
103 nvmem-cell-names = "eeprom";
104 };
105
106 &state_default {
107 default {
108 groups = "ephy", "wled", "pa", "i2c", "wdt", "uartf", "spi refclk";
109 function = "gpio";
110 };
111 };