ath79: enable UART in SoC DTSI files
[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
60 partition@40000 {
61 compatible = "openwrt,elf";
62 label = "firmware";
63 reg = <0x040000 0xd80000>;
64 };
65
66 partition@dc0000 {
67 label = "config";
68 reg = <0xdc0000 0x030000>;
69 read-only;
70 };
71
72 /* df0000-f30000 undefined in vendor firmware */
73
74 partition@f30000 {
75 label = "log";
76 reg = <0xf30000 0x0c0000>;
77 read-only;
78 };
79
80 art: partition@ff0000 {
81 label = "art";
82 reg = <0xff0000 0x010000>;
83 read-only;
84 };
85 };
86 };
87 };
88
89 &pinmux {
90 mdio_pins: mdio_pins {
91 /* GPIO 10 as MDIO(0x20), GPIO 8 as MDC(0x21) */
92 pinctrl-single,bits = <0x8 0x00200021 0x00ff00ff>;
93 };
94 };
95
96 &mdio0 {
97 status = "okay";
98
99 pinctrl-names = "default";
100 pinctrl-0 = <&mdio_pins>;
101
102 phy-mask = <0x10>;
103
104 phy4: ethernet-phy@4 {
105 reg = <4>;
106 reset-gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
107 };
108 };
109
110 &eth0 {
111 status = "okay";
112
113 phy-handle = <&phy4>;
114 phy-mode = "sgmii";
115
116 mtd-mac-address = <&info 0x8>;
117
118 qca956x-serdes-fixup;
119
120 gmac-config {
121 device = <&gmac>;
122 };
123 };
124
125 &wmac {
126 status = "okay";
127
128 mtd-cal-data = <&art 0x1000>;
129 mtd-mac-address = <&info 0x8>;
130 };