ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt5350_poray_x5.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 = "poray,x5", "ralink,rt5350-soc";
9 model = "Poray X5";
10
11 aliases {
12 led-boot = &led_power;
13 led-failsafe = &led_power;
14 led-running = &led_power;
15 led-upgrade = &led_power;
16 };
17
18 leds {
19 compatible = "gpio-leds";
20
21 led_power: power {
22 function = LED_FUNCTION_POWER;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
25 };
26
27 20 {
28 label = "green:20";
29 gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
30 };
31
32 50 {
33 label = "green:50";
34 gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
35 };
36
37 80 {
38 label = "green:80";
39 gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
40 };
41 };
42
43 keys {
44 compatible = "gpio-keys-polled";
45 poll-interval = <20>;
46
47 bat {
48 label = "bat";
49 gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
50 linux,code = <KEY_WPS_BUTTON>;
51 };
52
53 reset {
54 label = "reset";
55 gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
56 linux,code = <KEY_RESTART>;
57 };
58
59 mode {
60 label = "mode";
61 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
62 linux,code = <BTN_0>;
63 linux,input-type = <EV_SW>;
64 };
65 };
66
67 gpio_export {
68 compatible = "gpio-export";
69 #size-cells = <0>;
70
71 usb-mode {
72 gpio-export,name = "usb-mode";
73 gpio-export,output = <0>;
74 gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
75 };
76 };
77 };
78
79 &spi0 {
80 status = "okay";
81
82 flash@0 {
83 compatible = "jedec,spi-nor";
84 reg = <0>;
85 spi-max-frequency = <10000000>;
86
87 partitions {
88 compatible = "fixed-partitions";
89 #address-cells = <1>;
90 #size-cells = <1>;
91
92 partition@0 {
93 label = "u-boot";
94 reg = <0x0 0x30000>;
95 read-only;
96 };
97
98 partition@30000 {
99 label = "u-boot-env";
100 reg = <0x30000 0x10000>;
101 read-only;
102 };
103
104 partition@40000 {
105 label = "factory";
106 reg = <0x40000 0x10000>;
107 read-only;
108
109 nvmem-layout {
110 compatible = "fixed-layout";
111 #address-cells = <1>;
112 #size-cells = <1>;
113
114 eeprom_factory_0: eeprom@0 {
115 reg = <0x0 0x200>;
116 };
117
118 macaddr_factory_4: macaddr@4 {
119 reg = <0x4 0x6>;
120 };
121 };
122 };
123
124 partition@50000 {
125 compatible = "denx,uimage";
126 label = "firmware";
127 reg = <0x50000 0x7b0000>;
128 };
129 };
130 };
131 };
132
133 &state_default {
134 gpio {
135 groups = "i2c", "jtag", "uartf";
136 function = "gpio";
137 };
138 };
139
140 &ethernet {
141 nvmem-cells = <&macaddr_factory_4>;
142 nvmem-cell-names = "mac-address";
143 };
144
145 &esw {
146 mediatek,portmap = <0x2f>;
147 mediatek,led_polarity = <1>;
148 };
149
150 &wmac {
151 ralink,led-polarity = <1>;
152 nvmem-cells = <&eeprom_factory_0>;
153 nvmem-cell-names = "eeprom";
154 };