ath79: convert to new LED color/function format where possible
[openwrt/openwrt.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 nvmem-layout {
37 compatible = "fixed-layout";
38 #address-cells = <1>;
39 #size-cells = <1>;
40
41 macaddr_uboot_1fc00: macaddr@1fc00 {
42 reg = <0x1fc00 0x6>;
43 };
44 };
45 };
46
47 partition@20000 {
48 compatible = "tplink,firmware";
49 label = "firmware";
50 reg = <0x020000 0x3d0000>;
51 };
52
53 art: partition@3f0000 {
54 label = "art";
55 reg = <0x3f0000 0x010000>;
56 read-only;
57 };
58 };
59 };
60 };
61
62 &eth0 {
63 status = "okay";
64
65 phy-handle = <&swphy0>;
66
67 nvmem-cells = <&macaddr_uboot_1fc00>;
68 nvmem-cell-names = "mac-address";
69
70 gmac-config {
71 device = <&gmac>;
72
73 switch-phy-swap = <1>;
74 };
75 };
76
77 &eth1 {
78 compatible = "syscon", "simple-mfd";
79 };
80
81 &wmac {
82 status = "okay";
83
84 mtd-cal-data = <&art 0x1000>;
85 nvmem-cells = <&macaddr_uboot_1fc00>;
86 nvmem-cell-names = "mac-address";
87 };