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