ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_zte_q7.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 = "zte,q7", "ralink,mt7620a-soc";
9 model = "ZTE Q7";
10
11 aliases {
12 led-boot = &led_status_blue;
13 led-failsafe = &led_status_blue;
14 led-running = &led_status_blue;
15 led-upgrade = &led_status_blue;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 statred {
22 function = LED_FUNCTION_STATUS;
23 color = <LED_COLOR_ID_RED>;
24 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
25 };
26
27 led_status_blue: statblue {
28 function = LED_FUNCTION_STATUS;
29 color = <LED_COLOR_ID_BLUE>;
30 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 keys {
35 compatible = "gpio-keys";
36
37 reset {
38 label = "reset";
39 gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
40 linux,code = <KEY_RESTART>;
41 };
42 };
43 };
44
45 &gpio1 {
46 status = "okay";
47 };
48
49 &spi0 {
50 status = "okay";
51
52 flash@0 {
53 compatible = "jedec,spi-nor";
54 reg = <0>;
55 spi-max-frequency = <10000000>;
56
57 partitions {
58 compatible = "fixed-partitions";
59 #address-cells = <1>;
60 #size-cells = <1>;
61
62 partition@0 {
63 label = "u-boot";
64 reg = <0x0 0x30000>;
65 read-only;
66 };
67
68 partition@30000 {
69 label = "u-boot-env";
70 reg = <0x30000 0x10000>;
71 read-only;
72 };
73
74 partition@40000 {
75 label = "factory";
76 reg = <0x40000 0x10000>;
77 read-only;
78
79 nvmem-layout {
80 compatible = "fixed-layout";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 eeprom_factory_0: eeprom@0 {
85 reg = <0x0 0x200>;
86 };
87
88 macaddr_factory_4: macaddr@4 {
89 reg = <0x4 0x6>;
90 };
91 };
92 };
93
94 partition@50000 {
95 compatible = "denx,uimage";
96 label = "firmware";
97 reg = <0x50000 0x7b0000>;
98 };
99 };
100 };
101 };
102
103 &state_default {
104 gpio {
105 groups = "i2c", "uartf", "rgmii1", "rgmii2", "ephy", "wled";
106 function = "gpio";
107 };
108 };
109
110 &ethernet {
111 nvmem-cells = <&macaddr_factory_4>;
112 nvmem-cell-names = "mac-address";
113
114 mediatek,portmap = "wllll";
115 };
116
117 &wmac {
118 nvmem-cells = <&eeprom_factory_0>;
119 nvmem-cell-names = "eeprom";
120 };
121
122 &sdhci {
123 status = "okay";
124 };
125
126 &ehci {
127 status = "okay";
128 };
129
130 &ohci {
131 status = "okay";
132 };