ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_asus_rt-ac5x.dtsi
1 #include "mt7620a.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 aliases {
9 label-mac-device = &ethernet;
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
22 linux,code = <KEY_RESTART>;
23 };
24
25 wps {
26 label = "wps";
27 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
28 linux,code = <KEY_WPS_BUTTON>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 function = LED_FUNCTION_POWER;
37 color = <LED_COLOR_ID_BLUE>;
38 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
39 };
40
41 usb {
42 function = LED_FUNCTION_USB;
43 color = <LED_COLOR_ID_BLUE>;
44 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
45 trigger-sources = <&ohci_port1>, <&ehci_port1>;
46 linux,default-trigger = "usbport";
47 };
48
49 wifi2g {
50 label = "blue:wifi2g";
51 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy1tpt";
53 };
54 };
55 };
56
57 &spi0 {
58 status = "okay";
59
60 flash@0 {
61 compatible = "jedec,spi-nor";
62 reg = <0>;
63
64 spi-max-frequency = <50000000>;
65 m25p,fast-read;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "u-boot";
74 reg = <0x0 0x30000>;
75 read-only;
76 };
77
78 partition@30000 {
79 label = "u-boot-env";
80 reg = <0x30000 0x10000>;
81 read-only;
82 };
83
84 partition@40000 {
85 label = "factory";
86 reg = <0x40000 0x10000>;
87 read-only;
88
89 nvmem-layout {
90 compatible = "fixed-layout";
91 #address-cells = <1>;
92 #size-cells = <1>;
93
94 eeprom_factory_0: eeprom@0 {
95 reg = <0x0 0x200>;
96 };
97
98 eeprom_factory_8000: eeprom@8000 {
99 reg = <0x8000 0x200>;
100 };
101
102 macaddr_factory_28: macaddr@28 {
103 reg = <0x28 0x6>;
104 };
105 };
106 };
107
108 partition@50000 {
109 compatible = "denx,uimage";
110 label = "firmware";
111 reg = <0x50000 0xfb0000>;
112 };
113 };
114 };
115 };
116
117 &ehci {
118 status = "okay";
119 };
120
121 &ohci {
122 status = "okay";
123 };
124
125 &gpio0 {
126 enable-leds {
127 gpio-hog;
128 line-name = "enable-leds";
129 output-low;
130 gpios = <10 GPIO_ACTIVE_HIGH>;
131 };
132 };
133
134 &gpio3 {
135 status = "okay";
136 };
137
138 &state_default {
139 gpio {
140 groups = "i2c", "wled", "uartf";
141 function = "gpio";
142 };
143 };
144
145 &ethernet {
146 nvmem-cells = <&macaddr_factory_28>;
147 nvmem-cell-names = "mac-address";
148
149 mediatek,portmap = "wllll";
150 };
151
152 &wmac {
153 nvmem-cells = <&eeprom_factory_0>;
154 nvmem-cell-names = "eeprom";
155 };
156
157 &pcie {
158 status = "okay";
159 };