ath79: increase WS-AP3610 SPI frequency
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_siemens_ws-ap3610.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7100.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "siemens,ws-ap3610", "qca,ar7161";
10 model = "Siemens WS-AP3610";
11
12 aliases {
13 led-boot = &led_power_green;
14 led-failsafe = &led_power_red;
15 led-running = &led_power_green;
16 led-upgrade = &led_power_red;
17 label-mac-device = &eth0;
18 };
19
20 extosc: ref {
21 compatible = "fixed-clock";
22 #clock-cells = <0>;
23 clock-output-names = "ref";
24 clock-frequency = <40000000>;
25 };
26
27 leds {
28 compatible = "gpio-leds";
29
30 led_power_green: led_power_green {
31 label = "green:power";
32 gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
33 };
34
35 led_power_red: led_power_red {
36 label = "red:power";
37 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
38 };
39
40 led_wlan5_blue {
41 label = "blue:wlan5";
42 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 led_wlan5_green {
47 label = "green:wlan5";
48 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
49 };
50
51 led_wlan2_blue {
52 label = "blue:wlan2";
53 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
54 linux,default-trigger = "phy1tpt";
55 };
56
57 led_wlan2_green {
58 label = "green:wlan2";
59 gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
60 };
61 };
62
63 keys {
64 compatible = "gpio-keys";
65
66 reset {
67 label = "reset";
68 linux,code = <KEY_RESTART>;
69 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
70 };
71 };
72 };
73
74 &pcie0 {
75 status = "okay";
76 };
77
78 &mdio0 {
79 status = "okay";
80
81 phy0: ethernet-phy@0 {
82 /*
83 * When the compatible-is missing, PHY autodetection
84 * is performed, but the PHY-ID reads all 0xff.
85 *
86 * Linux does not create the device in this case,
87 * and the reset is never even de-asserted.
88 */
89 compatible = "ethernet-phy-id0143.bca2",
90 "ethernet-phy-ieee802.3-c22";
91 reg = <0>;
92
93 resets = <&rst 8>;
94 reset-names = "phy";
95 reset-assert-us = <10000>;
96 reset-deassert-us = <10000>;
97 };
98 };
99
100 &eth0 {
101 status = "okay";
102
103 phy-mode = "rgmii-id";
104 phy-handle = <&phy0>;
105 };
106
107 &spi {
108 status = "okay";
109
110 flash@0 {
111 compatible = "jedec,spi-nor";
112 reg = <0>;
113 spi-max-frequency = <50000000>;
114
115 partitions {
116 compatible = "fixed-partitions";
117 #address-cells = <1>;
118 #size-cells = <1>;
119
120 partition@0 {
121 label = "u-boot";
122 reg = <0x0 0x40000>;
123 read-only;
124 };
125
126 partition@40000 {
127 label = "u-boot-bak";
128 reg = <0x40000 0x40000>;
129 read-only;
130 };
131
132 partition@80000 {
133 compatible = "denx,uimage";
134 label = "firmware";
135 reg = <0x80000 0xe00000>;
136 };
137
138 partition@e80000 {
139 label = "cfg1";
140 reg = <0xe80000 0x40000>;
141 read-only;
142 };
143
144 partition@ec0000 {
145 label = "cfg2";
146 reg = <0xec0000 0x40000>;
147 read-only;
148 };
149
150 partition@f00000 {
151 label = "nvram1";
152 reg = <0xf00000 0x40000>;
153 read-only;
154 };
155
156 partition@f40000 {
157 label = "nvram2";
158 reg = <0xf40000 0x40000>;
159 read-only;
160 };
161
162 partition@f80000 {
163 label = "rsvd1";
164 reg = <0xf80000 0x40000>;
165 read-only;
166 };
167
168 partition@fc0000 {
169 label = "rsvd2";
170 reg = <0xfc0000 0x40000>;
171 read-only;
172 };
173 };
174 };
175 };