ath79: qca: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / qca9558_comfast_cf-wr650ac-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9558_comfast_cf-wr650ac.dtsi"
4
5 / {
6 compatible = "comfast,cf-wr650ac-v1", "qca,qca9558";
7 model = "Comfast CF-WR650AC v1";
8 };
9
10 &spi {
11 status = "okay";
12
13 flash@0 {
14 compatible = "jedec,spi-nor";
15 reg = <0>;
16 spi-max-frequency = <25000000>;
17
18 partitions {
19 compatible = "fixed-partitions";
20 #address-cells = <1>;
21 #size-cells = <1>;
22
23 partition@0 {
24 label = "u-boot";
25 reg = <0x000000 0x020000>;
26 read-only;
27 };
28
29 art: partition@20000 {
30 label = "art";
31 reg = <0x020000 0x010000>;
32 read-only;
33
34 nvmem-layout {
35 compatible = "fixed-layout";
36 #address-cells = <1>;
37 #size-cells = <1>;
38
39 macaddr_art_0: macaddr@0 {
40 reg = <0x0 0x6>;
41 };
42
43 macaddr_art_6: macaddr@6 {
44 reg = <0x6 0x6>;
45 };
46
47 macaddr_art_18: macaddr@18 {
48 reg = <0x18 0x6>;
49 };
50 };
51 };
52
53 partition@30000 {
54 label = "firmware";
55 compatible = "denx,uimage";
56 reg = <0x030000 0xfc0000>;
57 };
58
59 partition@ff0000 {
60 label = "nvram";
61 reg = <0xff0000 0x010000>;
62 read-only;
63 };
64 };
65 };
66 };
67
68 &eth0 {
69 nvmem-cells = <&macaddr_art_0>;
70 nvmem-cell-names = "mac-address";
71 };
72
73 &eth1 {
74 nvmem-cells = <&macaddr_art_6>;
75 nvmem-cell-names = "mac-address";
76 };
77
78 &wmac {
79 mtd-cal-data = <&art 0x1000>;
80
81 nvmem-cells = <&macaddr_art_18>;
82 nvmem-cell-names = "mac-address";
83 };