befb9334836de8d47908cc7df0060714e8bb46b6
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9556_avm_fritz-repeater.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 keys {
10 compatible = "gpio-keys";
11
12 wps {
13 label = "wps";
14 linux,code = <KEY_WPS_BUTTON>;
15 gpios = <&gpio 4 GPIO_ACTIVE_HIGH>;
16 };
17 };
18 };
19
20 &uart {
21 status = "okay";
22 };
23
24 &spi {
25 status = "okay";
26
27 flash@0 {
28 compatible = "jedec,spi-nor";
29 reg = <0>;
30 spi-max-frequency = <25000000>;
31
32 partitions {
33 compatible = "fixed-partitions";
34 #address-cells = <1>;
35 #size-cells = <1>;
36
37 partition@0 {
38 label = "urlader";
39 reg = <0x0 0x20000>;
40 read-only;
41 };
42
43 partition@20000 {
44 compatible = "avm,eva-firmware";
45 label = "firmware";
46 reg = <0x20000 0xee0000>;
47 };
48
49 partition@f00000 {
50 label = "tffs (1)";
51 reg = <0xf00000 0x80000>;
52 read-only;
53 };
54
55 partition@f80000 {
56 label = "tffs (2)";
57 reg = <0xf80000 0x80000>;
58 read-only;
59 };
60 };
61 };
62 };
63
64 &wmac {
65 status = "okay";
66 qca,no-eeprom;
67 };
68
69 &eth1 {
70 status = "okay";
71
72 phy-handle = <&phy0>;
73 pll-data = <0x3000000 0x101 0x1313>;
74
75 qca955x-sgmii-fixup;
76
77 gmac-config {
78 device = <&gmac>;
79 ge0-sgmii = <0>;
80 };
81 };
82
83 &mdio1 {
84 status = "okay";
85
86 phy0: ethernet-phy@0 {
87 reg = <0>;
88 at803x-override-sgmii-link-check;
89 };
90 };