ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt5350_dlink_dwr-512-b.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,dwr-512-b", "ralink,rt5350-soc";
9 model = "D-Link DWR-512 B";
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 keys {
19 compatible = "gpio-keys-polled";
20 poll-interval = <20>;
21
22 wps {
23 label = "wps";
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
25 linux,code = <KEY_WPS_BUTTON>;
26 };
27
28 reset {
29 label = "reset";
30 gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
31 linux,code = <KEY_RESTART>;
32 };
33 };
34
35 leds {
36 compatible = "gpio-leds";
37
38 sms {
39 label = "green:sms";
40 gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
41 };
42 led_status: status {
43 function = LED_FUNCTION_STATUS;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
46 };
47 2g {
48 label = "green:2g";
49 gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
50 };
51 3g {
52 label = "green:3g";
53 gpios = <&gpio0 19 GPIO_ACTIVE_LOW>;
54 };
55 sstrengthr {
56 label = "red:sigstrength";
57 gpios = <&gpio0 20 GPIO_ACTIVE_LOW>;
58 };
59 sstrengthg {
60 label = "green:sigstrength";
61 gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
62 };
63 };
64
65 gpio-export {
66 compatible = "gpio-export";
67 #size-cells = <0>;
68
69 slic_int {
70 gpio-export,name = "slic_int";
71 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
72 };
73 modem3g_enable {
74 gpio-export,name = "modem3g_enable";
75 gpio-export,output = <1>;
76 gpios = <&gpio0 18 GPIO_ACTIVE_HIGH>;
77 };
78 };
79 };
80
81 &spi0 {
82 status = "okay";
83
84 flash@0 {
85 compatible = "jedec,spi-nor";
86 reg = <0>;
87 spi-max-frequency = <30000000>;
88 m25p,fast-read;
89
90 partitions {
91 compatible = "fixed-partitions";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 partition@0 {
96 label = "jboot";
97 reg = <0x0 0x10000>;
98 read-only;
99 };
100
101 partition@10000 {
102 compatible = "amit,jimage";
103 label = "firmware";
104 reg = <0x10000 0x7e0000>;
105 };
106
107 partition@7f0000 {
108 label = "config";
109 reg = <0x7f0000 0x10000>;
110
111 nvmem-layout {
112 compatible = "fixed-layout";
113 #address-cells = <1>;
114 #size-cells = <1>;
115
116 macaddr_config_e07e: macaddr@e07e {
117 reg = <0xe07e 0x6>;
118 };
119
120 eeprom_config_e08a: eeprom@e08a {
121 reg = <0xe08a 0x200>;
122 };
123 };
124 };
125 };
126 };
127 };
128
129 &spi1 {
130 status = "okay";
131
132 spidev@0 {
133 #address-cells = <1>;
134 #size-cells = <1>;
135 compatible = "silabs,si3210";
136
137 reg = <0>;
138 spi-max-frequency = <1000000>;
139 };
140 };
141
142 &state_default {
143 gpio {
144 groups = "i2c", "jtag", "uartf";
145 function = "gpio";
146 };
147 };
148
149 &esw {
150 mediatek,portmap = <0x2f>;
151 };
152
153 &ethernet {
154 nvmem-cells = <&macaddr_config_e07e>;
155 nvmem-cell-names = "mac-address";
156 };
157
158 &wmac {
159 ralink,led-polarity = <1>;
160 nvmem-cells = <&eeprom_config_e08a>, <&macaddr_config_e07e>;
161 nvmem-cell-names = "eeprom", "mac-address";
162 };