ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_asus_rt-n12p.dts
1 #include "mt7620n.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 = "asus,rt-n12p", "ralink,mt7620n-soc";
9 model = "Asus RT-N12+";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 wan {
26 function = LED_FUNCTION_WAN;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio2 4 GPIO_ACTIVE_LOW>;
29 };
30
31 lan {
32 function = LED_FUNCTION_LAN;
33 color = <LED_COLOR_ID_GREEN>;
34 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
35 };
36
37 led_power: power {
38 function = LED_FUNCTION_POWER;
39 color = <LED_COLOR_ID_GREEN>;
40 gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
41 };
42
43 air {
44 label = "green:air";
45 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
46 };
47 };
48
49 keys {
50 compatible = "gpio-keys";
51
52 reset {
53 label = "reset";
54 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
55 linux,code = <KEY_RESTART>;
56 };
57 };
58 };
59
60 &gpio1 {
61 status = "okay";
62 };
63
64 &gpio2 {
65 status = "okay";
66 };
67
68 &gpio3 {
69 status = "okay";
70 };
71
72 &spi0 {
73 status = "okay";
74
75 flash@0 {
76 compatible = "jedec,spi-nor";
77 reg = <0>;
78 spi-max-frequency = <10000000>;
79
80 partitions {
81 compatible = "fixed-partitions";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 partition@0 {
86 label = "u-boot";
87 reg = <0x0 0x30000>;
88 read-only;
89 };
90
91 partition@30000 {
92 label = "u-boot-env";
93 reg = <0x30000 0x10000>;
94 read-only;
95 };
96
97 partition@40000 {
98 label = "factory";
99 reg = <0x40000 0x10000>;
100 read-only;
101
102 nvmem-layout {
103 compatible = "fixed-layout";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 eeprom_factory_0: eeprom@0 {
108 reg = <0x0 0x200>;
109 };
110
111 macaddr_factory_4: macaddr@4 {
112 reg = <0x4 0x6>;
113 };
114 };
115 };
116
117 partition@50000 {
118 compatible = "denx,uimage";
119 label = "firmware";
120 reg = <0x50000 0xfb0000>;
121 };
122 };
123 };
124 };
125
126 &ethernet {
127 nvmem-cells = <&macaddr_factory_4>;
128 nvmem-cell-names = "mac-address";
129
130 mediatek,portmap = "llllw";
131 };
132
133 &wmac {
134 nvmem-cells = <&eeprom_factory_0>;
135 nvmem-cell-names = "eeprom";
136 };
137
138 &state_default {
139 default {
140 groups = "ephy", "wled", "i2c", "wdt", "pa", "spi refclk";
141 function = "gpio";
142 };
143 };