ath79: provide label MAC address
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar9344_tplink_cpexxx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "ar9344.dtsi"
8
9 / {
10 aliases {
11 label-mac-device = &wmac;
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 linux,code = <KEY_RESTART>;
19 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
20 debounce-interval = <60>;
21 };
22 };
23 };
24
25 &ref {
26 clock-frequency = <40000000>;
27 };
28
29 &uart {
30 status = "okay";
31 };
32
33 &spi {
34 num-cs = <1>;
35
36 status = "okay";
37
38 flash@0 {
39 compatible = "jedec,spi-nor";
40 reg = <0>;
41 spi-max-frequency = <25000000>;
42
43 partitions {
44 compatible = "fixed-partitions";
45 #address-cells = <1>;
46 #size-cells = <1>;
47
48 uboot: partition@0 {
49 label = "u-boot";
50 reg = <0x000000 0x020000>;
51 read-only;
52 };
53
54 partition@20000 {
55 label = "partition-table";
56 reg = <0x020000 0x010000>;
57 read-only;
58 };
59
60 info: partition@30000 {
61 label = "info";
62 reg = <0x030000 0x010000>;
63 read-only;
64 };
65
66 partition@40000 {
67 label = "firmware";
68 reg = <0x040000 0x780000>;
69
70 compatible = "fixed-partitions";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 partition@0 {
75 label = "kernel";
76 reg = <0x000000 0x200000>;
77 };
78
79 partition@200000 {
80 label = "rootfs";
81 reg = <0x200000 0x580000>;
82 };
83 };
84
85 partition@7c0000 {
86 label = "config";
87 reg = <0x7c0000 0x030000>;
88 read-only;
89 };
90
91 art: partition@7f0000 {
92 label = "art";
93 reg = <0x7f0000 0x010000>;
94 read-only;
95 };
96 };
97 };
98 };
99
100 &wmac {
101 status = "okay";
102
103 mtd-cal-data = <&art 0x1000>;
104 mtd-mac-address = <&info 0x08>;
105 };