ath79: fortinet-fap-221-b: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9344_fortinet_fap-221-b.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9344_fortinet_ap-dual.dtsi"
4
5 / {
6 compatible = "fortinet,fap-221-b", "qca,ar9344";
7 model = "Fortinet FAP-221-B";
8
9 aliases {
10 label-mac-device = <&eth0>;
11 };
12
13 leds {
14 compatible = "gpio-leds";
15
16 led_power: power_green {
17 label = "green:power";
18 gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
19 default-state = "on";
20 };
21
22 power_amber {
23 label = "amber:power";
24 gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
25 };
26
27 eth_green {
28 label = "green:eth";
29 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
30 };
31
32 eth_amber {
33 label = "amber:eth";
34 gpios = <&gpio 15 GPIO_ACTIVE_LOW>;
35 };
36
37 wifi5g {
38 label = "green:wifi5g";
39 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
40 linux,default-trigger = "phy0tpt";
41 };
42
43 wifi2g {
44 label = "amber:wifi2g";
45 gpios = <&gpio 19 GPIO_ACTIVE_LOW>;
46 linux,default-trigger = "phy1tpt";
47 };
48 };
49
50 virtual_flash {
51 devices = <&fwconcat0 &fwconcat1 &fwconcat2>;
52 };
53 };
54
55 &ath9k {
56 ieee80211-freq-limit = <2402000 2482000>;
57
58 nvmem-cells = <&calibration_pcie>, <&macaddr_uboot_3ff80 8>;
59 nvmem-cell-names = "calibration", "mac-address";
60 };
61
62 &eth0 {
63 nvmem-cells = <&macaddr_uboot_3ff80 0>;
64 nvmem-cell-names = "mac-address";
65 };
66
67 &wmac {
68 ieee80211-freq-limit = <2402000 2482000 4900000 5990000>;
69
70 nvmem-cells = <&calibration_wmac>, <&macaddr_uboot_3ff80 1>;
71 nvmem-cell-names = "calibration", "mac-address";
72 };
73
74 &art {
75 nvmem-layout {
76 compatible = "fixed-layout";
77 #address-cells = <1>;
78 #size-cells = <1>;
79
80 calibration_wmac: calibration@1000 {
81 reg = <0x1000 0x440>;
82 };
83
84 calibration_pcie: calibration@5000 {
85 reg = <0x5000 0x440>;
86 };
87 };
88 };