ath79: qca: convert to nvmem-layout
[openwrt/openwrt.git] / target / linux / ath79 / dts / qca9563_elecom_wrc-1750ghbk2-i.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "qca9563_elecom_wrc-ghbk2-i.dtsi"
4
5 / {
6 model = "ELECOM WRC-1750GHBK2-I/C";
7 compatible = "elecom,wrc-1750ghbk2-i", "qca,qca9563";
8 };
9
10 &leds {
11 led_power: power {
12 label = "blue:power";
13 gpios = <&gpio 1 GPIO_ACTIVE_HIGH>;
14 default-state = "on";
15 };
16
17 wlan2g {
18 label = "blue:wlan2g";
19 gpios = <&gpio 7 GPIO_ACTIVE_HIGH>;
20 linux,default-trigger = "phy1tpt";
21 };
22
23 wlan5g {
24 label = "blue:wlan5g";
25 gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
26 linux,default-trigger = "phy0tpt";
27 };
28 };
29
30 &partitions {
31 partition@70000 {
32 compatible = "denx,uimage";
33 label = "firmware";
34 reg = <0x070000 0xf70000>;
35 };
36
37 partition@fe0000 {
38 label = "hwconfig";
39 reg = <0xfe0000 0x010000>;
40 read-only;
41 };
42
43 art: partition@ff0000 {
44 label = "art";
45 reg = <0xff0000 0x010000>;
46 read-only;
47
48 nvmem-layout {
49 compatible = "fixed-layout";
50 #address-cells = <1>;
51 #size-cells = <1>;
52
53 cal_art_1000: cal@1000 {
54 reg = <0x1000 0x440>;
55 };
56
57 macaddr_art_1002: macaddr@1002 {
58 reg = <0x1002 0x6>;
59 };
60
61 cal_art_5000: cal@5000 {
62 reg = <0x5000 0x844>;
63 };
64 };
65 };
66 };
67
68 &pcie {
69 status = "okay";
70
71 wifi@0,0 {
72 compatible = "qcom,ath10k";
73 reg = <0x0 0 0 0 0>;
74 nvmem-cells = <&cal_art_5000>;
75 nvmem-cell-names = "calibration";
76 };
77 };
78
79 &eth0 {
80 nvmem-cells = <&macaddr_art_1002>;
81 nvmem-cell-names = "mac-address";
82 mac-address-increment = <(-1)>;
83 };
84
85 &wmac {
86 nvmem-cells = <&cal_art_1000>;
87 nvmem-cell-names = "calibration";
88 };