ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_planex_mzk-ex300np.dts
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 compatible = "planex,mzk-ex300np", "ralink,mt7620a-soc";
9 model = "Planex MZK-EX300NP";
10
11 aliases {
12 led-boot = &led_wps;
13 led-failsafe = &led_wps;
14 led-running = &led_wps;
15 led-upgrade = &led_wps;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 wifi {
22 label = "green:wifi";
23 gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
24 };
25
26 led_wps: wps {
27 function = LED_FUNCTION_WPS;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
30 };
31
32 rep {
33 label = "blue:rep";
34 gpios = <&gpio1 4 GPIO_ACTIVE_LOW>;
35 };
36
37 wifi1 {
38 label = "blue:wifi1";
39 gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
40 };
41
42 wifi2 {
43 label = "blue:wifi2";
44 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
45 };
46
47 wifi3 {
48 label = "blue:wifi3";
49 gpios = <&gpio1 0 GPIO_ACTIVE_LOW>;
50 };
51 };
52
53 keys {
54 compatible = "gpio-keys";
55
56 reset {
57 label = "reset";
58 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
59 linux,code = <KEY_RESTART>;
60 };
61
62 wps {
63 label = "wps";
64 gpios = <&gpio1 3 GPIO_ACTIVE_HIGH>;
65 linux,code = <KEY_RFKILL>;
66 };
67 };
68 };
69
70 &gpio1 {
71 status = "okay";
72 };
73
74 &gpio3 {
75 status = "okay";
76 };
77
78 &spi0 {
79 status = "okay";
80
81 flash@0 {
82 compatible = "jedec,spi-nor";
83 reg = <0>;
84 spi-max-frequency = <10000000>;
85
86 partitions {
87 compatible = "fixed-partitions";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 partition@0 {
92 label = "u-boot";
93 reg = <0x0 0x30000>;
94 read-only;
95 };
96
97 partition@30000 {
98 label = "u-boot-env";
99 reg = <0x30000 0x10000>;
100 read-only;
101 };
102
103 partition@40000 {
104 label = "factory";
105 reg = <0x40000 0x10000>;
106 read-only;
107
108 nvmem-layout {
109 compatible = "fixed-layout";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 eeprom_factory_0: eeprom@0 {
114 reg = <0x0 0x200>;
115 };
116
117 macaddr_factory_4: macaddr@4 {
118 reg = <0x4 0x6>;
119 };
120 };
121 };
122
123 partition@50000 {
124 compatible = "denx,uimage";
125 label = "firmware";
126 reg = <0x50000 0x730000>;
127 };
128
129 partition@780000 {
130 label = "Udata";
131 reg = <0x780000 0x80000>;
132 };
133 };
134 };
135 };
136
137 &state_default {
138 gpio {
139 groups = "i2c", "spi refclk", "rgmii1", "wled";
140 function = "gpio";
141 };
142 };
143
144 &ethernet {
145 pinctrl-names = "default";
146 pinctrl-0 = <&ephy_pins>;
147
148 nvmem-cells = <&macaddr_factory_4>;
149 nvmem-cell-names = "mac-address";
150
151 mediatek,portmap = "llllw";
152 };
153
154 &wmac {
155 nvmem-cells = <&eeprom_factory_0>;
156 nvmem-cell-names = "eeprom";
157 };