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