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