treewide: use more descriptive names for concatenated partitions
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_hiwifi_hc5962.dts
1 #include "mt7621.dtsi"
2
3 #include <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 / {
7 compatible = "hiwifi,hc5962", "mediatek,mt7621-soc";
8 model = "HiWiFi HC5962";
9
10 aliases {
11 led-boot = &led_system;
12 led-failsafe = &led_system;
13 led-running = &led_status;
14 led-upgrade = &led_status;
15 };
16
17 chosen {
18 bootargs = "console=ttyS0,115200";
19 };
20
21 leds {
22 compatible = "gpio-leds";
23
24 led_status: status {
25 label = "white:status";
26 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
27 };
28
29 led_system: system {
30 label = "red:system";
31 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
32 panic-indicator;
33 };
34 };
35
36 keys {
37 compatible = "gpio-keys";
38
39 reset {
40 label = "reset";
41 gpios = <&gpio 18 GPIO_ACTIVE_HIGH>;
42 linux,code = <KEY_RESTART>;
43 };
44 };
45
46 ubi-concat {
47 compatible = "mtd-concat";
48 devices = <&ubiconcat0 &ubiconcat1>;
49
50 partitions {
51 compatible = "fixed-partitions";
52 #address-cells = <1>;
53 #size-cells = <1>;
54
55 partition@0 {
56 label = "ubi";
57 reg = <0x0 0x79c0000>;
58 };
59 };
60 };
61 };
62
63 &nand {
64 status = "okay";
65
66 partitions {
67 compatible = "fixed-partitions";
68 #address-cells = <1>;
69 #size-cells = <1>;
70
71 partition@0 {
72 label = "u-boot";
73 reg = <0x0 0x80000>;
74 read-only;
75 };
76
77 partition@80000 {
78 label = "debug";
79 reg = <0x80000 0x80000>;
80 read-only;
81 };
82
83 factory: partition@100000 {
84 label = "factory";
85 reg = <0x100000 0x40000>;
86 read-only;
87 };
88
89 partition@140000 {
90 label = "kernel";
91 reg = <0x140000 0x400000>;
92 };
93
94 ubiconcat0: partition@540000 {
95 label = "ubiconcat0";
96 reg = <0x540000 0x1c80000>;
97 };
98
99 partition@21c0000 {
100 label = "bdinfo";
101 reg = <0x21c0000 0x80000>;
102 read-only;
103 };
104
105 ubiconcat1: partition@2240000 {
106 label = "ubiconcat1";
107 reg = <0x2240000 0x5d40000>;
108 };
109 };
110 };
111
112 &pcie {
113 status = "okay";
114 };
115
116 &pcie0 {
117 mt76@0,0 {
118 reg = <0x0000 0 0 0 0>;
119 mediatek,mtd-eeprom = <&factory 0x0000>;
120 ieee80211-freq-limit = <2400000 2500000>;
121 };
122 };
123
124 &pcie1 {
125 mt76@0,0 {
126 reg = <0x0000 0 0 0 0>;
127 mediatek,mtd-eeprom = <&factory 0x8000>;
128 ieee80211-freq-limit = <5000000 6000000>;
129 };
130 };
131
132 &switch0 {
133 ports {
134 port@1 {
135 status = "okay";
136 label = "lan1";
137 };
138
139 port@2 {
140 status = "okay";
141 label = "lan2";
142 };
143
144 port@3 {
145 status = "okay";
146 label = "lan3";
147 };
148
149 port@4 {
150 status = "okay";
151 label = "wan";
152 };
153 };
154 };
155
156 &state_default {
157 gpio {
158 groups = "uart3", "jtag";
159 function = "gpio";
160 };
161 };