ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt5350_asiarf_awm002-evb.dtsi
1 #include "rt5350.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 = "asiarf,awm002-evb", "ralink,rt5350-soc";
9
10 leds {
11 compatible = "gpio-leds";
12
13 tx {
14 function = LED_FUNCTION_TX;
15 color = <LED_COLOR_ID_GREEN>;
16 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
17 };
18
19 rx {
20 function = LED_FUNCTION_RX;
21 color = <LED_COLOR_ID_GREEN>;
22 gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
23 };
24
25 wps {
26 function = LED_FUNCTION_WPS;
27 color = <LED_COLOR_ID_GREEN>;
28 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
29 };
30 };
31
32 keys {
33 compatible = "gpio-keys-polled";
34 poll-interval = <20>;
35
36 reset_wps {
37 label = "reset_wps";
38 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
39 linux,code = <KEY_RESTART>;
40 };
41
42 mode {
43 label = "mode";
44 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
45 linux,code = <BTN_0>;
46 };
47 };
48 };
49
50 &spi0 {
51 status = "okay";
52
53 flash@0 {
54 reg = <0>;
55 compatible = "jedec,spi-nor";
56 spi-max-frequency = <10000000>;
57
58 partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 partition@0 {
64 label = "u-boot";
65 reg = <0x0 0x30000>;
66 read-only;
67 };
68
69 partition@30000 {
70 label = "u-boot-env";
71 reg = <0x30000 0x10000>;
72 read-only;
73 };
74
75 partition@40000 {
76 label = "factory";
77 reg = <0x40000 0x10000>;
78 read-only;
79
80 nvmem-layout {
81 compatible = "fixed-layout";
82 #address-cells = <1>;
83 #size-cells = <1>;
84
85 eeprom_factory_0: eeprom@0 {
86 reg = <0x0 0x200>;
87 };
88
89 macaddr_factory_28: macaddr@28 {
90 reg = <0x28 0x6>;
91 };
92 };
93 };
94
95 firmware: partition@50000 {
96 compatible = "denx,uimage";
97 label = "firmware";
98 /* reg property is set based on flash size in DTS files */
99 };
100 };
101 };
102 };
103
104 &ethernet {
105 nvmem-cells = <&macaddr_factory_28>;
106 nvmem-cell-names = "mac-address";
107 };
108
109 &wmac {
110 nvmem-cells = <&eeprom_factory_0>;
111 nvmem-cell-names = "eeprom";
112 };
113
114 &state_default {
115 gpio {
116 groups = "i2c", "jtag";
117 function = "gpio";
118 };
119 };
120
121 &esw {
122 mediatek,portmap = <0x3f>;
123 };