ath79: convert ath10k calibration data to NVMEM (ASCII MAC)
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca955x_engenius_ecb1xxx.dtsi
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 aliases {
10 led-boot = &led_power;
11 led-failsafe = &led_power;
12 led-running = &led_power;
13 led-upgrade = &led_power;
14 };
15
16 keys {
17 compatible = "gpio-keys";
18
19 reset {
20 label = "reset";
21 debounce-interval = <60>;
22 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
23 linux,code = <KEY_RESTART>;
24 };
25 };
26
27 leds {
28 compatible = "gpio-leds";
29
30 led_power: power {
31 label = "amber:power";
32 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
33 default-state = "on";
34 };
35
36 wifi2g {
37 label = "blue:wifi2g";
38 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
39 linux,default-trigger = "phy1tpt";
40 };
41
42 wifi5g {
43 label = "blue:wifi5g";
44 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
45 linux,default-trigger = "phy0tpt";
46 };
47 };
48 };
49
50 &spi {
51 status = "okay";
52
53 flash@0 {
54 compatible = "jedec,spi-nor";
55 reg = <0>;
56 spi-max-frequency = <40000000>;
57
58 partitions {
59 compatible = "fixed-partitions";
60 #address-cells = <1>;
61 #size-cells = <1>;
62
63 partition@0 {
64 label = "u-boot";
65 reg = <0x000000 0x040000>;
66 read-only;
67 };
68
69 partition@40000 {
70 label = "u-boot-env";
71 reg = <0x040000 0x010000>;
72 };
73
74 partition@50000 {
75 compatible = "denx,uimage";
76 label = "firmware";
77 reg = <0x050000 0xf50000>;
78 };
79
80 partition@fa0000 {
81 label = "userconfig";
82 reg = <0xfa0000 0x050000>;
83 read-only;
84 };
85
86 partition@ff0000 {
87 label = "art";
88 reg = <0xff0000 0x010000>;
89 read-only;
90
91 nvmem-layout {
92 compatible = "fixed-layout";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 cal_art_5000: calibration@5000 {
97 reg = <0x5000 0x844>;
98 };
99 };
100 };
101 };
102 };
103 };
104
105 &mdio0 {
106 status = "okay";
107
108 phy5: ethernet-phy@5 {
109 reg = <5>;
110 eee-broken-100tx;
111 eee-broken-1000t;
112 };
113 };
114
115 &eth0 {
116 status = "okay";
117
118 phy-handle = <&phy5>;
119 phy-mode = "rgmii-id";
120
121 pll-data = <0x82000000 0x80000101 0x80001313>;
122
123 gmac-config {
124 device = <&gmac>;
125 rgmii-enabled = <1>;
126 };
127 };
128
129 &pcie0 {
130 status = "okay";
131
132 wifi@0,0 {
133 compatible = "qcom,ath10k";
134 reg = <0x0 0 0 0 0>;
135 nvmem-cells = <&cal_art_5000>;
136 nvmem-cell-names = "calibration";
137 };
138 };
139
140 &wmac {
141 status = "okay";
142
143 qca,no-eeprom;
144 };