5d5b88c5f3b99eb620444363950a796dc58ea1d6
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9341_tplink_tl-wa.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &wmac;
11 };
12 };
13
14 &ref {
15 clock-frequency = <25000000>;
16 };
17
18 &spi {
19 status = "okay";
20
21 flash@0 {
22 compatible = "jedec,spi-nor";
23 reg = <0>;
24 spi-max-frequency = <25000000>;
25
26 partitions {
27 compatible = "fixed-partitions";
28 #address-cells = <1>;
29 #size-cells = <1>;
30
31 uboot: partition@0 {
32 label = "u-boot";
33 reg = <0x000000 0x020000>;
34 read-only;
35 };
36
37 partition@20000 {
38 compatible = "tplink,firmware";
39 label = "firmware";
40 reg = <0x020000 0x3d0000>;
41 };
42
43 art: partition@3f0000 {
44 label = "art";
45 reg = <0x3f0000 0x010000>;
46 read-only;
47 };
48 };
49 };
50 };
51
52 &eth0 {
53 status = "okay";
54
55 phy-handle = <&swphy0>;
56
57 nvmem-cells = <&macaddr_uboot_1fc00>;
58 nvmem-cell-names = "mac-address";
59
60 gmac-config {
61 device = <&gmac>;
62
63 switch-phy-swap = <1>;
64 };
65 };
66
67 &eth1 {
68 compatible = "syscon", "simple-mfd";
69 };
70
71 &wmac {
72 status = "okay";
73
74 mtd-cal-data = <&art 0x1000>;
75 nvmem-cells = <&macaddr_uboot_1fc00>;
76 nvmem-cell-names = "mac-address";
77 };
78
79 &uboot {
80 compatible = "nvmem-cells";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 macaddr_uboot_1fc00: macaddr@1fc00 {
85 reg = <0x1fc00 0x6>;
86 };
87 };