treewide: remove dts-v1 identifier from 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 <dt-bindings/gpio/gpio.h>
14 #include <dt-bindings/input/input.h>
15
16 #include "qca9557.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 at803x-disable-smarteee;
109 };
110 };
111
112 &eth0 {
113 status = "okay";
114
115 mtd-mac-address = <&art 0x00>;
116 phy-handle = <&phy4>;
117 phy-mode = "rgmii-rxid";
118 pll-data = <0xae000000 0x80000101 0x80001313>;
119
120 gmac_config: gmac-config {
121 device = <&gmac>;
122
123 rxdv-delay = <3>;
124 rxd-delay = <3>;
125 txen-delay = <0>;
126 txd-delay = <0>;
127 rgmii-enabled = <1>;
128 };
129 };
130
131 &mdio1 {
132 phy1: ethernet-phy@1 {
133 reg = <1>;
134 };
135 };
136
137 &eth1 {
138 mtd-mac-address = <&art 0x00>;
139 mtd-mac-address-increment = <1>;
140
141 phy-handle = <&phy1>;
142 pll-data = <0x03000101 0x00000101 0x00001313>;
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 };