kernel: move mv88e6xxx fix to generic backports
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_tplink_eap2x5-1port.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 aliases {
10 label-mac-device = &eth0;
11 };
12
13 keys {
14 compatible = "gpio-keys";
15
16 reset {
17 label = "Reset button";
18 linux,code = <KEY_RESTART>;
19 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
20 debounce-interval = <60>;
21 };
22 };
23 };
24
25 &pcie {
26 status = "okay";
27 };
28
29 &spi {
30 status = "okay";
31
32 flash@0 {
33 compatible = "jedec,spi-nor";
34 reg = <0>;
35 spi-max-frequency = <25000000>;
36
37 partitions {
38 compatible = "fixed-partitions";
39 #address-cells = <1>;
40 #size-cells = <1>;
41
42 partition@0 {
43 label = "u-boot";
44 reg = <0x000000 0x020000>;
45 read-only;
46 };
47
48 partition@20000 {
49 label = "partition-table";
50 reg = <0x020000 0x010000>;
51 read-only;
52 };
53
54 info: partition@30000 {
55 label = "info";
56 reg = <0x030000 0x010000>;
57 read-only;
58
59 nvmem-layout {
60 compatible = "fixed-layout";
61 #address-cells = <1>;
62 #size-cells = <1>;
63
64 macaddr_info_8: macaddr@8 {
65 compatible = "mac-base";
66 reg = <0x8 0x6>;
67 #nvmem-cell-cells = <1>;
68 };
69 };
70 };
71
72 partition@40000 {
73 compatible = "openwrt,elf";
74 label = "firmware";
75 reg = <0x040000 0xd80000>;
76 };
77
78 partition@dc0000 {
79 label = "config";
80 reg = <0xdc0000 0x030000>;
81 read-only;
82 };
83
84 /* df0000-f30000 undefined in vendor firmware */
85
86 partition@f30000 {
87 label = "log";
88 reg = <0xf30000 0x0c0000>;
89 read-only;
90 };
91
92 art: partition@ff0000 {
93 label = "art";
94 reg = <0xff0000 0x010000>;
95 read-only;
96
97 nvmem-layout {
98 compatible = "fixed-layout";
99 #address-cells = <1>;
100 #size-cells = <1>;
101
102 calibration_ath9k: calibration@1000 {
103 reg = <0x1000 0x440>;
104 };
105 };
106 };
107 };
108 };
109 };
110
111 &pinmux {
112 mdio_pins: mdio_pins {
113 /* GPIO 10 as MDIO(0x20), GPIO 8 as MDC(0x21) */
114 pinctrl-single,bits = <0x8 0x00200021 0x00ff00ff>;
115 };
116 };
117
118 &mdio0 {
119 status = "okay";
120
121 pinctrl-names = "default";
122 pinctrl-0 = <&mdio_pins>;
123 };
124
125 &eth0 {
126 status = "okay";
127
128 pll-data = <0x03000000 0x00000101 0x00001313>;
129
130 nvmem-cells = <&macaddr_info_8 0>;
131 nvmem-cell-names = "mac-address";
132
133 qca956x-serdes-fixup;
134
135 gmac-config {
136 device = <&gmac>;
137 };
138 };
139
140 &wmac {
141 status = "okay";
142
143 nvmem-cells = <&macaddr_info_8 0>, <&calibration_ath9k>;
144 nvmem-cell-names = "mac-address", "calibration";
145 };