ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7628an_tama_w06.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 = "tama,w06", "mediatek,mt7628an-soc";
9 model = "Tama W06";
10
11 leds {
12 compatible = "gpio-leds";
13
14 wps {
15 function = LED_FUNCTION_WPS;
16 color = <LED_COLOR_ID_GREEN>;
17 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
18 };
19
20 wan {
21 function = LED_FUNCTION_WAN;
22 color = <LED_COLOR_ID_GREEN>;
23 gpios = <&gpio 43 GPIO_ACTIVE_LOW>;
24 };
25
26 wireless {
27 function = LED_FUNCTION_WLAN;
28 color = <LED_COLOR_ID_GREEN>;
29 gpios = <&gpio 46 GPIO_ACTIVE_LOW>;
30 };
31 };
32
33 keys {
34 compatible = "gpio-keys";
35
36 reset {
37 label = "reset";
38 gpios = <&gpio 38 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41 };
42 };
43
44 &ethernet {
45 nvmem-cells = <&macaddr_factory_28>;
46 nvmem-cell-names = "mac-address";
47 };
48
49 &state_default {
50 gpio {
51 groups = "uart1", "p0led_an", "wdt";
52 function = "gpio";
53 };
54 };
55
56 &spi0 {
57 status = "okay";
58
59 flash@0 {
60 compatible = "jedec,spi-nor";
61 reg = <0>;
62 spi-max-frequency = <10000000>;
63
64 partitions {
65 compatible = "fixed-partitions";
66 #address-cells = <1>;
67 #size-cells = <1>;
68
69 partition@0 {
70 label = "u-boot";
71 reg = <0x0 0x30000>;
72 read-only;
73 };
74
75 partition@30000 {
76 label = "u-boot-env";
77 reg = <0x30000 0x10000>;
78 read-only;
79 };
80
81 partition@40000 {
82 label = "factory";
83 reg = <0x40000 0x10000>;
84 read-only;
85
86 nvmem-layout {
87 compatible = "fixed-layout";
88 #address-cells = <1>;
89 #size-cells = <1>;
90
91 eeprom_factory_0: eeprom@0 {
92 reg = <0x0 0x400>;
93 };
94
95 macaddr_factory_28: macaddr@28 {
96 reg = <0x28 0x6>;
97 };
98 };
99 };
100
101 partition@50000 {
102 compatible = "denx,uimage";
103 label = "firmware";
104 reg = <0x50000 0xeb0000>;
105 };
106
107 partition@f00000 {
108 label = "user-data";
109 reg = <0xf00000 0x100000>;
110 read-only;
111 };
112 };
113 };
114 };
115
116 &wmac {
117 status = "okay";
118
119 nvmem-cells = <&eeprom_factory_0>;
120 nvmem-cell-names = "eeprom";
121 };