ramips: clean up useless dts partition labels
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_hnet_c108.dts
1 // SPDX-License-Identifier: BSD-3-Clause
2 /*
3 * Copyright(c) 2017 Kristian Evensen <kristian.evensen@gmail.com>.
4 * All rights reserved.
5 */
6
7 #include "mt7620a.dtsi"
8
9 #include <dt-bindings/gpio/gpio.h>
10 #include <dt-bindings/input/input.h>
11 #include <dt-bindings/leds/common.h>
12
13 / {
14 compatible = "hnet,c108", "ralink,mt7620a-soc";
15 model = "HNET C108";
16
17 aliases {
18 led-boot = &led_lan_green;
19 led-failsafe = &led_lan_green;
20 led-running = &led_lan_green;
21 led-upgrade = &led_lan_green;
22 };
23
24 chosen {
25 bootargs = "console=ttyS0,115200";
26 };
27
28 gpio-export {
29 compatible = "gpio-export";
30 #size-cells = <0>;
31
32 power_modem {
33 gpio-export,name = "power_modem";
34 gpio-export,output = <1>;
35 gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
36 };
37 };
38
39 leds {
40 compatible = "gpio-leds";
41
42 sdcard {
43 label = "green:sdcard";
44 gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
45 };
46
47 modem_green {
48 label = "green:modem";
49 gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
50 };
51
52 modem_red {
53 label = "red:modem";
54 gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
55 };
56
57 lan_red {
58 function = LED_FUNCTION_LAN;
59 color = <LED_COLOR_ID_RED>;
60 gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
61 };
62
63 led_lan_green: lan_green {
64 function = LED_FUNCTION_LAN;
65 color = <LED_COLOR_ID_GREEN>;
66 gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
67 };
68 };
69
70 keys {
71 compatible = "gpio-keys";
72
73 reset {
74 label = "reset";
75 gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
76 linux,code = <KEY_RESTART>;
77 };
78 };
79 };
80
81 &gpio1 {
82 status = "okay";
83 };
84
85 &gpio2 {
86 status = "okay";
87 };
88
89 &spi0 {
90 status = "okay";
91
92 flash@0 {
93 compatible = "jedec,spi-nor";
94 reg = <0>;
95 spi-max-frequency = <10000000>;
96
97 partitions {
98 compatible = "fixed-partitions";
99 #address-cells = <1>;
100 #size-cells = <1>;
101
102 partition@0 {
103 label = "u-boot";
104 reg = <0x0 0x30000>;
105 read-only;
106 };
107
108 partition@30000 {
109 label = "u-boot-env";
110 reg = <0x30000 0x10000>;
111 read-only;
112 };
113
114 partition@40000 {
115 label = "factory";
116 reg = <0x40000 0x10000>;
117 read-only;
118
119 nvmem-layout {
120 compatible = "fixed-layout";
121 #address-cells = <1>;
122 #size-cells = <1>;
123
124 eeprom_factory_0: eeprom@0 {
125 reg = <0x0 0x200>;
126 };
127
128 macaddr_factory_28: macaddr@28 {
129 reg = <0x28 0x6>;
130 };
131 };
132 };
133
134 partition@50000 {
135 compatible = "denx,uimage";
136 label = "firmware";
137 reg = <0x50000 0xfb0000>;
138 };
139 };
140 };
141 };
142
143 &sdhci {
144 status = "okay";
145 };
146
147 &ehci {
148 status = "okay";
149 };
150
151 &ohci {
152 status = "okay";
153 };
154
155 &ethernet {
156 nvmem-cells = <&macaddr_factory_28>;
157 nvmem-cell-names = "mac-address";
158 };
159
160 &wmac {
161 nvmem-cells = <&eeprom_factory_0>;
162 nvmem-cell-names = "eeprom";
163 };
164
165 &state_default {
166 default {
167 groups = "i2c", "uartf", "spi refclk", "ephy";
168 function = "gpio";
169 };
170 };
171
172 &pcie {
173 status = "okay";
174 };