ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / ar7242_avm_fritz300e.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7242.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7 #include <dt-bindings/leds/common.h>
8
9 / {
10 compatible = "avm,fritz300e", "qca,ar7242";
11 model = "AVM FRITZ!WLAN Repeater 300E";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 label-mac-device = &ath9k;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 wps {
25 label = "wps";
26 linux,code = <KEY_WPS_BUTTON>;
27 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
28 debounce-interval = <60>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 function = LED_FUNCTION_POWER;
37 color = <LED_COLOR_ID_GREEN>;
38 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 default-state = "on";
40 };
41
42 lan {
43 function = LED_FUNCTION_LAN;
44 color = <LED_COLOR_ID_GREEN>;
45 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
46 };
47
48 wlan {
49 function = LED_FUNCTION_WLAN;
50 color = <LED_COLOR_ID_GREEN>;
51 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
52 linux,default-trigger = "phy0tpt";
53 };
54 };
55
56 ath9k-leds {
57 compatible = "gpio-leds";
58
59 rssi0 {
60 label = "green:rssi0";
61 gpios = <&ath9k 10 GPIO_ACTIVE_LOW>;
62 };
63
64 rssi1 {
65 label = "green:rssi1";
66 gpios = <&ath9k 4 GPIO_ACTIVE_LOW>;
67 };
68
69 rssi2 {
70 label = "green:rssi2";
71 gpios = <&ath9k 6 GPIO_ACTIVE_LOW>;
72 };
73
74 rssi3 {
75 label = "green:rssi3";
76 gpios = <&ath9k 7 GPIO_ACTIVE_LOW>;
77 };
78
79 rssi4 {
80 label = "green:rssi4";
81 gpios = <&ath9k 5 GPIO_ACTIVE_LOW>;
82 };
83 };
84
85 eth-phy-reset {
86 compatible = "regulator-fixed";
87
88 regulator-name = "eth-phy-reset";
89 regulator-min-microvolt = <3300000>;
90 regulator-max-microvolt = <3300000>;
91
92 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
93 startup-delay-us = <300000>;
94 enable-active-high;
95
96 regulator-always-on;
97 };
98 };
99
100 &spi {
101 status = "okay";
102
103 flash@0 {
104 compatible = "jedec,spi-nor";
105 reg = <0>;
106 spi-max-frequency = <25000000>;
107
108 partitions {
109 compatible = "fixed-partitions";
110 #address-cells = <1>;
111 #size-cells = <1>;
112
113 partition@0 {
114 reg = <0x0 0x20000>;
115 label = "urloader";
116 read-only;
117 };
118
119 partition@20000 {
120 compatible = "avm,eva-firmware";
121 reg = <0x20000 0xee0000>;
122 label = "firmware";
123 };
124
125 partition@f00000 {
126 reg = <0xf00000 0x80000>;
127 label = "tffs (1)";
128 read-only;
129 };
130
131 partition@f80000 {
132 reg = <0xf80000 0x80000>;
133 label = "tffs (2)";
134 read-only;
135 };
136 };
137 };
138 };
139
140 &pcie {
141 status = "okay";
142
143 ath9k: wifi@0,0 {
144 reg = <0x0000 0 0 0 0>;
145 #gpio-cells = <2>;
146 gpio-controller;
147 qca,no-eeprom;
148 };
149 };
150
151 &mdio0 {
152 status = "okay";
153
154 phy0: ethernet-phy@0 {
155 reg = <0>;
156 phy-mode = "rgmii";
157 };
158 };
159
160 &eth0 {
161 status = "okay";
162
163 phy-mode = "rgmii";
164 phy-handle = <&phy0>;
165
166 pll-data = <0x16000000 0x00000101 0x00001313>;
167 };