ath79: convert ath10k calibration data to NVMEM (binary MAC)
[openwrt/staging/dangole.git] / target / linux / ath79 / dts / qca9531_glinet_gl-x750.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca953x.dtsi"
4
5 #include <dt-bindings/gpio/gpio.h>
6 #include <dt-bindings/input/input.h>
7
8 / {
9 compatible = "glinet,gl-x750", "qca,qca9531";
10 model = "GL.iNet GL-X750";
11
12 keys {
13 compatible = "gpio-keys";
14
15 pinctrl-names = "default";
16 pinctrl-0 = <&jtag_disable_pins>;
17
18 reset {
19 label = "reset";
20 linux,code = <KEY_RESTART>;
21 gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
22 };
23 };
24
25 leds {
26 compatible = "gpio-leds";
27
28 power {
29 label = "green:power";
30 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
31 default-state = "on";
32 };
33
34 wlan2g {
35 label = "green:wlan2g";
36 gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
37 linux,default-trigger = "phy1tpt";
38 };
39
40 wlan5g {
41 label = "green:wlan5g";
42 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 wan {
47 label = "green:wan";
48 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
49 };
50
51 4g {
52 label = "green:4g";
53 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
54 };
55 };
56 };
57
58 &pcie0 {
59 status = "okay";
60
61 wifi@0,0 {
62 compatible = "qcom,ath10k";
63 reg = <0x0000 0 0 0 0>;
64 nvmem-cells = <&cal_art_5000>, <&macaddr_art_0 2>;
65 nvmem-cell-names = "calibration", "mac-address";
66 };
67 };
68
69 &usb0 {
70 status = "okay";
71 };
72
73 &usb_phy {
74 status = "okay";
75 };
76
77 &spi {
78 status = "okay";
79
80 flash@0 {
81 compatible = "jedec,spi-nor";
82 reg = <0>;
83 spi-max-frequency = <25000000>;
84
85 partitions {
86 compatible = "fixed-partitions";
87 #address-cells = <1>;
88 #size-cells = <1>;
89
90 partition@0 {
91 label = "u-boot";
92 reg = <0x000000 0x040000>;
93 read-only;
94 };
95
96 partition@40000 {
97 label = "u-boot-env";
98 reg = <0x040000 0x010000>;
99 };
100
101 art: partition@50000 {
102 label = "art";
103 reg = <0x050000 0x010000>;
104 read-only;
105
106 nvmem-layout {
107 compatible = "fixed-layout";
108 #address-cells = <1>;
109 #size-cells = <1>;
110
111 macaddr_art_0: macaddr@0 {
112 compatible = "mac-base";
113 reg = <0x0 0x6>;
114 #nvmem-cell-cells = <1>;
115 };
116
117 cal_art_5000: calibration@5000 {
118 reg = <0x5000 0x844>;
119 };
120 };
121 };
122
123 partition@60000 {
124 compatible = "denx,uimage";
125 label = "firmware";
126 reg = <0x060000 0xfa0000>;
127 };
128 };
129 };
130 };
131
132 &eth0 {
133 status = "okay";
134
135 phy-handle = <&swphy4>;
136
137 nvmem-cells = <&macaddr_art_0 0>;
138 nvmem-cell-names = "mac-address";
139 };
140
141 &eth1 {
142 nvmem-cells = <&macaddr_art_0 1>;
143 nvmem-cell-names = "mac-address";
144 };
145
146 &wmac {
147 status = "okay";
148
149 mtd-cal-data = <&art 0x1000>;
150 };