ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.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 &gpio {
35 status = "okay";
36 };
37
38 &mdio0 {
39 status = "okay";
40
41 phy-mask = <0>;
42
43 phy0: ethernet-phy@0 {
44 reg = <0>;
45 phy-mode = "sgmii";
46
47 qca,ar8327-initvals = <
48 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
49 0x10 0x81000080 /* POWER_ON_STRIP */
50 0x50 0xcf37cf37 /* LED_CTRL0 */
51 0x54 0xcf37cf37 /* LED_CTRL1 */
52 0x58 0xcf37cf37 /* LED_CTRL2 */
53 0x5c 0x0000c300 /* LED_CTRL3 */
54 0x7c 0x0000007e /* PORT0_STATUS */
55 >;
56 };
57 };
58
59 &pcie {
60 status = "okay";
61
62 wifi@0,0 {
63 compatible = "pci168c,0056";
64 reg = <0x0000 0 0 0 0>;
65 };
66 };
67
68 &spi {
69 status = "okay";
70
71 num-cs = <1>;
72
73 flash@0 {
74 compatible = "jedec,spi-nor";
75 reg = <0>;
76 spi-max-frequency = <25000000>;
77
78 partitions {
79 compatible = "fixed-partitions";
80 #address-cells = <1>;
81 #size-cells = <1>;
82
83 partition@0 {
84 label = "u-boot";
85 reg = <0x000000 0x040000>;
86 read-only;
87 };
88
89 partition@40000 {
90 label = "u-boot-env";
91 reg = <0x040000 0x010000>;
92 };
93
94 partition@50000 {
95 compatible = "denx,uimage";
96 label = "firmware";
97 reg = <0x050000 0xfa0000>;
98 };
99
100 art: partition@ff0000 {
101 label = "art";
102 reg = <0xff0000 0x010000>;
103 read-only;
104 };
105 };
106 };
107 };
108
109 &uart {
110 status = "okay";
111 };
112
113 &wmac {
114 status = "okay";
115
116 mtd-cal-data = <&art 0x1000>;
117 };