ipq40xx: only include ath10k-board-qca4019 for the generic subtarget
[openwrt/staging/chunkeey.git] / target / linux / ath79 / dts / qca9558_sophos_ap.dtsi
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 /*
4 * The hardware of this board family is most likely shared with other devices
5 * from other manufacturers. Edimax appear to be the actual OEM.
6 *
7 * Sophos use the same exact board for the AP55C/AP100C, and AP55/AP100.
8 * Yes, this means your AP55C is a 3x3 AP with a software lock, and your
9 * AP55 is an AP100 with one missing antenna pigtail.
10 *
11 * AP55 and AP55C boards have different physical layouts, but are logically
12 * almost identical. AP55/100 have an empty micro-USB OTG port footprint,
13 * which may be possible to retrofit with some work.
14 */
15
16 #include "qca955x.dtsi"
17
18 #include <dt-bindings/gpio/gpio.h>
19 #include <dt-bindings/input/input.h>
20
21 / {
22 aliases {
23 led-boot = &led_status_green;
24 led-failsafe = &led_status_red;
25 led-running = &led_status_green;
26 led-upgrade = &led_status_red;
27 label-mac-device = &eth0;
28 };
29
30 chosen {
31 bootargs = "console=ttyS0,115200n8";
32 };
33
34 keys {
35 compatible = "gpio-keys";
36
37 reset {
38 label = "reset";
39 linux,code = <KEY_RESTART>;
40 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
41 debounce-interval = <60>;
42 };
43 };
44
45 leds {
46 compatible = "gpio-leds";
47
48 led_status_green: status_green {
49 label = "green:status";
50 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
51 default-state = "on";
52 };
53
54 led_status_red: status_red {
55 label = "red:status";
56 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
57 };
58 };
59
60 reg_usb_vbus: reg_usb_vbus {
61 compatible = "regulator-fixed";
62 regulator-name = "usb_vbus";
63 regulator-min-microvolt = <5000000>;
64 regulator-max-microvolt = <5000000>;
65 gpio = <&gpio 11 GPIO_ACTIVE_HIGH>;
66 enable-active-high;
67 regulator-boot-on;
68 status = "disabled";
69 };
70 };
71
72 &pcie0 {
73 status = "okay";
74 };
75
76 &spi {
77 status = "okay";
78
79 flash@0 {
80 compatible = "jedec,spi-nor";
81 reg = <0>;
82 spi-max-frequency = <25000000>;
83
84 partitions {
85 compatible = "fixed-partitions";
86 #address-cells = <1>;
87 #size-cells = <1>;
88
89 partition@0 {
90 label = "u-boot";
91 reg = <0x000000 0x040000>;
92 read-only;
93 };
94
95 partition@40000 {
96 label = "u-boot-env";
97 reg = <0x040000 0x010000>;
98 };
99
100 art: partition@50000 {
101 label = "art";
102 reg = <0x050000 0x010000>;
103 read-only;
104 };
105
106 config: partition@60000 {
107 label = "config";
108 reg = <0x060000 0x010000>;
109 read-only;
110 };
111
112 partition@70000 {
113 compatible = "denx,uimage";
114 label = "firmware";
115 reg = <0x070000 0xf90000>;
116 };
117 };
118 };
119 };
120
121 &mdio0 {
122 status = "okay";
123
124 phy-mask = <0x10>;
125
126 phy4: ethernet-phy@4 {
127 reg = <4>;
128 eee-broken-100tx;
129 eee-broken-1000t;
130 };
131 };
132
133 &eth0 {
134 status = "okay";
135
136 pll-data = <0xa6000000 0xa0000101 0xa0001313>;
137
138 nvmem-cells = <&macaddr_config_201a>;
139 nvmem-cell-names = "mac-address";
140
141 phy-mode = "rgmii-id";
142 phy-handle = <&phy4>;
143
144 gmac_config: gmac-config {
145 device = <&gmac>;
146
147 rgmii-enabled = <1>;
148
149 rxdv-delay = <3>;
150 rxd-delay = <3>;
151 txen-delay = <3>;
152 txd-delay = <3>;
153 };
154 };
155
156 &wmac {
157 status = "okay";
158
159 mtd-cal-data = <&art 0x1000>;
160 };
161
162 &config {
163 compatible = "nvmem-cells";
164 #address-cells = <1>;
165 #size-cells = <1>;
166
167 macaddr_config_201a: macaddr@201a {
168 reg = <0x201a 0x6>;
169 };
170 };
171
172 &usb0 {
173 vbus-supply = <&reg_usb_vbus>;
174
175 hub_port0: port@1 {
176 reg = <1>;
177 #trigger-source-cells = <0>;
178 };
179 };