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