a1b019a7ad5283555bb55f53d2b1e842700b4b94
[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 &uart {
44 status = "okay";
45 };
46
47 &spi {
48 status = "okay";
49
50 flash@0 {
51 compatible = "jedec,spi-nor";
52 reg = <0>;
53 spi-max-frequency = <25000000>;
54
55 partitions {
56 compatible = "fixed-partitions";
57 #address-cells = <1>;
58 #size-cells = <1>;
59
60 partition@0 {
61 label = "u-boot";
62 reg = <0x000000 0x040000>;
63 read-only;
64 };
65
66 partition@40000 {
67 label = "u-boot-env";
68 reg = <0x040000 0x010000>;
69 read-only;
70 };
71
72 art: partition@50000 {
73 label = "art";
74 reg = <0x050000 0x010000>;
75 read-only;
76 };
77
78 partition@60000 {
79 label = "art_bak";
80 reg = <0x060000 0x010000>;
81 read-only;
82 };
83
84 partition@70000 {
85 compatible = "denx,uimage";
86 label = "firmware";
87 reg = <0x070000 0xf90000>;
88 };
89 };
90 };
91 };
92
93 &mdio0 {
94 status = "okay";
95
96 phy4: ethernet-phy@4 {
97 reg = <4>;
98 eee-broken-100tx;
99 eee-broken-1000t;
100 };
101 };
102
103 &eth0 {
104 status = "okay";
105
106 mtd-mac-address = <&art 0x00>;
107 phy-handle = <&phy4>;
108
109 gmac_config: gmac-config {
110 device = <&gmac>;
111
112 rgmii-enabled = <1>;
113 };
114 };
115
116 &wmac {
117 status = "okay";
118
119 mtd-cal-data = <&art 0x1000>;
120 mtd-mac-address = <&art 0x00>;
121 mtd-mac-address-increment = <(-2)>;
122 };