ath79: drop and consolidate redundant chosen/bootargs
[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 <dt-bindings/gpio/gpio.h>
4 #include <dt-bindings/input/input.h>
5
6 #include "ar9341.dtsi"
7
8 / {
9 aliases {
10 serial0 = &uart;
11 };
12 };
13
14 &ref {
15 clock-frequency = <25000000>;
16 };
17
18 &spi {
19 status = "okay";
20
21 num-cs = <1>;
22
23 flash@0 {
24 compatible = "jedec,spi-nor";
25 reg = <0>;
26 spi-max-frequency = <25000000>;
27
28 partitions {
29 compatible = "fixed-partitions";
30 #address-cells = <1>;
31 #size-cells = <1>;
32
33 uboot: partition@0 {
34 label = "u-boot";
35 reg = <0x000000 0x020000>;
36 read-only;
37 };
38
39 partition@20000 {
40 compatible = "tplink,firmware";
41 label = "firmware";
42 reg = <0x020000 0x3d0000>;
43 };
44
45 art: partition@3f0000 {
46 label = "art";
47 reg = <0x3f0000 0x010000>;
48 read-only;
49 };
50 };
51 };
52 };
53
54 &uart {
55 status = "okay";
56 };
57
58 &eth0 {
59 status = "okay";
60
61 phy-handle = <&swphy0>;
62
63 mtd-mac-address = <&uboot 0x1fc00>;
64
65 gmac-config {
66 device = <&gmac>;
67
68 switch-phy-swap = <1>;
69 };
70 };
71
72 &eth1 {
73 compatible = "syscon", "simple-mfd";
74 };
75
76 &wmac {
77 status = "okay";
78
79 mtd-cal-data = <&art 0x1000>;
80 mtd-mac-address = <&uboot 0x1fc00>;
81 };