ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_glinet_gl-mt300n-v2.dts
1 #include "mt7628an.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 = "glinet,gl-mt300n-v2", "mediatek,mt7628an-soc";
9 model = "GL-MT300N-V2";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 label-mac-device = &ethernet;
17 };
18
19 chosen {
20 bootargs = "console=ttyS0,115200";
21 };
22
23 leds {
24 compatible = "gpio-leds";
25
26 led_power: power {
27 function = LED_FUNCTION_POWER;
28 color = <LED_COLOR_ID_GREEN>;
29 default-state = "on";
30 gpios = <&gpio 42 GPIO_ACTIVE_LOW>;
31 };
32
33 wan {
34 function = LED_FUNCTION_WAN;
35 color = <LED_COLOR_ID_GREEN>;
36 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
37 };
38
39 wlan {
40 function = LED_FUNCTION_WLAN;
41 color = <LED_COLOR_ID_RED>;
42 gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
43 };
44 };
45
46 keys {
47 compatible = "gpio-keys";
48
49 reset {
50 label = "reset";
51 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
52 linux,code = <KEY_RESTART>;
53 };
54
55 BTN_0 {
56 label = "BTN_0";
57 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
58 linux,code = <BTN_0>;
59 };
60
61 BTN_1 {
62 label = "BTN_1";
63 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
64 linux,code = <BTN_1>;
65 };
66 };
67
68 gpio_export {
69 compatible = "gpio-export";
70 #size-cells = <0>;
71
72 usb {
73 gpio-export,name = "usb";
74 gpio-export,output = <1>;
75 gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
76 };
77 };
78 };
79
80 &state_default {
81 gpio {
82 groups = "wdt", "gpio", "wled_an", "p0led_an", "p1led_an", "i2s", "i2c";
83 function = "gpio";
84 };
85 };
86
87 &ethernet {
88 nvmem-cells = <&macaddr_factory_4>;
89 nvmem-cell-names = "mac-address";
90 };
91
92 &wmac {
93 status = "okay";
94
95 nvmem-cells = <&eeprom_factory_0>;
96 nvmem-cell-names = "eeprom";
97 };
98
99 &spi0 {
100 status = "okay";
101
102 flash@0 {
103 compatible = "jedec,spi-nor";
104 reg = <0>;
105 spi-max-frequency = <10000000>;
106
107 partitions {
108 compatible = "fixed-partitions";
109 #address-cells = <1>;
110 #size-cells = <1>;
111
112 partition@0 {
113 label = "u-boot";
114 reg = <0x0 0x30000>;
115 read-only;
116 };
117
118 partition@30000 {
119 label = "u-boot-env";
120 reg = <0x30000 0x10000>;
121 read-only;
122 };
123
124 partition@40000 {
125 label = "factory";
126 reg = <0x40000 0x10000>;
127 read-only;
128
129 nvmem-layout {
130 compatible = "fixed-layout";
131 #address-cells = <1>;
132 #size-cells = <1>;
133
134 eeprom_factory_0: eeprom@0 {
135 reg = <0x0 0x400>;
136 };
137
138 macaddr_factory_4: macaddr@4 {
139 reg = <0x4 0x6>;
140 };
141 };
142 };
143
144 partition@50000 {
145 compatible = "denx,uimage";
146 label = "firmware";
147 reg = <0x50000 0xfb0000>;
148 };
149 };
150 };
151 };
152
153 &uart1 {
154 status = "okay";
155 };