ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_dlink_dir-610-a1.dts
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 = "dlink,dir-610-a1", "ralink,rt5350-soc";
9 model = "D-Link DIR-610 A1";
10
11 aliases {
12 led-boot = &led_status;
13 led-failsafe = &led_status;
14 led-running = &led_status;
15 led-upgrade = &led_status;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_status: status {
22 function = LED_FUNCTION_STATUS;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
25 };
26
27 wps {
28 function = LED_FUNCTION_WPS;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
31 };
32 };
33
34 keys {
35 compatible = "gpio-keys-polled";
36 poll-interval = <20>;
37
38 reset {
39 label = "reset";
40 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43
44 wps {
45 label = "wps";
46 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
47 linux,code = <KEY_WPS_BUTTON>;
48 };
49 };
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 = "devdata";
73 reg = <0x30000 0x10000>;
74 read-only;
75
76 nvmem-layout {
77 compatible = "fixed-layout";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 eeprom_devdata_4000: eeprom@4000 {
82 reg = <0x4000 0x200>;
83 };
84
85 macaddr_devdata_4004: macaddr@4004 {
86 reg = <0x4004 0x6>;
87 };
88 };
89 };
90
91 partition@40000 {
92 label = "factory";
93 reg = <0x40000 0x10000>;
94 read-only;
95 };
96
97 partition@50000 {
98 compatible = "seama";
99 label = "firmware";
100 reg = <0x50000 0x3b0000>;
101 };
102 };
103 };
104 };
105
106 &state_default {
107 gpio {
108 groups = "i2c", "jtag", "uartf";
109 function = "gpio";
110 };
111 };
112
113 &ethernet {
114 nvmem-cells = <&macaddr_devdata_4004>;
115 nvmem-cell-names = "mac-address";
116 };
117
118 &esw {
119 status = "okay";
120 mediatek,portmap = <0x2f>;
121 mediatek,led_polarity = <0x17>;
122 };
123
124 &wmac {
125 ralink,led-polarity = <1>;
126 nvmem-cells = <&eeprom_devdata_4000>;
127 nvmem-cell-names = "eeprom";
128 };