ath79: convert mtd-mac-address to nvmem implementation
[openwrt/openwrt.git] / target / linux / ath79 / dts / ar7242_engenius_eap350-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar7242.dtsi"
4 #include "ar724x_senao_loader-4k.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 compatible = "engenius,eap350-v1", "qca,ar7242";
11 model = "EnGenius EAP350 v1";
12
13 aliases {
14 label-mac-device = &eth0;
15 led-boot = &led_power;
16 led-failsafe = &led_power;
17 led-running = &led_power;
18 led-upgrade = &led_power;
19 };
20
21 keys {
22 compatible = "gpio-keys";
23
24 reset {
25 label = "reset";
26 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 linux,code = <KEY_RESTART>;
29 };
30 };
31
32 leds {
33 compatible = "gpio-leds";
34
35 led_power: power {
36 label = "blue:power";
37 gpios = <&gpio 17 GPIO_ACTIVE_HIGH>;
38 default-state = "on";
39 };
40 };
41
42 ath9k-leds {
43 compatible = "gpio-leds";
44
45 wlan {
46 label = "blue:wlan";
47 gpios = <&ath9k 1 GPIO_ACTIVE_LOW>;
48 linux,default-trigger = "phy0tpt";
49 };
50 };
51 };
52
53 &mdio0 {
54 status = "okay";
55
56 phy4: ethernet-phy@4 {
57 reg = <4>;
58 eee-broken-100tx;
59 eee-broken-1000t;
60 };
61 };
62
63 &eth0 {
64 status = "okay";
65
66 nvmem-cells = <&macaddr_art_0>;
67 nvmem-cell-names = "mac-address";
68
69 phy-handle = <&phy4>;
70 phy-mode = "rgmii-id";
71
72 pll-data = <0x02000000 0x00000101 0x00001313>;
73 };
74
75 &pcie {
76 status = "okay";
77
78 ath9k: wifi@0,0,0 {
79 compatible = "pci168c,002a";
80 reg = <0x0 0 0 0 0>;
81 nvmem-cells = <&macaddr_art_0>;
82 nvmem-cell-names = "mac-address";
83 mac-address-increment = <1>;
84 qca,no-eeprom;
85 #gpio-cells = <2>;
86 gpio-controller;
87 };
88 };
89
90 &art {
91 compatible = "nvmem-cells";
92 #address-cells = <1>;
93 #size-cells = <1>;
94
95 macaddr_art_0: macaddr@0 {
96 reg = <0x0 0x6>;
97 };
98 };