ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt5350_zorlik_zl5900v2.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 = "zorlik,zl5900v2", "ralink,rt5350-soc";
9 model = "Zorlik ZL5900V2";
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 lan {
22 function = LED_FUNCTION_LAN;
23 color = <LED_COLOR_ID_GREEN>;
24 gpios = <&gpio0 14 GPIO_ACTIVE_HIGH>;
25 };
26
27 led_power: power {
28 function = LED_FUNCTION_POWER;
29 color = <LED_COLOR_ID_BLUE>;
30 gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>;
31 };
32 };
33
34 keys {
35 compatible = "gpio-keys-polled";
36 poll-interval = <20>;
37
38 reset {
39 label = "reset";
40 gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
41 linux,code = <KEY_RESTART>;
42 };
43 };
44 };
45
46 &spi0 {
47 status = "okay";
48
49 flash@0 {
50 compatible = "jedec,spi-nor";
51 reg = <0>;
52 spi-max-frequency = <10000000>;
53
54 partitions {
55 compatible = "fixed-partitions";
56 #address-cells = <1>;
57 #size-cells = <1>;
58
59 partition@0 {
60 label = "u-boot";
61 reg = <0x0 0x30000>;
62 read-only;
63 };
64
65 partition@30000 {
66 label = "u-boot-env";
67 reg = <0x30000 0x10000>;
68 read-only;
69 };
70
71 partition@40000 {
72 label = "factory";
73 reg = <0x40000 0x10000>;
74 read-only;
75
76 nvmem-layout {
77 compatible = "fixed-layout";
78 #address-cells = <1>;
79 #size-cells = <1>;
80
81 eeprom_factory_0: eeprom@0 {
82 reg = <0x0 0x200>;
83 };
84
85 macaddr_factory_4: macaddr@4 {
86 reg = <0x4 0x6>;
87 };
88 };
89 };
90
91 partition@50000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x50000 0x7b0000>;
95 };
96 };
97 };
98 };
99
100 &state_default {
101 gpio {
102 groups = "jtag", "uartf";
103 function = "gpio";
104 };
105 };
106
107 &ethernet {
108 nvmem-cells = <&macaddr_factory_4>;
109 nvmem-cell-names = "mac-address";
110 };
111
112 &esw {
113 mediatek,portdisable = <0x2f>;
114 };
115
116 &wmac {
117 nvmem-cells = <&eeprom_factory_0>;
118 nvmem-cell-names = "eeprom";
119 };