ath79: convert ath10k pre-calibration data to NVMEM (ASCII MAC)
[openwrt/staging/svanheule.git] / target / linux / ath79 / dts / qca9563_phicomm_k2t.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca956x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 model = "Phicomm K2T";
10 compatible = "phicomm,k2t", "qca,qca9563";
11
12 aliases {
13 led-boot = &led_status_red;
14 led-failsafe = &led_status_red;
15 led-running = &led_status_red;
16 led-upgrade = &led_status_red;
17 };
18
19 leds {
20 compatible = "gpio-leds";
21
22 status_blue {
23 label = "blue:status";
24 gpios = <&gpio 6 GPIO_ACTIVE_LOW>;
25 };
26
27 led_status_red: status_red {
28 label = "red:status";
29 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
30 };
31
32 status_yellow {
33 label = "yellow:status";
34 gpios = <&gpio 8 GPIO_ACTIVE_LOW>;
35 };
36 };
37
38 keys {
39 compatible = "gpio-keys";
40
41 reset {
42 linux,code = <KEY_RESTART>;
43 gpios = <&gpio 2 GPIO_ACTIVE_LOW>;
44 debounce-interval = <60>;
45 };
46 };
47 };
48
49 &pcie {
50 status = "okay";
51
52 wifi@0,0 {
53 compatible = "qcom,ath10k";
54 reg = <0x0000 0 0 0 0>;
55 nvmem-cells = <&precal_art_5000>;
56 nvmem-cell-names = "pre-calibration";
57 };
58 };
59
60 &spi {
61 status = "okay";
62
63 flash@0 {
64 compatible = "jedec,spi-nor";
65 reg = <0>;
66 spi-max-frequency = <25000000>;
67
68 partitions {
69 compatible = "fixed-partitions";
70 #address-cells = <1>;
71 #size-cells = <1>;
72
73 partition@0 {
74 label = "u-boot";
75 reg = <0x000000 0x30000>;
76 read-only;
77 };
78
79 partition@30000 {
80 label = "config";
81 reg = <0x030000 0x10000>;
82 read-only;
83 };
84
85 partition@40000 {
86 label = "permanent";
87 reg = <0x040000 0x50000>;
88 read-only;
89 };
90
91 partition@90000 {
92 compatible = "denx,uimage";
93 label = "firmware";
94 reg = <0x090000 0xf60000>;
95 };
96
97 art: partition@ff0000 {
98 label = "art";
99 reg = <0xff0000 0x010000>;
100 read-only;
101
102 nvmem-layout {
103 compatible = "fixed-layout";
104 #address-cells = <1>;
105 #size-cells = <1>;
106
107 precal_art_5000: pre-calibration@5000 {
108 reg = <0x5000 0x2f20>;
109 };
110 };
111 };
112 };
113 };
114 };
115
116 &mdio0 {
117 status = "okay";
118
119 phy0: ethernet-phy@0 {
120 reg = <0>;
121 phy-mode = "sgmii";
122
123 qca,ar8327-initvals = <
124 0x04 0x00080080 /* PORT0 PAD MODE CTRL */
125 0x10 0x81000080 /* POWER_ON_STRAP */
126 0x50 0xcc35cc35 /* LED_CTRL0 */
127 0x54 0xcb37cb37 /* LED_CTRL1 */
128 0x58 0x00000000 /* LED_CTRL2 */
129 0x5c 0x00f3cf00 /* LED_CTRL3 */
130 0x7c 0x0000007e /* PORT0_STATUS */
131 >;
132 };
133 };
134
135 &eth0 {
136 status = "okay";
137
138 pll-data = <0x03000101 0x00000101 0x00001919>;
139
140 phy-mode = "sgmii";
141 phy-handle = <&phy0>;
142 };
143
144 &wmac {
145 status = "okay";
146 mtd-cal-data = <&art 0x1000>;
147 };