ath79: enable UART in SoC DTSI files
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9558_devolo_dvl1xxx.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /*
4 * The hardware of this board family is most likely shared with other devices
5 * from other manufacturers.
6 * Devolo seems to use hardware from Edimax, namely the Edimax WAP1750.
7 *
8 * The base board is identical but the single models differ in number of
9 * buttons, ethernet ports, external console, USB, external / internal
10 * antennas and number of spatial streams.
11 */
12
13 #include "qca955x.dtsi"
14
15 #include <dt-bindings/gpio/gpio.h>
16 #include <dt-bindings/input/input.h>
17
18 / {
19 keys {
20 compatible = "gpio-keys";
21
22 reset {
23 label = "Reset button";
24 linux,code = <KEY_RESTART>;
25 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 };
28 };
29
30 watchdog {
31 compatible = "linux,wdt-gpio";
32 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
33 hw_algo = "toggle";
34 hw_margin_ms = <300>;
35 always-running;
36 };
37 };
38
39 &pcie0 {
40 status = "okay";
41 };
42
43 &spi {
44 status = "okay";
45
46 flash@0 {
47 compatible = "jedec,spi-nor";
48 reg = <0>;
49 spi-max-frequency = <25000000>;
50
51 partitions {
52 compatible = "fixed-partitions";
53 #address-cells = <1>;
54 #size-cells = <1>;
55
56 partition@0 {
57 label = "u-boot";
58 reg = <0x000000 0x040000>;
59 read-only;
60 };
61
62 partition@40000 {
63 label = "u-boot-env";
64 reg = <0x040000 0x010000>;
65 read-only;
66 };
67
68 art: partition@50000 {
69 label = "art";
70 reg = <0x050000 0x010000>;
71 read-only;
72 };
73
74 partition@60000 {
75 label = "art_bak";
76 reg = <0x060000 0x010000>;
77 read-only;
78 };
79
80 partition@70000 {
81 compatible = "denx,uimage";
82 label = "firmware";
83 reg = <0x070000 0xf90000>;
84 };
85 };
86 };
87 };
88
89 &mdio0 {
90 status = "okay";
91
92 phy4: ethernet-phy@4 {
93 reg = <4>;
94 eee-broken-100tx;
95 eee-broken-1000t;
96 };
97 };
98
99 &eth0 {
100 status = "okay";
101
102 mtd-mac-address = <&art 0x00>;
103 phy-handle = <&phy4>;
104
105 gmac_config: gmac-config {
106 device = <&gmac>;
107
108 rgmii-enabled = <1>;
109 };
110 };
111
112 &wmac {
113 status = "okay";
114
115 mtd-cal-data = <&art 0x1000>;
116 mtd-mac-address = <&art 0x00>;
117 mtd-mac-address-increment = <(-2)>;
118 };