ath79: add support for Compex WPJ531 (16M)
[openwrt/staging/dedeckeh.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 <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15
16 #include "qca955x.dtsi"
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 &gpio {
48 status = "okay";
49 };
50
51 &spi {
52 status = "okay";
53
54 num-cs = <1>;
55
56 flash@0 {
57 compatible = "jedec,spi-nor";
58 reg = <0>;
59 spi-max-frequency = <25000000>;
60
61 partitions {
62 compatible = "fixed-partitions";
63 #address-cells = <1>;
64 #size-cells = <1>;
65
66 partition@0 {
67 label = "u-boot";
68 reg = <0x000000 0x040000>;
69 read-only;
70 };
71
72 partition@40000 {
73 label = "u-boot-env";
74 reg = <0x040000 0x010000>;
75 read-only;
76 };
77
78 art: partition@50000 {
79 label = "art";
80 reg = <0x050000 0x010000>;
81 read-only;
82 };
83
84 partition@60000 {
85 label = "art_bak";
86 reg = <0x060000 0x010000>;
87 read-only;
88 };
89
90 partition@70000 {
91 compatible = "denx,uimage";
92 label = "firmware";
93 reg = <0x070000 0xf90000>;
94 };
95 };
96 };
97 };
98
99 &mdio0 {
100 status = "okay";
101
102 phy4: ethernet-phy@4 {
103 reg = <4>;
104 eee-broken-100tx;
105 eee-broken-1000t;
106 };
107 };
108
109 &eth0 {
110 status = "okay";
111
112 mtd-mac-address = <&art 0x00>;
113 phy-handle = <&phy4>;
114 phy-mode = "rgmii-rxid";
115 pll-data = <0xae000000 0x80000101 0x80001313>;
116
117 gmac_config: gmac-config {
118 device = <&gmac>;
119
120 rxdv-delay = <3>;
121 rxd-delay = <3>;
122 txen-delay = <0>;
123 txd-delay = <0>;
124 rgmii-enabled = <1>;
125 };
126 };
127
128 &mdio1 {
129 phy1: ethernet-phy@1 {
130 reg = <1>;
131 at803x-override-sgmii-link-check;
132 };
133 };
134
135 &eth1 {
136 mtd-mac-address = <&art 0x00>;
137 mtd-mac-address-increment = <1>;
138
139 phy-handle = <&phy1>;
140 pll-data = <0x03000101 0x00000101 0x00001313>;
141
142 qca955x-sgmii-fixup;
143 };
144
145 &wmac {
146 status = "okay";
147
148 mtd-cal-data = <&art 0x1000>;
149 mtd-mac-address = <&art 0x00>;
150 mtd-mac-address-increment = <(-2)>;
151 };