ramips: convert rt2x00 EEPROM to NVMEM format
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_dlink_flash-16m-r1.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 &spi0 {
4 status = "okay";
5
6 flash@0 {
7 compatible = "jedec,spi-nor";
8 reg = <0>;
9 spi-max-frequency = <50000000>;
10
11 partitions {
12 compatible = "fixed-partitions";
13 #address-cells = <1>;
14 #size-cells = <1>;
15
16 partition@0 {
17 label = "u-boot";
18 reg = <0x0 0x30000>;
19 read-only;
20 };
21
22 partition@30000 {
23 label = "u-boot-env";
24 reg = <0x30000 0x10000>;
25 read-only;
26 };
27
28 factory: partition@40000 {
29 compatible = "nvmem-cells";
30 label = "factory";
31 reg = <0x40000 0x10000>;
32 #address-cells = <1>;
33 #size-cells = <1>;
34 read-only;
35
36 eeprom_factory_0: eeprom@0 {
37 reg = <0x0 0x4da8>;
38 };
39
40 eeprom_factory_8000: eeprom@8000 {
41 reg = <0x8000 0x4da8>;
42 };
43
44 macaddr_factory_4: macaddr@4 {
45 reg = <0x4 0x6>;
46 };
47
48 macaddr_factory_e000: macaddr@e000 {
49 reg = <0xe000 0x6>;
50 };
51
52 macaddr_factory_e006: macaddr@e006 {
53 reg = <0xe006 0x6>;
54 };
55 };
56
57 partition@50000 {
58 compatible = "denx,uimage";
59 label = "firmware";
60 reg = <0x50000 0xfb0000>;
61 };
62 };
63 };
64 };