ramips: rtxxxx: convert to nvmem-layout
[openwrt/staging/jow.git] / target / linux / ramips / dts / rt3050_alphanetworks_asl26555-16m.dts
1 #include "rt3050_alphanetworks_asl26555.dtsi"
2
3 / {
4 compatible = "alphanetworks,asl26555-16m", "alphanetworks,asl26555", "ralink,rt3050-soc";
5 model = "Alpha ASL26555 (16M)";
6 };
7
8 &spi0 {
9 status = "okay";
10
11 flash@0 {
12 compatible = "jedec,spi-nor";
13 reg = <0>;
14 spi-max-frequency = <10000000>;
15
16 partitions {
17 compatible = "fixed-partitions";
18 #address-cells = <1>;
19 #size-cells = <1>;
20
21 partition@0 {
22 label = "uboot";
23 reg = <0x0 0x30000>;
24 read-only;
25 };
26
27 partition@30000 {
28 label = "uboot-env";
29 reg = <0x30000 0x10000>;
30 read-only;
31 };
32
33 partition@40000 {
34 label = "factory";
35 reg = <0x40000 0x10000>;
36 read-only;
37 };
38
39 partition@50000 {
40 compatible = "denx,uimage";
41 label = "firmware";
42 reg = <0x50000 0xf80000>;
43 };
44
45 partition@fd0000 {
46 label = "cert";
47 reg = <0xfd0000 0x10000>;
48 read-only;
49 };
50
51 partition@fe0000 {
52 label = "langpack";
53 reg = <0xfe0000 0x10000>;
54 read-only;
55 };
56
57 devdata: partition@ff0000 {
58 label = "devdata";
59 reg = <0xff0000 0x10000>;
60 read-only;
61
62 nvmem-layout {
63 compatible = "fixed-layout";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 eeprom_devdata_4000: eeprom@4000 {
68 reg = <0x4000 0x200>;
69 };
70
71 macaddr_devdata_4004: macaddr@4004 {
72 reg = <0x4004 0x6>;
73 };
74 };
75 };
76 };
77 };
78 };
79
80 &ethernet {
81 nvmem-cells = <&macaddr_devdata_4004>;
82 nvmem-cell-names = "mac-address";
83 };