ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt5350_hootoo_ht-tm02.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 = "hootoo,ht-tm02", "ralink,rt5350-soc";
9 model = "HooToo HT-TM02";
10
11 aliases {
12 led-boot = &led_wlan;
13 led-failsafe = &led_wlan;
14 led-running = &led_wlan;
15 led-upgrade = &led_wlan;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_wlan: wlan {
22 function = LED_FUNCTION_WLAN;
23 color = <LED_COLOR_ID_BLUE>;
24 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
25 };
26
27 lan {
28 function = LED_FUNCTION_LAN;
29 color = <LED_COLOR_ID_GREEN>;
30 gpios = <&gpio0 12 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 modeswitch {
45 label = "modeswitch";
46 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
47 linux,code = <BTN_0>;
48 linux,input-type = <EV_SW>;
49 };
50 };
51 };
52
53 &spi0 {
54 status = "okay";
55
56 flash@0 {
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <10000000>;
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x0 0x30000>;
69 read-only;
70 };
71
72 partition@30000 {
73 label = "u-boot-env";
74 reg = <0x30000 0x10000>;
75 read-only;
76 };
77
78 partition@40000 {
79 label = "factory";
80 reg = <0x40000 0x10000>;
81 read-only;
82
83 nvmem-layout {
84 compatible = "fixed-layout";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 eeprom_factory_0: eeprom@0 {
89 reg = <0x0 0x200>;
90 };
91
92 macaddr_factory_28: macaddr@28 {
93 reg = <0x28 0x6>;
94 };
95 };
96 };
97
98 partition@50000 {
99 compatible = "denx,uimage";
100 label = "firmware";
101 reg = <0x50000 0x7b0000>;
102 };
103 };
104 };
105 };
106
107 &state_default {
108 gpio {
109 groups = "i2c", "jtag", "uartf";
110 function = "gpio";
111 };
112 };
113
114 &ethernet {
115 nvmem-cells = <&macaddr_factory_28>;
116 nvmem-cell-names = "mac-address";
117 };
118
119 &esw {
120 mediatek,portmap = <0x10>;
121 mediatek,portdisable = <0x2f>;
122 };
123
124 &wmac {
125 nvmem-cells = <&eeprom_factory_0>;
126 nvmem-cell-names = "eeprom";
127 };