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