367f826b9d61e839bca13501ff4fda0ed5b8d88c
[oweals/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_archer-x6-v2.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 "qca956x.dtsi"
7
8 / {
9         aliases {
10                 label-mac-device = &eth0;
11         };
12
13         chosen {
14                 bootargs = "console=ttyS0,115200n8";
15         };
16 };
17
18 &pcie {
19         status = "okay";
20 };
21
22 &uart {
23         status = "okay";
24 };
25
26 &gpio {
27         status = "okay";
28 };
29
30 &mdio0 {
31         status = "okay";
32
33         phy-mask = <0>;
34
35         phy0: ethernet-phy@0 {
36                 reg = <0>;
37                 phy-mode = "sgmii";
38                 qca,mib-poll-interval = <500>;
39
40                 qca,ar8327-initvals = <
41                         0x04 0x00080080 /* PORT0 PAD MODE CTRL */
42                         0x7c 0x0000007e /* PORT0_STATUS */
43                         >;
44         };
45 };
46
47 &eth0 {
48         status = "okay";
49
50         phy-mode = "sgmii";
51         phy-handle = <&phy0>;
52
53         mtd-mac-address = <&mac 0x8>;
54 };
55
56 &wmac {
57         status = "okay";
58
59         mtd-cal-data = <&art 0x1000>;
60         mtd-mac-address = <&mac 0x8>;
61 };