ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7621_gnubee_gb-pc2.dts
1 #include "mt7621.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 = "gnubee,gb-pc2", "mediatek,mt7621-soc";
9 model = "GnuBee GB-PC2";
10
11 aliases {
12 led-boot = &led_system;
13 led-failsafe = &led_system;
14 led-running = &led_system;
15 led-upgrade = &led_system;
16 };
17
18 keys {
19 compatible = "gpio-keys";
20
21 reset {
22 label = "reset";
23 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
24 linux,code = <KEY_RESTART>;
25 };
26 };
27
28 leds {
29 compatible = "gpio-leds";
30
31 ethblack-green {
32 label = "green:ethblack";
33 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
34 };
35
36 ethblue-green {
37 label = "green:ethblue";
38 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
39 };
40
41 ethyellow-green {
42 label = "green:ethyellow";
43 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
44 };
45
46 ethyellow-orange {
47 label = "orange:ethyellow";
48 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
49 };
50
51 power {
52 function = LED_FUNCTION_POWER;
53 color = <LED_COLOR_ID_GREEN>;
54 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
55 linux,default-trigger = "default-on";
56 };
57
58 led_system: system {
59 label = "green:system";
60 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
61 linux,default-trigger = "disk-activity";
62 };
63 };
64 };
65
66 &sdhci {
67 status = "okay";
68 };
69
70 &spi0 {
71 status = "okay";
72
73 flash@0 {
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <50000000>;
77 broken-flash-reset;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x0 0x30000>;
87 read-only;
88 };
89
90 partition@30000 {
91 label = "u-boot-env";
92 reg = <0x30000 0x10000>;
93 read-only;
94 };
95
96 partition@40000 {
97 label = "factory";
98 reg = <0x40000 0x10000>;
99 read-only;
100
101 nvmem-layout {
102 compatible = "fixed-layout";
103 #address-cells = <1>;
104 #size-cells = <1>;
105
106 macaddr_factory_e000: macaddr@e000 {
107 reg = <0xe000 0x6>;
108 };
109 };
110 };
111
112 partition@50000 {
113 compatible = "denx,uimage";
114 label = "firmware";
115 reg = <0x50000 0x1fb0000>;
116 };
117 };
118 };
119 };
120
121 &pcie {
122 status = "okay";
123 };
124
125 &gmac0 {
126 nvmem-cells = <&macaddr_factory_e000>;
127 nvmem-cell-names = "mac-address";
128 };
129
130 &gmac1 {
131 status = "okay";
132 label = "ethyellow";
133 phy-mode = "rgmii-rxid";
134 phy-handle = <&ethphy5>;
135
136 nvmem-cells = <&macaddr_factory_e000>;
137 nvmem-cell-names = "mac-address";
138 };
139
140 &mdio {
141 ethphy5: ethernet-phy@5 {
142 reg = <5>;
143 };
144 };
145
146 &switch0 {
147 ports {
148 port@0 {
149 status = "okay";
150 label = "ethblack";
151 };
152
153 port@4 {
154 status = "okay";
155 label = "ethblue";
156 };
157 };
158 };
159
160 &state_default {
161 gpio {
162 groups = "jtag", "uart3", "wdt";
163 function = "gpio";
164 };
165 };