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