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