realtek: make "u-boot-env" partition writable for Netgear 3xx series
[openwrt/openwrt.git] / target / linux / realtek / dts-5.10 / rtl8380_netgear_gigabit_3xx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later
2
3 #include "rtl8380_netgear_gigabit.dtsi"
4
5 &spi0 {
6 status = "okay";
7
8 flash@0 {
9 compatible = "jedec,spi-nor";
10 reg = <0>;
11 spi-max-frequency = <50000000>;
12
13 partitions {
14 compatible = "fixed-partitions";
15 #address-cells = <1>;
16 #size-cells = <1>;
17
18 partition@0 {
19 label = "u-boot";
20 reg = <0x0000000 0x00e0000>;
21 read-only;
22 };
23
24 partition@e0000 {
25 label = "u-boot-env";
26 reg = <0x00e0000 0x0010000>;
27 };
28
29 partition@f0000 {
30 label = "u-boot-env2";
31 reg = <0x00f0000 0x0010000>;
32 };
33
34 partition@100000 {
35 label = "jffs";
36 reg = <0x0100000 0x0100000>;
37 read-only;
38 };
39
40 partition@200000 {
41 label = "jffs2";
42 reg = <0x0200000 0x0100000>;
43 read-only;
44 };
45
46 partition@300000 {
47 label = "firmware";
48 compatible = "openwrt,uimage", "denx,uimage";
49 openwrt,ih-magic = <0x4e474335>;
50 reg = <0x0300000 0x0e80000>;
51 };
52
53 partition@1180000 {
54 label = "runtime2";
55 reg = <0x1180000 0x0e80000>;
56 read-only;
57 };
58 };
59 };
60 };