treewide: use more descriptive names for concatenated partitions
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620n_sunvalley_filehub.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "mt7620n.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &ethernet;
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "reset";
18 gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
19 linux,code = <KEY_RESTART>;
20 };
21 };
22
23 virtual_flash {
24 compatible = "mtd-concat";
25
26 devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
27
28 partitions {
29 compatible = "fixed-partitions";
30 #address-cells = <1>;
31 #size-cells = <1>;
32
33 partition@0 {
34 compatible = "openwrt,okli";
35 label = "firmware";
36 reg = <0x0 0x0>;
37 };
38 };
39 };
40 };
41
42 &gpio2 {
43 status = "okay";
44 };
45
46 &gpio3 {
47 status = "okay";
48 };
49
50 &i2c {
51 status = "okay";
52 };
53
54 &spi0 {
55 status = "okay";
56
57 flash@0 {
58 compatible = "jedec,spi-nor";
59 reg = <0>;
60 spi-max-frequency = <50000000>;
61 m25p,fast-read;
62
63 partitions {
64 compatible = "fixed-partitions";
65 #address-cells = <1>;
66 #size-cells = <1>;
67
68 partition@0 {
69 label = "u-boot";
70 reg = <0x0 0x30000>;
71 read-only;
72 };
73
74 partition@30000 {
75 label = "config";
76 reg = <0x30000 0x10000>;
77 read-only;
78 };
79
80 factory: partition@40000 {
81 label = "factory";
82 reg = <0x40000 0x10000>;
83 read-only;
84 };
85
86 partition@50000 {
87 label = "loader";
88 reg = <0x50000 0x10000>;
89 read-only;
90 };
91
92 fwconcat1: partition@60000 {
93 label = "fwconcat1";
94 reg = <0x60000 0x170000>;
95 };
96
97 partition@1d0000 {
98 label = "u-boot-env";
99 reg = <0x1d0000 0x10000>;
100 };
101
102 fwconcat2: partition@1e0000 {
103 label = "fwconcat2";
104 reg = <0x1e0000 0x20000>;
105 };
106
107 fwconcat0: partition@200000 {
108 label = "fwconcat0";
109 reg = <0x200000 0x600000>;
110 };
111 };
112 };
113 };
114
115 &ehci {
116 status = "okay";
117 };
118
119 &ohci {
120 status = "okay";
121 };
122
123 &ethernet {
124 mtd-mac-address = <&factory 0x28>;
125 };
126
127 &wmac {
128 ralink,mtd-eeprom = <&factory 0x0>;
129 };
130
131 &state_default {
132 gpio {
133 groups = "wled", "ephy";
134 function = "gpio";
135 };
136 };