ath79: convert ath10k calibration data to NVMEM (binary MAC)
[openwrt/staging/jow.git] / target / linux / ath79 / dts / qca9557_engenius_enstationac-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca955x_senao_loader.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "engenius,enstationac-v1", "qca,qca9557";
10 model = "EnGenius EnStationAC v1";
11
12 aliases {
13 label-mac-device = &eth0;
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "reset";
25 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
26 debounce-interval = <60>;
27 linux,code = <KEY_RESTART>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power: power {
35 label = "amber:power";
36 gpios = <&gpio 22 GPIO_ACTIVE_LOW>;
37 default-state = "on";
38 };
39
40 wlan {
41 label = "green:wlan";
42 gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 rssilow {
47 label = "red:rssilow";
48 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
49 };
50
51 rssimedium {
52 label = "amber:rssimedium";
53 gpios = <&gpio 23 GPIO_ACTIVE_LOW>;
54 };
55
56 rssihigh {
57 label = "green:rssihigh";
58 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &partitions {
64 art: partition@ff0000 {
65 label = "art";
66 reg = <0xff0000 0x010000>;
67 read-only;
68
69 nvmem-layout {
70 compatible = "fixed-layout";
71 #address-cells = <1>;
72 #size-cells = <1>;
73
74 macaddr_art_0: macaddr@0 {
75 compatible = "mac-base";
76 reg = <0x0 0x6>;
77 #nvmem-cell-cells = <1>;
78 };
79
80 cal_art_5000: calibration@5000 {
81 reg = <0x5000 0x844>;
82 };
83 };
84 };
85 };
86
87 &mdio0 {
88 status = "okay";
89
90 phy1: ethernet-phy@1 {
91 reg = <1>;
92 eee-broken-100tx;
93 eee-broken-1000t;
94 };
95
96 phy2: ethernet-phy@2 {
97 reg = <2>;
98 eee-broken-100tx;
99 eee-broken-1000t;
100 at803x-override-sgmii-link-check;
101 };
102 };
103
104 &eth0 {
105 status = "okay";
106
107 nvmem-cells = <&macaddr_art_0 0>;
108 nvmem-cell-names = "mac-address";
109
110 phy-handle = <&phy1>;
111 phy-mode = "rgmii-id";
112
113 pll-data = <0x82000000 0x80000101 0x80001313>;
114 };
115
116 &eth1 {
117 status = "okay";
118
119 nvmem-cells = <&macaddr_art_0 1>;
120 nvmem-cell-names = "mac-address";
121
122 phy-handle = <&phy2>;
123
124 pll-data = <0x03000000 0x00000101 0x00001313>;
125
126 qca955x-sgmii-fixup;
127 };
128
129 &pcie0 {
130 status = "okay";
131
132 wifi@0,0 {
133 compatible = "qcom,ath10k";
134 reg = <0x0000 0 0 0 0>;
135 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 2>;
136 nvmem-cell-names = "calibration", "mac-address";
137 };
138 };