ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / rt5350_trendnet_tew-714tru.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 = "trendnet,tew-714tru", "ralink,rt5350-soc";
9 model = "TRENDnet TEW714TRU";
10
11 leds {
12 compatible = "gpio-leds";
13
14 usb {
15 function = LED_FUNCTION_USB;
16 color = <LED_COLOR_ID_RED>;
17 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
18 trigger-sources = <&ohci_port1>, <&ehci_port1>;
19 linux,default-trigger = "usbport";
20 };
21
22 wifi {
23 label = "green:wifi";
24 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
25 };
26 };
27
28 keys {
29 compatible = "gpio-keys-polled";
30 poll-interval = <20>;
31
32 reset {
33 label = "reset";
34 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
35 linux,code = <KEY_RESTART>;
36 };
37
38 wps {
39 label = "wps";
40 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_WPS_BUTTON>;
42 };
43 };
44
45 gpio_export {
46 compatible = "gpio-export";
47 #size-cells = <0>;
48
49 repeater {
50 gpio-export,name = "repeater_switch";
51 gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
52 };
53
54 wisp {
55 gpio-export,name = "wisp_switch";
56 gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
57 };
58 };
59 };
60
61 &spi0 {
62 status = "okay";
63
64 flash@0 {
65 compatible = "jedec,spi-nor";
66 reg = <0>;
67 spi-max-frequency = <10000000>;
68
69 partitions {
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "u-boot";
76 reg = <0x0 0x30000>;
77 read-only;
78 };
79
80 partition@30000 {
81 label = "u-boot-env";
82 reg = <0x30000 0x10000>;
83 read-only;
84 };
85
86 partition@40000 {
87 label = "factory";
88 reg = <0x40000 0x10000>;
89 read-only;
90
91 nvmem-layout {
92 compatible = "fixed-layout";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 eeprom_factory_0: eeprom@0 {
97 reg = <0x0 0x200>;
98 };
99
100 macaddr_factory_4: macaddr@4 {
101 reg = <0x4 0x6>;
102 };
103 };
104 };
105
106 partition@50000 {
107 compatible = "denx,uimage";
108 label = "firmware";
109 reg = <0x50000 0x7b0000>;
110 };
111 };
112 };
113 };
114
115 &state_default {
116 gpio {
117 groups = "i2c", "jtag", "uartf";
118 function = "gpio";
119 };
120 };
121
122 &ethernet {
123 nvmem-cells = <&macaddr_factory_4>;
124 nvmem-cell-names = "mac-address";
125 };
126
127 &esw {
128 mediatek,portmap = <0x1>;
129 mediatek,portdisable = <0x3e>;
130 };
131
132 &wmac {
133 nvmem-cells = <&eeprom_factory_0>;
134 nvmem-cell-names = "eeprom";
135 };