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