ath79: update WA/XC devices UBNT_VERSION to 8.7.4
[openwrt/staging/wigyori.git] / target / linux / ath79 / dts / qca9558_sophos_ap15.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x.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 = "sophos,ap15", "qca,qca9558";
11 model = "Sophos AP15";
12
13 aliases {
14 led-boot = &led_status_green;
15 led-failsafe = &led_status_yellow;
16 led-running = &led_status_green;
17 led-upgrade = &led_status_yellow;
18 label-mac-device = &eth0;
19 };
20
21 chosen {
22 bootargs = "console=ttyS0,115200n8";
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 led_status_green: status_green {
29 function = LED_FUNCTION_STATUS;
30 color = <LED_COLOR_ID_GREEN>;
31 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
32 default-state = "on";
33 };
34
35 led_status_yellow: status_yellow {
36 function = LED_FUNCTION_STATUS;
37 color = <LED_COLOR_ID_YELLOW>;
38 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
39 };
40 };
41 };
42
43 &pcie0 {
44 status = "okay";
45
46 wifi@0,0 {
47 compatible = "qcom,ath10k";
48 reg = <0x0000 0 0 0 0>;
49 nvmem-cells = <&cal_art_5000>;
50 nvmem-cell-names = "calibration";
51 };
52 };
53
54 &spi {
55 status = "okay";
56
57 flash@0 {
58 compatible = "jedec,spi-nor";
59 reg = <0>;
60 spi-max-frequency = <25000000>;
61
62 partitions {
63 compatible = "fixed-partitions";
64 #address-cells = <1>;
65 #size-cells = <1>;
66
67 partition@0 {
68 label = "u-boot";
69 reg = <0x000000 0x040000>;
70 read-only;
71 };
72
73 partition@40000 {
74 label = "u-boot-env";
75 reg = <0x040000 0x010000>;
76 };
77
78 art: partition@50000 {
79 label = "art";
80 reg = <0x050000 0x010000>;
81 read-only;
82
83 nvmem-layout {
84 compatible = "fixed-layout";
85 #address-cells = <1>;
86 #size-cells = <1>;
87
88 cal_art_5000: calibration@5000 {
89 reg = <0x5000 0x844>;
90 };
91 };
92 };
93
94 config: partition@60000 {
95 label = "config";
96 reg = <0x060000 0x010000>;
97 read-only;
98
99 nvmem-layout {
100 compatible = "fixed-layout";
101 #address-cells = <1>;
102 #size-cells = <1>;
103
104 macaddr_config_201a: macaddr@201a {
105 reg = <0x201a 0x6>;
106 };
107 };
108 };
109
110 partition@70000 {
111 compatible = "denx,uimage";
112 label = "firmware";
113 reg = <0x070000 0xf90000>;
114 };
115 };
116 };
117 };
118
119 &mdio0 {
120 status = "okay";
121
122 phy-mask = <0x10>;
123
124 phy4: ethernet-phy@4 {
125 reg = <4>;
126 eee-broken-100tx;
127 eee-broken-1000t;
128 };
129 };
130
131 &eth0 {
132 status = "okay";
133
134 pll-data = <0xa6000000 0xa0000101 0xa0001313>;
135
136 nvmem-cells = <&macaddr_config_201a>;
137 nvmem-cell-names = "mac-address";
138
139 phy-mode = "rgmii-id";
140 phy-handle = <&phy4>;
141
142 gmac_config: gmac-config {
143 device = <&gmac>;
144
145 rgmii-enabled = <1>;
146
147 rxdv-delay = <3>;
148 rxd-delay = <3>;
149 txen-delay = <3>;
150 txd-delay = <3>;
151 };
152 };
153
154 &wmac {
155 status = "okay";
156
157 mtd-cal-data = <&art 0x1000>;
158 };