ubox: update to Git HEAD (2024-04-26)
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7161_aruba_ap-105.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 = "aruba,ap-105", "qca,ar7161";
11 model = "Aruba AP-105";
12
13 chosen {
14 bootargs = "console=ttyS0,9600";
15 };
16
17 aliases {
18 led-boot = &led_power_green;
19 led-failsafe = &led_power_red;
20 led-running = &led_power_green;
21 led-upgrade = &led_power_green;
22 label-mac-device = &eth0;
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 led_power_green: power_green {
29 function = LED_FUNCTION_POWER;
30 color = <LED_COLOR_ID_GREEN>;
31 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
32 };
33
34 led_power_red: power_red {
35 function = LED_FUNCTION_POWER;
36 color = <LED_COLOR_ID_RED>;
37 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
38 panic-indicator;
39 };
40
41 wifi_2g_red {
42 label = "red:wlan2g";
43 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
44 };
45
46 wifi_5g_red {
47 label = "red:wlan5g";
48 gpios = <&gpio 11 GPIO_ACTIVE_LOW>;
49 };
50 };
51
52 ath9k-leds {
53 compatible = "gpio-leds";
54
55 wifi_2g_green {
56 label = "green:wlan2g";
57 gpios = <&ath9k0 5 GPIO_ACTIVE_LOW>;
58 linux,default-trigger = "phy0tpt";
59 };
60
61 wifi_5g_green {
62 label = "green:wlan5g";
63 gpios = <&ath9k1 5 GPIO_ACTIVE_LOW>;
64 linux,default-trigger = "phy1tpt";
65 };
66 };
67
68 keys {
69 compatible = "gpio-keys";
70
71 reset {
72 label = "reset";
73 linux,code = <KEY_RESTART>;
74 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
75 };
76 };
77
78 i2c {
79 compatible = "i2c-gpio";
80
81 sda-gpios = <&gpio 5 GPIO_ACTIVE_LOW>;
82 scl-gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
83
84 #address-cells = <1>;
85 #size-cells = <0>;
86
87 tpm@29 {
88 compatible = "atmel,at97sc3203s";
89 reg = <0x29>;
90
91 /* triggering it, will also kill system */
92 reset-gpios = <&gpio 7 GPIO_ACTIVE_LOW>;
93 };
94 };
95 };
96
97 &pcie0 {
98 status = "okay";
99
100 ath9k0: wifi@11,0 { /* 2.4 GHz */
101 compatible = "pci168c,0029";
102 nvmem-cells = <&macaddr_hwinfo_1c 1>;
103 nvmem-cell-names = "mac-address";
104 reg = <0x8800 0 0 0 0>;
105 #gpio-cells = <2>;
106 gpio-controller;
107 };
108
109 ath9k1: wifi@12,0 { /* 5 GHz */
110 compatible = "pci168c,0029";
111 nvmem-cells = <&macaddr_hwinfo_1c 2>;
112 nvmem-cell-names = "mac-address";
113 reg = <0x9000 0 0 0 0>;
114 #gpio-cells = <2>;
115 gpio-controller;
116 };
117 };
118
119 &mdio0 {
120 status = "okay";
121
122 phy0: ethernet-phy@0 {
123 reg = <0>;
124 };
125 };
126
127 &eth0 {
128 status = "okay";
129 nvmem-cells = <&macaddr_hwinfo_1c 0>;
130 nvmem-cell-names = "mac-address";
131
132 pll-data = <0x00110000 0x00001099 0x00991099>;
133
134 phy-mode = "rgmii";
135 phy-handle = <&phy0>;
136 };
137
138 &spi {
139 status = "okay";
140
141 flash@0 {
142 compatible = "jedec,spi-nor";
143 reg = <0>;
144 spi-max-frequency = <25000000>;
145
146 partitions {
147 compatible = "fixed-partitions";
148 #address-cells = <1>;
149 #size-cells = <1>;
150
151 partition@0 {
152 label = "u-boot";
153 reg = <0x000000 0x40000>;
154 read-only;
155 };
156
157 partition@40000 {
158 label = "firmware";
159 reg = <0x40000 0xfa0000>;
160 compatible = "denx,uimage";
161 };
162
163 hwinfo: partition@fe0000 {
164 reg = <0xfe0000 0x10000>;
165 label = "hwinfo";
166 read-only;
167
168 nvmem-layout {
169 compatible = "fixed-layout";
170 #address-cells = <1>;
171 #size-cells = <1>;
172
173 macaddr_hwinfo_1c: mac-address@1c {
174 compatible = "mac-base";
175 reg = <0x1c 0x6>;
176 #nvmem-cell-cells = <1>;
177 };
178 };
179 };
180
181 partition@ff0000 {
182 label = "u-boot-env";
183 reg = <0xff0000 0x10000>;
184 read-only;
185 };
186 };
187 };
188 };