ath79: ar: convert to nvmem-layout
[openwrt/staging/hauke.git] / target / linux / ath79 / dts / ar9341_engenius_ens202ext-v1.dts
1 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
2
3 #include "ar9341.dtsi"
4 #include "ar934x_senao_loader.dtsi"
5
6 #include <dt-bindings/gpio/gpio.h>
7 #include <dt-bindings/input/input.h>
8
9 / {
10 model = "Engenius ENS202EXT v1";
11 compatible = "engenius,ens202ext-v1", "qca,ar9341";
12
13 aliases {
14 led-boot = &led_power;
15 led-failsafe = &led_power;
16 led-running = &led_power;
17 led-upgrade = &led_power;
18 };
19
20 keys {
21 compatible = "gpio-keys";
22
23 reset {
24 label = "Reset";
25 linux,code = <KEY_RESTART>;
26 gpios = <&gpio 1 GPIO_ACTIVE_LOW>;
27 debounce-interval = <60>;
28 };
29 };
30
31 leds {
32 compatible = "gpio-leds";
33
34 led_power: power {
35 label = "amber:power";
36 gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
37 default-state = "on";
38 };
39
40 wlan {
41 label = "amber:wlan";
42 gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
43 linux,default-trigger = "phy0tpt";
44 };
45
46 rssilow {
47 label = "red:rssilow";
48 gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
49 };
50
51 rssimedium {
52 label = "amber:rssimedium";
53 gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
54 };
55
56 rssihigh {
57 label = "green:rssihigh";
58 gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
59 };
60 };
61 };
62
63 &eth0 {
64 status = "okay";
65
66 phy-handle = <&swphy0>;
67
68 nvmem-cells = <&macaddr_art_0>;
69 nvmem-cell-names = "mac-address";
70 };
71
72 &eth1 {
73 status = "okay";
74
75 nvmem-cells = <&macaddr_art_0>;
76 nvmem-cell-names = "mac-address";
77
78 gmac-config {
79 device = <&gmac>;
80 switch-phy-swap = <1>;
81 };
82 };
83
84 &wmac {
85 status = "okay";
86
87 mtd-cal-data = <&art 0x1000>;
88 };
89
90 &art {
91 nvmem-layout {
92 compatible = "fixed-layout";
93 #address-cells = <1>;
94 #size-cells = <1>;
95
96 macaddr_art_0: macaddr@0 {
97 reg = <0x0 0x6>;
98 };
99 };
100 };