ramips: clean up useless dts partition labels
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_thunder_timecloud.dts
1 #include "mt7621.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 = "thunder,timecloud", "mediatek,mt7621-soc";
9 model = "Thunder Timecloud";
10
11 aliases {
12 led-boot = &led_statuso;
13 led-failsafe = &led_statuso;
14 led-running = &led_statuso;
15 led-upgrade = &led_statuso;
16 };
17
18 chosen {
19 bootargs = "console=ttyS0,115200";
20 };
21
22 leds {
23 compatible = "gpio-leds";
24
25 statw {
26 function = LED_FUNCTION_STATUS;
27 color = <LED_COLOR_ID_WHITE>;
28 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
29 };
30
31 led_statuso: stato {
32 function = LED_FUNCTION_STATUS;
33 color = <LED_COLOR_ID_ORANGE>;
34 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 label = "reset";
43 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
44 linux,code = <KEY_RESTART>;
45 };
46
47 BTN_0 {
48 label = "BTN_0";
49 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
50 linux,code = <BTN_0>;
51 };
52 };
53 };
54
55 &sdhci {
56 status = "okay";
57 };
58
59 &spi0 {
60 status = "okay";
61
62 flash@0 {
63 compatible = "jedec,spi-nor";
64 reg = <0>;
65 spi-max-frequency = <10000000>;
66
67 partitions {
68 compatible = "fixed-partitions";
69 #address-cells = <1>;
70 #size-cells = <1>;
71
72 partition@0 {
73 label = "u-boot";
74 reg = <0x0 0x30000>;
75 read-only;
76 };
77
78 partition@30000 {
79 label = "u-boot-env";
80 reg = <0x30000 0x10000>;
81 read-only;
82 };
83
84 partition@40000 {
85 label = "factory";
86 reg = <0x40000 0x10000>;
87 read-only;
88
89 nvmem-layout {
90 compatible = "fixed-layout";
91 #address-cells = <1>;
92 #size-cells = <1>;
93
94 macaddr_factory_e000: macaddr@e000 {
95 reg = <0xe000 0x6>;
96 };
97 };
98 };
99
100 partition@50000 {
101 compatible = "denx,uimage";
102 label = "firmware";
103 reg = <0x50000 0xfb0000>;
104 };
105 };
106 };
107 };
108
109 &gmac0 {
110 nvmem-cells = <&macaddr_factory_e000>;
111 nvmem-cell-names = "mac-address";
112 };
113
114 &switch0 {
115 ports {
116 port@4 {
117 status = "okay";
118 label = "lan";
119 };
120 };
121 };
122
123 &state_default {
124 gpio {
125 groups = "i2c", "uart2", "jtag";
126 function = "gpio";
127 };
128 };