ath79: fix MAC address setup for TP-Link TL-WDR3600/TL-WDR4300
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_yuncore_xd4200.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2 /dts-v1/;
3
4 #include <dt-bindings/gpio/gpio.h>
5 #include <dt-bindings/input/input.h>
6
7 #include "qca956x.dtsi"
8
9 / {
10 chosen {
11 bootargs = "console=ttyS0,115200n8";
12 };
13
14 keys {
15 compatible = "gpio-keys";
16
17 reset {
18 linux,code = <KEY_RESTART>;
19 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
20 debounce-interval = <60>;
21 };
22 };
23 };
24
25 &eth0 {
26 status = "okay";
27
28 pll-data = <0x03000101 0x00000101 0x00001919>;
29
30 mtd-mac-address = <&art 0x0>;
31 phy-mode = "sgmii";
32 phy-handle = <&phy0>;
33 };
34
35 &gpio {
36 status = "okay";
37 };
38
39 &mdio0 {
40 status = "okay";
41
42 phy-mask = <0>;
43
44 phy0: ethernet-phy@0 {
45 reg = <0>;
46 phy-mode = "sgmii";
47
48 qca,ar8327-initvals = <
49 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
50 0x10 0x81000080 /* POWER_ON_STRIP */
51 0x50 0xcf37cf37 /* LED_CTRL0 */
52 0x54 0xcf37cf37 /* LED_CTRL1 */
53 0x58 0xcf37cf37 /* LED_CTRL2 */
54 0x5c 0x0000c300 /* LED_CTRL3 */
55 0x7c 0x0000007e /* PORT0_STATUS */
56 >;
57 };
58 };
59
60 &pcie {
61 status = "okay";
62
63 wifi@0,0 {
64 compatible = "pci168c,0056";
65 reg = <0x0000 0 0 0 0>;
66 };
67 };
68
69 &spi {
70 status = "okay";
71
72 num-cs = <1>;
73
74 flash@0 {
75 compatible = "jedec,spi-nor";
76 reg = <0>;
77 spi-max-frequency = <25000000>;
78
79 partitions {
80 compatible = "fixed-partitions";
81 #address-cells = <1>;
82 #size-cells = <1>;
83
84 partition@0 {
85 label = "u-boot";
86 reg = <0x000000 0x040000>;
87 read-only;
88 };
89
90 partition@40000 {
91 label = "u-boot-env";
92 reg = <0x040000 0x010000>;
93 };
94
95 partition@50000 {
96 compatible = "denx,uimage";
97 label = "firmware";
98 reg = <0x050000 0xfa0000>;
99 };
100
101 art: partition@ff0000 {
102 label = "art";
103 reg = <0xff0000 0x010000>;
104 read-only;
105 };
106 };
107 };
108 };
109
110 &uart {
111 status = "okay";
112 };
113
114 &wmac {
115 status = "okay";
116
117 mtd-cal-data = <&art 0x1000>;
118 };