ath79: use "fixed-layout" for Embedded Wireless devices
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9331_glinet_6408.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9331_glinet_64xx.dtsi"
4
5 / {
6 model = "GL.iNet 6408";
7 compatible = "glinet,6408", "qca,ar9331";
8
9 aliases {
10 label-mac-device = &wmac;
11 };
12 };
13
14 &spi {
15 status = "okay";
16
17 flash@0 {
18 compatible = "jedec,spi-nor";
19 reg = <0>;
20 spi-max-frequency = <25000000>;
21
22 partitions {
23 compatible = "fixed-partitions";
24 #address-cells = <1>;
25 #size-cells = <1>;
26
27 uboot: partition@0 {
28 reg = <0x0 0x20000>;
29 label = "u-boot";
30 read-only;
31 };
32
33 partition@20000 {
34 compatible = "tplink,firmware";
35 reg = <0x20000 0x7d0000>;
36 label = "firmware";
37 };
38
39 art: partition@7f0000 {
40 reg = <0x7f0000 0x10000>;
41 label = "art";
42 read-only;
43 };
44 };
45 };
46 };
47
48 &eth0 {
49 nvmem-cells = <&macaddr_uboot_1fc00>;
50 nvmem-cell-names = "mac-address";
51 };
52
53 &eth1 {
54 nvmem-cells = <&macaddr_uboot_1fc00>;
55 nvmem-cell-names = "mac-address";
56 };
57
58 &wmac {
59 mtd-cal-data = <&art 0x1000>;
60
61 nvmem-cells = <&macaddr_uboot_1fc00>;
62 nvmem-cell-names = "mac-address";
63 };
64
65 &uboot {
66 compatible = "nvmem-cells";
67 #address-cells = <1>;
68 #size-cells = <1>;
69
70 macaddr_uboot_1fc00: macaddr@1fc00 {
71 reg = <0x1fc00 0x6>;
72 };
73 };