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