fc15dd44163891be2b0f9d86a90646c5aea6662d
[oweals/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 <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15
16 #include "qca955x.dtsi"
17
18 / {
19         chosen {
20                 bootargs = "console=ttyS0,115200n8";
21         };
22
23         keys {
24                 compatible = "gpio-keys";
25
26                 reset {
27                         label = "Reset button";
28                         linux,code = <KEY_RESTART>;
29                         gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
30                         debounce-interval = <60>;
31                 };
32         };
33
34         watchdog {
35                 compatible = "linux,wdt-gpio";
36                 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
37                 hw_algo = "toggle";
38                 hw_margin_ms = <300>;
39                 always-running;
40         };
41 };
42
43 &pcie0 {
44         status = "okay";
45 };
46
47 &uart {
48         status = "okay";
49 };
50
51 &gpio {
52         status = "okay";
53 };
54
55 &spi {
56         status = "okay";
57
58         num-cs = <1>;
59
60         flash@0 {
61                 compatible = "jedec,spi-nor";
62                 reg = <0>;
63                 spi-max-frequency = <25000000>;
64
65                 partitions {
66                         compatible = "fixed-partitions";
67                         #address-cells = <1>;
68                         #size-cells = <1>;
69
70                         partition@0 {
71                                 label = "u-boot";
72                                 reg = <0x000000 0x040000>;
73                                 read-only;
74                         };
75
76                         partition@40000 {
77                                 label = "u-boot-env";
78                                 reg = <0x040000 0x010000>;
79                                 read-only;
80                         };
81
82                         art: partition@50000 {
83                                 label = "art";
84                                 reg = <0x050000 0x010000>;
85                                 read-only;
86                         };
87
88                         partition@60000 {
89                                 label = "art_bak";
90                                 reg = <0x060000 0x010000>;
91                                 read-only;
92                         };
93
94                         partition@70000 {
95                                 compatible = "denx,uimage";
96                                 label = "firmware";
97                                 reg = <0x070000 0xf90000>;
98                         };
99                 };
100         };
101 };
102
103 &mdio0 {
104         status = "okay";
105
106         phy4: ethernet-phy@4 {
107                 reg = <4>;
108                 eee-broken-100tx;
109                 eee-broken-1000t;
110         };
111 };
112
113 &eth0 {
114         status = "okay";
115
116         mtd-mac-address = <&art 0x00>;
117         phy-handle = <&phy4>;
118         phy-mode = "rgmii-rxid";
119         pll-data = <0xae000000 0x80000101 0x80001313>;
120
121         gmac_config: gmac-config {
122                 device = <&gmac>;
123
124                 rxdv-delay = <3>;
125                 rxd-delay = <3>;
126                 txen-delay = <0>;
127                 txd-delay = <0>;
128                 rgmii-enabled = <1>;
129         };
130 };
131
132 &mdio1 {
133         phy1: ethernet-phy@1 {
134                 reg = <1>;
135                 at803x-override-sgmii-link-check;
136         };
137 };
138
139 &eth1 {
140         mtd-mac-address = <&art 0x00>;
141         mtd-mac-address-increment = <1>;
142
143         phy-handle = <&phy1>;
144         pll-data = <0x03000101 0x00000101 0x00001313>;
145
146         qca955x-sgmii-fixup;
147 };
148
149 &wmac {
150         status = "okay";
151
152         mtd-cal-data = <&art 0x1000>;
153         mtd-mac-address = <&art 0x00>;
154         mtd-mac-address-increment = <(-2)>;
155 };